Problem
In the helm/templates/daemonset.yaml file, the imagePullSecrets field is currently defined within both the initContainers and containers sections. According to Kubernetes spec, imagePullSecrets should be defined at the pod spec level, not within individual containers.
File reference
Example problematic section
initContainers:
- name: jfrog-credential-provider-injector
image: ...
imagePullSecrets: ... # Incorrect placement
Expected
- Move
imagePullSecrets under the pod spec:
spec:
imagePullSecrets:
- name: <secret-name>
...
Solution
Update daemonset.yaml so that imagePullSecrets is configured under the pod spec, not within containers.
Impact
- Ensures compatibility with Kubernetes standards
- Prevents potential deployment errors and clarifies configuration
References