Unverified Commit fa6ab9db authored by Caleb Bron's avatar Caleb Bron Committed by GitHub
Browse files

Merge pull request #30648 from dkeightley/audit-pullpolicy

Add imagePullPolicy for rancher-audit-log busybox container
parents e2542610 53acef0e
Showing with 7 additions and 0 deletions
+7 -0
......@@ -172,6 +172,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
| `auditLog.maxBackups` | 1 | int - maximum number of audit log files to retain (only applies when **auditLog.destination** is set to **hostPath**) |
| `auditLog.maxSize` | 100 | ***int*** - maximum size in megabytes of the audit log file before it gets rotated (only applies when **auditLog.destination** is set to **hostPath**) |
| `busyboxImage` | "busybox" | ***string*** - Image location for busybox image used to collect audit logs *Note: Available as of v2.2.0* |
| `busyboxImagePullPolicy` | "IfNotPresent" | ***string*** - Override imagePullPolicy for busybox images - *"Always", "Never", "IfNotPresent"* |
| `debug` | false | ***bool*** - set debug flag on rancher server |
| `certmanager.version` | " " | ***string*** - set cert-manager compatibility |
| `extraEnv` | [] | ***list*** - set additional environment variables for Rancher Note: *Available as of v2.2.0* |
......
......@@ -159,6 +159,7 @@ spec:
{{- if gt (int .Values.auditLog.level) 0 }}
# Make audit logs available for Rancher log collector tools.
- image: {{ .Values.busyboxImage }}
imagePullPolicy: {{ default "IfNotPresent" .Values.busyboxImagePullPolicy }}
name: {{ template "rancher.name" . }}-audit-log
command: ["tail"]
args: ["-F", "/var/log/auditlog/rancher-api-audit.log"]
......
......@@ -25,6 +25,11 @@ addLocal: "true"
# Important: update pkg/image/export/main.go when this default image is changed, so that it's reflected accordingly in rancher-images.txt generated for air-gapped setups.
busyboxImage: busybox
# Override imagePullPolicy for busybox images
# options: Always, Never, IfNotPresent
# Defaults to IfNotPresent
# busyboxImagePullPolicy: <pullPolicy>
# Add debug flag to Rancher server
debug: false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment