Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CED-588: Add api tokens to kubernetes objects #17

Merged
merged 6 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cedana-helm/templates/host-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ spec:
secretKeyRef:
name: cedana-secrets
key: signoz-api-key
- name: CEDANA_API_KEY
valueFrom:
secretKeyRef:
name: cedana-secrets
key: cedana-api-key
- name: CEDANA_API_SERVER
valueFrom:
secretKeyRef:
name: cedana-secrets
key: cedana-api-server
volumes
volumes:
- name: varlog
hostPath:
Expand Down
10 changes: 10 additions & 0 deletions cedana-helm/templates/manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ spec:
env:
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ quote .Values.kubernetesClusterDomain }}
- name: CEDANA_API_SERVER
valueFrom:
secretKeyRef:
name: cedana-secrets
key: cedana-api-server
- name: CEDANA_API_KEY
valueFrom:
secretKeyRef:
name: cedana-secrets
key: cedana-api-key
- name: CONTROLLER_NAMESPACE
valueFrom:
fieldRef:
Expand Down
2 changes: 2 additions & 0 deletions cedana-helm/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ metadata:
type: Opaque
data:
signoz-api-key: "{{ .Values.cedanaConfig.signozApiKey | b64enc }}"
cedana-api-key: "{{ .Values.cedanaConfig.cedanaApiKey | b64enc }}"
cedana-api-server: "{{ .Values.cedanaConfig.cedanaApiServer | b64enc }}"
nravic marked this conversation as resolved.
Show resolved Hide resolved