netbox-community / netbox-chart

A Helm chart for NetBox
https://netbox.readthedocs.io/
Apache License 2.0
261 stars 153 forks source link

netboxtest-housekeeping Required value: valid values: "OnFailure", "Never" #350

Closed schmittvictor closed 2 months ago

schmittvictor commented 2 months ago

I am getting an error when setting a custom repo/image in my values.yaml :

image:
  registry: docker-repo.domain.com:18459
  repository: netbox-custom
  pullPolicy: IfNotPresent
  tag: "v4.1.1"
  digest: ""
  pullSecrets:
    - regcred

error :

Pulled: ghcr.io/netbox-community/netbox-chart/netbox:5.0.0-beta9
Digest: sha256:9a3db4e1899fe3ecd199bf514b63f5380117d68af53947eff2b900dbecefc77e
creating 1 resource(s)
creating 26 resource(s)
W0920 09:15:52.824972      52 warnings.go:70] unknown field "spec.template.spec.containers[0].securityContext.enabled"
W0920 09:15:52.824995      52 warnings.go:70] unknown field "spec.template.spec.securityContext.enabled"
W0920 09:15:52.868281      52 warnings.go:70] unknown field "spec.jobTemplate.spec.imagePullSecrets"
Error: INSTALLATION FAILED: 1 error occurred:
        * CronJob.batch "netboxtest-housekeeping" is invalid: [spec.jobTemplate.spec.template.spec.containers: Required value, spec.jobTemplate.spec.template.spec.restartPolicy: Required value: valid values: "OnFailure", "Never"]

After some tests I noticed that it ony does it when

  pullSecrets:
    - regcred

is present

LeoColomb commented 2 months ago

Thanks for opening this issue @schmittvictor. Chart netbox:5.0.0-beta9 is old, please upgrade to a newer beta version. The latest is netbox-5.0.0-beta.102.

schmittvictor commented 2 months ago

Thanks for opening this issue @schmittvictor. Chart netbox:5.0.0-beta9 is old, please upgrade to a newer beta version. The latest is netbox-5.0.0-beta.102.

my bad thank you !