Skip to content

Commit 4931a6b

Browse files
author
eliranb
committed
fix PR comments
1 parent 51c9ffc commit 4931a6b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

charts/lightrun-agents/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The values.yaml file includes the following configurable parameters for each Jav
3333
| `javaAgents[].containerSelector` | Selector for containers within the deployment to inject the Lightrun Java Agent. | Required |
3434
| `javaAgents[].deploymentName` | Name of the Kubernetes deployment to attach the Lightrun Java Agent. | Required |
3535
| `javaAgents[].initContainer.image` | Image for the Lightrun Java Agent init container. | Required |
36-
| `javaAgents[].initContainer.imagePullPolicy` | Image pull policy for the init container. Can be one of: Always, IfNotPresent, or Never. | Optional (if not provided, defaults to `"IfNotPresent"`) |
36+
| `javaAgents[].initContainer.imagePullPolicy` | Image pull policy for the init container. Can be one of: Always, IfNotPresent, or Never. | Optional (if not provided, defaults according to [Kubernetes Default Image Pull Policy](https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting)) |
3737
| `javaAgents[].initContainer.sharedVolumeMountPath` | Mount path for the shared volume in the init container. | Optional (if not provided, defaults to `"/lightrun"`" |
3838
| `javaAgents[].initContainer.sharedVolumeName` | Name of the shared volume for the init container. | Optional (if not provided, defaults to `"lightrun-agent-init"`" |
3939
| `javaAgents[].name` | Name of the Lightrun Java Agent custom resource. | Required |

charts/lightrun-agents/templates/java-agent-cr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ metadata:
88
spec:
99
initContainer:
1010
image: {{ .initContainer.image }}
11-
imagePullPolicy: {{ .initContainer.imagePullPolicy | default "IfNotPresent" }}
11+
{{- if .initContainer.imagePullPolicy }}
12+
imagePullPolicy: {{ .initContainer.imagePullPolicy }}
13+
{{- end }}
1214
sharedVolumeName: {{ .initContainer.sharedVolumeName | default "lightrun-agent-init" }}
1315
sharedVolumeMountPath: {{ .initContainer.sharedVolumeMountPath | default "/lightrun" }}
1416
deploymentName: {{ .deploymentName }}

0 commit comments

Comments
 (0)