Skip to content

Commit

Permalink
Fixing devspace to work with suggested provider
Browse files Browse the repository at this point in the history
Summary:
Adding image, repository to the config in the pod, this simplifies getting it inside the pod
Similarly getting the correct pod name inside the pod via environment varibles

Test Plan: Testing suggested provider with devspace.

Reviewers: dshubin, sanketh, bgandhi

Reviewed By: dshubin, bgandhi

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D32266
  • Loading branch information
amannijhawan committed Feb 9, 2024
1 parent 144210b commit c21542d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stable/yugaware/templates/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ data:
health.ses_email_username = "{{ .Values.yugaware.health.username }}"
health.ses_email_password = "{{ .Values.yugaware.health.password }}"
kubernetes.storageClass = "{{ .Values.yugaware.storageClass }}"
kubernetes.yugawareImageRepository = "{{ .Values.image.repository }}"
kubernetes.yugawareImageTag = "{{ .Values.image.tag }}"
kubernetes.pullSecretName = "{{ .Values.image.pullSecret }}"
kubernetes.operator.enabled = "{{ .Values.yugaware.kubernetesOperatorEnabled }}"
kubernetes.operator.namespace = "{{ .Values.yugaware.kubernetesOperatorNamespace }}"
Expand Down
4 changes: 4 additions & 0 deletions stable/yugaware/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ spec:
- name: LD_PRELOAD
value: "/usr/lib64/libnss_wrapper.so"
{{- end }}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit c21542d

Please sign in to comment.