Files
app-openbao/helm-charts/upstream/openbao-helm/debian/deb_folder/patches/0003-Fix-agent-image-registry-in-injector-deployment.patch
Tae Park 101d137cb2 Add isApplication functionality for openbao pods
Adding the isApplication function described in
https://wiki.openstack.org/wiki/StarlingX/Containers/Applications/HowToAddNewFluxCDAppInSTX#7.4_Select_CPU_Cores_for_pods.
to Openbao pods. The function will have dedicated values in values.yaml
to switch the server pod, injector pod, and csi pod between application
and platform cores.

The server pod will require a manual restart to update the label, while
the other two pods will automatically restart once the label change is
applied. Currently the default strategy for the server pods is to only
update info after the server pod is deleted.

The previous method of using sysinv to switch labels has been removed.

Test Plan:
PASS    Modified helm chart applies with no errors
PASS    Check pods and validate the correct labeling
PASS    Labels do not change with wrong values in values.yaml
PASS    For injector and csi pods, the pods restart with the changed
labels after using helm-override-update to change isApplication value
PASS    For server pods, the pods restart with the changed labels after
using helm-override-update to change isApplication value, and then
deleting the pod.

Story: 2011244
Task: 51632

Change-Id: Ibdc962fc8fb326767180946fbfdc1264344cc8c4
Signed-off-by: Tae Park <tae.park@windriver.com>
2025-01-29 10:06:57 -05:00

32 lines
1.6 KiB
Diff

From b98367b9f629c42fae00e4288127d7559943c2a4 Mon Sep 17 00:00:00 2001
From: Tae Park <tae.park@windriver.com>
Date: Fri, 10 Jan 2025 09:50:23 -0500
Subject: [PATCH] Fix agent image registry in injector deployment
The value for AGENT_INJECT_VAULT_IMAGE in injector-deployment.yaml
incorrectly points to injector image's registry instead of the agent
image registry. This changes the registry to the correct agent image
one, so the agent image variable points to the correct image.
Signed-off-by: Tae Park <tae.park@windriver.com>
---
charts/openbao/templates/injector-deployment.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/charts/openbao/templates/injector-deployment.yaml b/charts/openbao/templates/injector-deployment.yaml
index 64e0de2..d66f6d1 100644
--- a/charts/openbao/templates/injector-deployment.yaml
+++ b/charts/openbao/templates/injector-deployment.yaml
@@ -69,7 +69,7 @@ spec:
- name: AGENT_INJECT_VAULT_AUTH_PATH
value: {{ .Values.injector.authPath }}
- name: AGENT_INJECT_VAULT_IMAGE
- value: "{{ .Values.injector.image.registry | default "quay.io" }}/{{ .Values.injector.agentImage.repository }}:{{ .Values.injector.agentImage.tag }}"
+ value: "{{ .Values.injector.agentImage.registry | default "quay.io" }}/{{ .Values.injector.agentImage.repository }}:{{ .Values.injector.agentImage.tag }}"
{{- if .Values.injector.certs.secretName }}
- name: AGENT_INJECT_TLS_CERT_FILE
value: "/etc/webhook/certs/{{ .Values.injector.certs.certName }}"
--
2.34.1