diff --git a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/config-daemon.yaml b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/config-daemon.yaml index 1412d713..9715cd0f 100644 --- a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/config-daemon.yaml +++ b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/config-daemon.yaml @@ -42,6 +42,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + {{- if .Values.logLevel}} + - name: LOG_LEVEL + value: {{ .Values.logLevel }} + {{- end}} volumeMounts: - name: sys mountPath: /sys diff --git a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/operator.yaml b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/operator.yaml index 8b8b90d6..0358a6d1 100644 --- a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/operator.yaml +++ b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/operator.yaml @@ -40,6 +40,11 @@ spec: capabilities: drop: - ALL + {{- if .Values.logLevel}} + env: + - name: LOG_LEVEL + value: {{ .Values.logLevel }} + {{- end}} livenessProbe: httpGet: path: /healthz diff --git a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/role.yaml b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/role.yaml index e1f46984..fbffac7a 100644 --- a/deployment/network-operator/charts/nic-configuration-operator-chart/templates/role.yaml +++ b/deployment/network-operator/charts/nic-configuration-operator-chart/templates/role.yaml @@ -5,6 +5,12 @@ metadata: labels: {{- include "nic-configuration-operator.labels" . | nindent 4}} rules: +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get - apiGroups: - "" resources: diff --git a/deployment/network-operator/charts/nic-configuration-operator-chart/values.yaml b/deployment/network-operator/charts/nic-configuration-operator-chart/values.yaml index 74989726..c945c792 100644 --- a/deployment/network-operator/charts/nic-configuration-operator-chart/values.yaml +++ b/deployment/network-operator/charts/nic-configuration-operator-chart/values.yaml @@ -1,8 +1,11 @@ operator: image: + # -- repository to use for the operator image repository: ghcr.io/mellanox name: nic-configuration-operator + # -- image tag to use for the operator image tag: latest + # -- tolerations for the operator tolerations: - key: "node-role.kubernetes.io/master" operator: "Exists" @@ -10,7 +13,9 @@ operator: - key: "node-role.kubernetes.io/control-plane" operator: "Exists" effect: "NoSchedule" + # -- node selector for the operator nodeSelector: {} + # -- node affinity for the operator affinity: nodeAffinity: preferredDuringSchedulingIgnoredDuringExecution: @@ -24,6 +29,7 @@ operator: matchExpressions: - key: "node-role.kubernetes.io/control-plane" operator: Exists + # -- specify resource requests and limits for the operator resources: limits: cpu: 500m @@ -31,16 +37,22 @@ operator: requests: cpu: 10m memory: 64Mi + # -- operator deployment number of replicas replicas: 1 serviceAccount: + # -- set annotations for the operator service account annotations: {} configDaemon: image: + # -- repository to use for the config daemon image repository: ghcr.io/mellanox name: nic-configuration-operator-daemon + # -- image tag to use for the config daemon image tag: latest + # -- node selector for the config daemon nodeSelector: {} + # -- resources and limits for the config daemon resources: limits: cpu: 500m @@ -49,4 +61,7 @@ configDaemon: cpu: 10m memory: 64Mi +# -- log level configuration (debug|info) +logLevel: info +# -- image pull secrets for both the operator and the config daemon imagePullSecrets: [] diff --git a/deployment/network-operator/values.yaml b/deployment/network-operator/values.yaml index 3e4e2bc3..e7b09f6a 100644 --- a/deployment/network-operator/values.yaml +++ b/deployment/network-operator/values.yaml @@ -174,12 +174,12 @@ nic-configuration-operator-chart: image: repository: ghcr.io/mellanox name: nic-configuration-operator - tag: v0.1.1 + tag: v0.1.4 configDaemon: image: repository: ghcr.io/mellanox name: nic-configuration-operator-daemon - tag: v0.1.1 + tag: v0.1.4 # General Operator related values # The operator element allows to deploy network operator from an alternate location diff --git a/hack/release.yaml b/hack/release.yaml index e128b156..f150eccc 100644 --- a/hack/release.yaml +++ b/hack/release.yaml @@ -81,8 +81,8 @@ rdmaCni: nicConfigurationOperator: image: nic-configuration-operator repository: ghcr.io/mellanox - version: v0.1.1 + version: v0.1.4 nicConfigurationConfigDaemon: image: nic-configuration-operator-daemon repository: ghcr.io/mellanox - version: v0.1.1 + version: v0.1.4