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