fix: remove explicit access token from helm-git urls (take 3)
This commit is contained in:
@@ -3,11 +3,7 @@ bases:
|
||||
|
||||
repositories:
|
||||
- name: oceanbox
|
||||
{{- if env "MANIFESTS_ACCESS_TOKEN" }}
|
||||
url: "git+https://git:{{ requiredEnv "MANIFESTS_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
{{- else }}
|
||||
url: "git+https://gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
{{- end }}
|
||||
url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
|
||||
commonLabels:
|
||||
tier: system
|
||||
|
||||
@@ -3,11 +3,7 @@ bases:
|
||||
|
||||
repositories:
|
||||
- name: oceanbox
|
||||
{{- if env "MANIFESTS_ACCESS_TOKEN" }}
|
||||
url: "git+https://git:{{ requiredEnv "MANIFESTS_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
{{- else }}
|
||||
url: "git+https://gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
{{- end }}
|
||||
url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||
|
||||
commonLabels:
|
||||
tier: system
|
||||
|
||||
@@ -37,5 +37,5 @@ pkgs.mkShellNoCC {
|
||||
];
|
||||
|
||||
ARGOCD_ENV_CLUSTER_NAME = "oceanbox";
|
||||
MANIFESTS_ACCESS_TOKEN = "glpat-xxx";
|
||||
HELM_GIT_ACCESS_TOKEN = "glpat-xxx";
|
||||
}
|
||||
|
||||
@@ -178,6 +178,13 @@ repoServer:
|
||||
- command:
|
||||
- /var/run/argocd/argocd-cmp-server
|
||||
image: registry.gitlab.com/oceanbox/manifests/helmfile-cmp:latest
|
||||
env:
|
||||
- name: HELM_GIT_ACCESS_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: password
|
||||
name: oceanbox-gitops-repo
|
||||
optional: false
|
||||
imagePullPolicy: Always
|
||||
name: helmfile-cmp
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user