diff --git a/src/test/ks-core/templates/post-delete-job.yaml b/src/test/ks-core/templates/post-delete-job.yaml index 79096dd7..2d14083b 100644 --- a/src/test/ks-core/templates/post-delete-job.yaml +++ b/src/test/ks-core/templates/post-delete-job.yaml @@ -81,6 +81,7 @@ spec: volumeMounts: - mountPath: /scripts name: scripts + resources: {{- toYaml .Values.upgrade.resources | nindent 12 }} volumes: - name: scripts configMap: diff --git a/src/test/ks-core/templates/post-patch-system-ns-job.yaml b/src/test/ks-core/templates/post-patch-system-ns-job.yaml index 242c26da..bb7d5554 100644 --- a/src/test/ks-core/templates/post-patch-system-ns-job.yaml +++ b/src/test/ks-core/templates/post-patch-system-ns-job.yaml @@ -24,3 +24,4 @@ spec: kubectl label ns $ns kubesphere.io/workspace=system-workspace kubectl label ns $ns kubesphere.io/managed=true done + resources: {{- toYaml .Values.upgrade.resources | nindent 12 }} diff --git a/src/test/ks-core/templates/pre-delete-job.yaml b/src/test/ks-core/templates/pre-delete-job.yaml index 0c23f806..65c7189a 100644 --- a/src/test/ks-core/templates/pre-delete-job.yaml +++ b/src/test/ks-core/templates/pre-delete-job.yaml @@ -33,6 +33,7 @@ spec: volumeMounts: - mountPath: /scripts name: scripts + resources: {{- toYaml .Values.upgrade.resources | nindent 12 }} volumes: - name: scripts configMap: diff --git a/src/test/ks-core/values.yaml b/src/test/ks-core/values.yaml index 6a5599b5..69e24e46 100644 --- a/src/test/ks-core/values.yaml +++ b/src/test/ks-core/values.yaml @@ -295,6 +295,15 @@ extension: imageRegistry: "" nodeSelector: {} +hook: + resources: + limits: + cpu: 1 + memory: 1024Mi + requests: + cpu: 20m + memory: 100Mi + upgrade: disabled: false image: