Add start/limit flags
This commit is contained in:
@@ -42,6 +42,14 @@ func generateEnv(yamlFile string) {
|
|||||||
args = append(args, fmt.Sprintf("--http_endpoint=%s", logEntry.Listen))
|
args = append(args, fmt.Sprintf("--http_endpoint=%s", logEntry.Listen))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add not_after flags if specified
|
||||||
|
if !logEntry.NotAfterStart.IsZero() {
|
||||||
|
args = append(args, fmt.Sprintf("--not_after_start=%s", logEntry.NotAfterStart.Format("2006-01-02T15:04:05Z")))
|
||||||
|
}
|
||||||
|
if !logEntry.NotAfterLimit.IsZero() {
|
||||||
|
args = append(args, fmt.Sprintf("--not_after_limit=%s", logEntry.NotAfterLimit.Format("2006-01-02T15:04:05Z")))
|
||||||
|
}
|
||||||
|
|
||||||
tesseractArgs := strings.Join(args, " ")
|
tesseractArgs := strings.Join(args, " ")
|
||||||
envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\nOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318\n", tesseractArgs)
|
envContent := fmt.Sprintf("TESSERACT_ARGS=\"%s\"\nOTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318\n", tesseractArgs)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user