This commit is contained in:
ari committed 2023-02-21 06:50:56 +00:00
1 parent de6cd4fb15
commit 2cb526df8a
5 files changed
+16 -4

No files matched your search

+4 -1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
set -e
pushd k8s/argocd
@@ -11,4 +12,6 @@ helm install argocd k8s/argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
watch -n1 "kubectl -n argocd get all"
watch -n1 "kubectl -n argocd get all"
argocd admin initial-password
+2 -1
View File
@@ -3,4 +3,5 @@
helm upgrade argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)" \
--set selfapp.enabled="true"
+3 -1
View File
@@ -1,3 +1,4 @@
{{- if .Values.selfapp.enabled -}}
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
@@ -25,4 +26,5 @@ spec:
namespace: '{{ `{{path.basename}}` }}'
syncPolicy:
syncOptions:
- CreateNamespace=true
- CreateNamespace=true
{{- end -}}
+2
View File
@@ -1,3 +1,4 @@
{{- if .Values.selfapp.enabled -}}
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
@@ -12,3 +13,4 @@ spec:
- '*'
destinations:
- server: https://kubernetes.default.svc
{{- end -}}
+5 -1
View File
@@ -1,3 +1,4 @@
{{- if .Values.selfapp.enabled -}}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
@@ -12,6 +13,8 @@ spec:
path: k8s/argocd
helm:
parameters:
- name: "selfapp.enabled"
value: true
- name: "selfapp.sshkey"
value: {{ .Values.selfapp.sshkey | quote }}
destination:
@@ -21,4 +24,5 @@ spec:
# automated:
# prune: false
# selfHeal: true
# allowEmpty: true
# allowEmpty: true
{{- end -}}