Skip to content

Commit

Permalink
add account to storage & node-agent
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Malka <[email protected]>
  • Loading branch information
amirmalka committed Oct 31, 2023
1 parent 8d8535e commit 5f13f1b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/kubescape-operator/templates/node-agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
automountServiceAccountToken: true
hostPID: true
volumes:
- name: {{ .Values.global.cloudSecret }}
secret:
secretName: {{ .Values.global.cloudSecret }}
- name: {{ .Values.global.cloudConfig }}
configMap:
name: {{ .Values.global.cloudConfig }}
Expand Down Expand Up @@ -127,6 +130,9 @@ spec:
seLinuxOptions:
type: spc_t
volumeMounts:
- name: {{ .Values.global.cloudSecret }}
mountPath: /etc/credentials
readOnly: true
- name: {{ .Values.global.cloudConfig }}
mountPath: /etc/config/clusterData.json
readOnly: true
Expand Down
2 changes: 2 additions & 0 deletions charts/kubescape-operator/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
- name: "GOMEMLIMIT"
value: "{{ .Values.storage.resources.requests.memory }}B"
{{- if $components.otelCollector.enabled }}
- name: ACCOUNT_ID
value: "{{ .Values.account }}"
- name: OTEL_COLLECTOR_SVC
value: "otel-collector:4317"
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,9 @@ matches the snapshot:
seLinuxOptions:
type: spc_t
volumeMounts:
- mountPath: /etc/credentials
name: cloud-secret
readOnly: true
- mountPath: /etc/config/clusterData.json
name: ks-cloud-config
readOnly: true
Expand Down Expand Up @@ -1756,6 +1759,9 @@ matches the snapshot:
kubernetes.io/os: linux
serviceAccountName: node-agent
volumes:
- name: cloud-secret
secret:
secretName: cloud-secret
- configMap:
items:
- key: clusterData
Expand Down Expand Up @@ -2545,6 +2551,8 @@ matches the snapshot:
- env:
- name: GOMEMLIMIT
value: 400MiB
- name: ACCOUNT_ID
value: 9e6c0c2c-6bd0-4919-815b-55030de7c9a0
- name: OTEL_COLLECTOR_SVC
value: otel-collector:4317
image: quay.io/kubescape/storage:v0.0.30
Expand Down

0 comments on commit 5f13f1b

Please sign in to comment.