consistent references
This commit is contained in:
1 parent
d1894535bb
commit
1ff8e343fb
4 files changed
+83
-3
No files matched your search
Executable
+37
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
full_path=${1}
|
||||
deployment=${2:-dev}
|
||||
action=${3:-install}
|
||||
app=$(basename $full_path)
|
||||
location=$(dirname $full_path)
|
||||
tmp_path=".tmp/$location/$deployment-$app.yaml"
|
||||
|
||||
|
||||
mkdir -p $(dirname $tmp_path)
|
||||
|
||||
pushd $full_path &> /dev/null
|
||||
helm dependency update &> /dev/null
|
||||
popd &> /dev/null
|
||||
|
||||
extraArgs=""
|
||||
for f in k8s/argocd/values/shared/*.yaml; do
|
||||
full_file_path=$(realpath $f)
|
||||
extraArgs=$extraArgs" --values ${full_file_path}"
|
||||
done
|
||||
for f in k8s/argocd/values/$deployment/*.yaml; do
|
||||
full_file_path=$(realpath $f)
|
||||
extraArgs=$extraArgs" --values ${full_file_path}"
|
||||
done
|
||||
|
||||
echo "Installing $app"
|
||||
|
||||
helm $action $app $full_path --namespace $app \
|
||||
--debug \
|
||||
--values $full_path/values.yaml \
|
||||
--create-namespace \
|
||||
--dependency-update \
|
||||
$extraArgs \
|
||||
> $tmp_path
|
||||
|
||||
+4
-2
@@ -13,7 +13,8 @@ helm install argocd k8s/argocd \
|
||||
--namespace argocd \
|
||||
--create-namespace \
|
||||
--values k8s/argocd/values.yaml \
|
||||
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
|
||||
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)" \
|
||||
--set selfapp.deployment=$DEPLOYMENT
|
||||
|
||||
watch -n1 "kubectl -n argocd get all"
|
||||
|
||||
@@ -26,6 +27,7 @@ helm upgrade argocd k8s/argocd \
|
||||
--create-namespace \
|
||||
--values k8s/argocd/values.yaml \
|
||||
--set selfapp.enabled="true" \
|
||||
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
|
||||
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)" \
|
||||
--set selfapp.deployment=$DEPLOYMENT
|
||||
|
||||
argocd app sync argocd/argocd
|
||||
@@ -49,6 +49,8 @@ spec:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
parameters:
|
||||
- name: "selfapp.deployment"
|
||||
value: {{ .Values.selfapp.deployment | quote }}
|
||||
- name: "selfapp.enabled"
|
||||
value: "true"
|
||||
- name: "selfapp.sshkey"
|
||||
@@ -57,6 +59,11 @@ spec:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "argoapps"
|
||||
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
@@ -77,6 +84,6 @@ spec:
|
||||
{{- $appvalues | toYaml | nindent 8 }}
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{ .Release.Namespace }}"
|
||||
namespace: "argoapps"
|
||||
|
||||
{{- end -}}
|
||||
@@ -22,3 +22,37 @@ infrastructureCharts:
|
||||
kubernetes-secret-generator:
|
||||
repoURL: "https://helm.mittwald.de"
|
||||
targetRevision: "v3.4.0"
|
||||
# monitoring:
|
||||
# chart: prometheus
|
||||
# repoURL: "https://prometheus-community.github.io/helm-charts"
|
||||
# targetRevision: "20.2.0"
|
||||
# values: |-
|
||||
# configmapReload:
|
||||
# prometheus:
|
||||
# enabled: false
|
||||
# alertmanager:
|
||||
# persistence:
|
||||
# enabled: true
|
||||
# size: 8Gi
|
||||
# storageClass: "local-path"
|
||||
# ingress:
|
||||
# enabled: false
|
||||
# ingressClassName: traefik
|
||||
# annotations: {}
|
||||
# hosts:
|
||||
# - host: "{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
# paths:
|
||||
# - path: /alertmanager
|
||||
# pathType: Prefix
|
||||
# server:
|
||||
# {{ if .Values.global.tls.enabled }}
|
||||
# baseURL: "https://{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
# {{ else }}
|
||||
# baseURL: "http://{{$prometheusHost}}.{{ .Values.global.domain }}"
|
||||
# {{ end }}
|
||||
# persistentVolume:
|
||||
# enabled: true
|
||||
# size: 8Gi
|
||||
# storageClass: "local-path"
|
||||
# ingress:
|
||||
# enabled: false
|
||||
Reference in new issue
Block a user