app-openbao/helm-charts/upstream/openbao-helm/debian/deb_folder/patches/0004-Fix-agent-image-registry-in-injector-deployment.patch
Tae Park dbbf5c7ec4 Initial Package Upload for Openbao
Containing the initial package for Openbao application. Contains a
working package of openbao-helm, openbao-manager-helm,
python3-k8sapp-openbao, and stx-openbao-helm.

Test Plan:
PASS    Packages are successfully built, and the application tarball is
        created.
PASS    Application is uploaded and applied with no errors
PASS    Application is configured for sanity testing
PASS    Application passes aware/unaware test for sanity
PASS    Application functions when network access is restricted to
        internal registry

Story: 2011244
Task: 51378

Change-Id: I10910b3cc00c3e45ebce0df20bbee53af3d8543b
Signed-off-by: Tae Park <tae.park@windriver.com>
2025-01-14 09:37:28 -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