Add resources field to all addon charts 93/123293/1
authorTodd Malsbary <todd.malsbary@intel.com>
Mon, 16 Aug 2021 23:54:09 +0000 (16:54 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Mon, 16 Aug 2021 23:58:22 +0000 (16:58 -0700)
Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I3193fb5983394c6ac9a95dffaaa36074f07cacf6

kud/deployment_infra/helm/cdi-operator/templates/deployment.yaml
kud/deployment_infra/helm/cpu-manager/templates/webhook.yaml
kud/deployment_infra/helm/node-feature-discovery/templates/worker.yaml
kud/deployment_infra/helm/ovn4nfv/templates/deployment.yaml
kud/deployment_infra/helm/ovn4nfv/values.yaml
kud/deployment_infra/helm/sriov-network-operator/templates/operator.yaml
kud/deployment_infra/helm/sriov-network-operator/values.yaml

index 3010d6e..dc924a1 100644 (file)
@@ -66,5 +66,7 @@ spec:
       tolerations:
         {{- toYaml . | nindent 6 }}
       {{- end }}
+      resources:
+        {{- toYaml .Values.resources | nindent 8 }}
       securityContext:
         {{- toYaml .Values.securityContext | nindent 8 }}
index 62e9fdb..a857e3e 100644 (file)
@@ -112,6 +112,8 @@ spec:
         image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
         imagePullPolicy: {{ .Values.image.pullPolicy }}
         name: cmk-webhook
+        resources:
+          {{- toYaml .Values.resources | nindent 10 }}
         securityContext:
           {{- toYaml .Values.securityContext | nindent 10 }}
         volumeMounts:
index 998a068..0cf542b 100644 (file)
@@ -37,7 +37,7 @@ spec:
             fieldRef:
               fieldPath: spec.nodeName
         resources:
-        {{- toYaml .Values.worker.resources | nindent 12 }}
+          {{- toYaml .Values.worker.resources | nindent 10 }}
         command:
         - "nfd-worker"
         args:
index 7613fef..828f385 100644 (file)
@@ -53,3 +53,5 @@ spec:
                   fieldPath: metadata.name
             - name: OPERATOR_NAME
               value: "nfn-operator"
+          resources:
+            {{- toYaml .Values.nfnOperator.resources | nindent 12 }}
index 2addb6d..93de002 100644 (file)
@@ -106,6 +106,8 @@ nfnOperator:
     type: NodePort
     port: 50000
 
+  resources: {}
+
 ovn:
   image:
     repository: docker.io/integratedcloudnative/ovn-images
index 679ed26..b0ed767 100644 (file)
@@ -75,6 +75,8 @@ spec:
               value: "4.3.0"
             - name: SRIOV_CNI_BIN_PATH
               value: "/opt/cni/bin"
+          resources:
+            {{- toYaml .Values.resources | nindent 12 }}
       {{- with .Values.nodeSelector }}
       nodeSelector:
         {{- toYaml . | nindent 8 }}
index 59f257e..fe29180 100644 (file)
@@ -37,6 +37,8 @@ fullnameOverride: ""
 nodeSelector:
   node-role.kubernetes.io/master: ""
 
+resources: {}
+
 affinity: {}
 
 tolerations: