moved argocd to it's own home

This commit is contained in:
ari committed 2023-02-21 06:42:27 +00:00
1 parent 53a6f8af32
commit de6cd4fb15
15 files changed
+61 -59

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
mkdir -p .tmp
helm template argocd k8s/infra/argocd \
helm template argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)" > .tmp/argocd.yaml
+7 -1
View File
@@ -1,6 +1,12 @@
#!/bin/bash
helm install argocd k8s/infra/argocd \
pushd k8s/argocd
helm dependency build
popd
helm install argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
helm upgrade argocd k8s/infra/argocd \
helm upgrade argocd k8s/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+28
View File
@@ -0,0 +1,28 @@
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "infra"
namespace: "{{ .Release.Namespace }}"
spec:
generators:
- git:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
revision: "{{ .Values.selfapp.commit }}"
directories:
- path: k8s/infra/*
template:
metadata:
name: '{{ `{{path.basename}}` }}'
spec:
project: "infra"
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: '{{ `{{path}}` }}'
destination:
server: https://kubernetes.default.svc
namespace: '{{ `{{path.basename}}` }}'
syncPolicy:
syncOptions:
- CreateNamespace=true
File renamed without changes.
File renamed without changes.
File renamed without changes.
+24
View File
@@ -0,0 +1,24 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: "{{ .Release.Name }}"
namespace: "{{ .Release.Namespace }}"
spec:
project: default
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: k8s/argocd
helm:
parameters:
- name: "selfapp.sshkey"
value: {{ .Values.selfapp.sshkey | quote }}
destination:
server: https://kubernetes.default.svc
namespace: "{{ .Release.Namespace }}"
# syncPolicy:
# automated:
# prune: false
# selfHeal: true
# allowEmpty: true
File renamed without changes.
@@ -1,56 +0,0 @@
# ---
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: "{{ .Release.Name }}"
# namespace: "{{ .Release.Namespace }}"
# spec:
# project: default
# source:
# repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
# targetRevision: "{{ .Values.selfapp.commit }}"
# path: k8s/infra/argocd
# helm:
# parameters:
# - name: "selfapp.sshkey"
# value: {{ .Values.selfapp.sshkey | quote }}
# destination:
# server: https://kubernetes.default.svc
# namespace: "{{ .Release.Namespace }}"
# # syncPolicy:
# # automated:
# # prune: false
# # selfHeal: true
# # allowEmpty: true
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "infra"
namespace: "{{ .Release.Namespace }}"
spec:
generators:
- git:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
revision: "{{ .Values.selfapp.commit }}"
directories:
- path: k8s/infra/*
template:
metadata:
name: '{{ `{{path.basename}}` }}'
spec:
project: "infra"
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: '{{ `{{path}}` }}'
destination:
server: https://kubernetes.default.svc
namespace: '{{ `{{path.basename}}` }}'
helm:
parameters:
- name: "selfapp.sshkey"
value: {{ .Values.selfapp.sshkey | quote }}
syncPolicy:
syncOptions:
- CreateNamespace=true