diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index e1925adb..6577145c 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -45,7 +45,6 @@ jobs: - name: Deploy to minikube run: | printf "traefik:\n service:\n externalIPs:\n - $(minikube ip)\n" >> tests/values.test.yaml - find cvat/apps/iam/rules -name "*.rego" -and ! -name '*test*' -exec basename {} \; | tar -czf helm-chart/rules.tar.gz -C cvat/apps/iam/rules/ -T - cd helm-chart helm dependency update cd .. diff --git a/helm-chart/Chart.yaml b/helm-chart/Chart.yaml index 420e1dc7..1631b0b8 100644 --- a/helm-chart/Chart.yaml +++ b/helm-chart/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.1 +version: 0.5.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-chart/templates/cvat_backend/cvat_worker_webhooks/deployment.yml b/helm-chart/templates/cvat_backend/cvat_worker_webhooks/deployment.yml index 402a6287..3e213acb 100644 --- a/helm-chart/templates/cvat_backend/cvat_worker_webhooks/deployment.yml +++ b/helm-chart/templates/cvat_backend/cvat_worker_webhooks/deployment.yml @@ -46,6 +46,7 @@ spec: containers: - name: cvat-app-backend-worker-webhooks-container image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} + imagePullPolicy: {{ .Values.cvat.backend.imagePullPolicy }} {{- with .Values.cvat.backend.worker.webhooks.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_backend/server/deployment.yml b/helm-chart/templates/cvat_backend/server/deployment.yml index 1afd05c1..8471a868 100644 --- a/helm-chart/templates/cvat_backend/server/deployment.yml +++ b/helm-chart/templates/cvat_backend/server/deployment.yml @@ -46,6 +46,7 @@ spec: containers: - name: cvat-app-backend-server-container image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} + imagePullPolicy: {{ .Values.cvat.backend.imagePullPolicy }} {{- with .Values.cvat.backend.server.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_backend/utils/deployment.yml b/helm-chart/templates/cvat_backend/utils/deployment.yml index 94e433f1..37f2f1a6 100644 --- a/helm-chart/templates/cvat_backend/utils/deployment.yml +++ b/helm-chart/templates/cvat_backend/utils/deployment.yml @@ -46,7 +46,7 @@ spec: containers: - name: cvat-app-backend-utils-container image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} - imagePullPolicy: {{ .Values.cvat.backend.imagepullpolicy }} + imagePullPolicy: {{ .Values.cvat.backend.imagePullPolicy }} {{- with .Values.cvat.backend.utils.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_backend/worker_default/deployment.yml b/helm-chart/templates/cvat_backend/worker_default/deployment.yml index 253674b7..84baee47 100644 --- a/helm-chart/templates/cvat_backend/worker_default/deployment.yml +++ b/helm-chart/templates/cvat_backend/worker_default/deployment.yml @@ -46,6 +46,7 @@ spec: containers: - name: cvat-app-backend-worker-default-container image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} + imagePullPolicy: {{ .Values.cvat.backend.imagePullPolicy }} {{- with .Values.cvat.backend.worker.default.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_backend/worker_low/deployment.yml b/helm-chart/templates/cvat_backend/worker_low/deployment.yml index 37883c78..a941e540 100644 --- a/helm-chart/templates/cvat_backend/worker_low/deployment.yml +++ b/helm-chart/templates/cvat_backend/worker_low/deployment.yml @@ -46,6 +46,7 @@ spec: containers: - name: cvat-app-backend-worker-low-container image: {{ .Values.cvat.backend.image }}:{{ .Values.cvat.backend.tag }} + imagePullPolicy: {{ .Values.cvat.backend.imagePullPolicy }} {{- with .Values.cvat.backend.worker.low.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_frontend/deployment.yml b/helm-chart/templates/cvat_frontend/deployment.yml index 35528207..e5e2105f 100644 --- a/helm-chart/templates/cvat_frontend/deployment.yml +++ b/helm-chart/templates/cvat_frontend/deployment.yml @@ -33,7 +33,7 @@ spec: containers: - name: cvat-frontend-app-container image: {{ .Values.cvat.frontend.image }}:{{ .Values.cvat.frontend.tag }} - imagePullPolicy: {{ .Values.cvat.frontend.imagepullpolicy }} + imagePullPolicy: {{ .Values.cvat.frontend.imagePullPolicy }} {{- with .Values.cvat.frontend.resources }} resources: {{- toYaml . | nindent 12 }} diff --git a/helm-chart/templates/cvat_opa/deployment.yml b/helm-chart/templates/cvat_opa/deployment.yml index fcaa08d7..3827484b 100644 --- a/helm-chart/templates/cvat_opa/deployment.yml +++ b/helm-chart/templates/cvat_opa/deployment.yml @@ -33,7 +33,7 @@ spec: containers: - name: cvat-opa-app-container image: {{ .Values.cvat.opa.image }}:{{ .Values.cvat.opa.tag }} - imagePullPolicy: {{ .Values.cvat.opa.imagepullpolicy }} + imagePullPolicy: {{ .Values.cvat.opa.imagePullPolicy }} args: - run - --server diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 2fd01529..b6d083e4 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -75,7 +75,7 @@ cvat: replicas: 1 image: cvat/server tag: dev - imagepullploicy: IfNotPresent + imagePullPolicy: Always permissionFix: enabled: true service: @@ -95,7 +95,7 @@ cvat: replicas: 1 image: cvat/ui tag: dev - imagepullploicy: IfNotPresent + imagePullPolicy: Always labels: {} # test: test annotations: {} @@ -138,7 +138,7 @@ cvat: replicas: 1 image: openpolicyagent/opa tag: 0.34.2-rootless - imagepullploicy: IfNotPresent + imagePullPolicy: IfNotPresent labels: {} # test: test annotations: {} diff --git a/tests/values.test.yaml b/tests/values.test.yaml index 94d9a4c6..3437f506 100644 --- a/tests/values.test.yaml +++ b/tests/values.test.yaml @@ -11,6 +11,9 @@ cvat: - mountPath: /home/django/share name: cvat-backend-data subPath: share + # Images are already present in the node + imagePullPolicy: Never + traefik: service: externalIPs: