Compare commits
1 Commits
81ca7e9b1a
...
c281d4daab
| Author | SHA1 | Date | |
|---|---|---|---|
|
c281d4daab
|
@@ -7,7 +7,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'clusters/cl01tl/helm/**'
|
- 'clusters/cl01tl/helm/**'
|
||||||
types:
|
types:
|
||||||
- closed
|
- labeled
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CLUSTER: cl01tl
|
CLUSTER: cl01tl
|
||||||
@@ -19,7 +19,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
render-manfiest-automerge:
|
render-manfiest-automerge:
|
||||||
runs-on: ubuntu-js
|
runs-on: ubuntu-js
|
||||||
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'automerge')) }}
|
if: |
|
||||||
|
(github.event_name == 'pull_request' && github.event.action == 'labeled' && contains(github.event.pull_request.labels.*.name, 'automerge'))
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Main
|
- name: Checkout Main
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -171,33 +171,7 @@ jobs:
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Rendering templates ..."
|
echo ">> Rendering templates ..."
|
||||||
|
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
||||||
case "$chart_name" in
|
|
||||||
"stack")
|
|
||||||
echo ">> Special Rendering for stack ..."
|
|
||||||
helm template stack ./ --namespace argocd --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
"cilium")
|
|
||||||
echo ">> Special Rendering for cilium ..."
|
|
||||||
helm template cilium ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
"coredns")
|
|
||||||
echo ">> Special Rendering for coredns ..."
|
|
||||||
helm template coredns ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
"metrics-server")
|
|
||||||
echo ">> Special Rendering for metrics-server ..."
|
|
||||||
helm template metrics-server ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
"prometheus-operator-crds")
|
|
||||||
echo ">> Special Rendering for prometheus-operator-crds ..."
|
|
||||||
helm template prometheus-operator-crds ./ --namespace kube-system --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo ">> Standard Rendering for $chart_name ..."
|
|
||||||
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ spec:
|
|||||||
exclude: true
|
exclude: true
|
||||||
- path: clusters/cl01tl/manifests/metrics-server
|
- path: clusters/cl01tl/manifests/metrics-server
|
||||||
exclude: true
|
exclude: true
|
||||||
|
- path: clusters/cl01tl/manifests/kubelet-serving-cert-approver
|
||||||
|
exclude: true
|
||||||
- path: clusters/cl01tl/manifests/prometheus-operator-crds
|
- path: clusters/cl01tl/manifests/prometheus-operator-crds
|
||||||
exclude: true
|
exclude: true
|
||||||
template:
|
template:
|
||||||
|
|||||||
@@ -156,6 +156,44 @@ spec:
|
|||||||
- ServerSideApply=true
|
- ServerSideApply=true
|
||||||
- PruneLast=true
|
- PruneLast=true
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kubelet-serving-cert-approver
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: kubelet-serving-cert-approver
|
||||||
|
app.kubernetes.io/instance: argocd
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: http://gitea-http.gitea:3000/alexlebens/infrastructure
|
||||||
|
targetRevision: manifests
|
||||||
|
path: clusters/cl01tl/manifests/kubelet-serving-cert-approver
|
||||||
|
destination:
|
||||||
|
name: in-cluster
|
||||||
|
namespace: kubelet-serving-cert-approver
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: false
|
||||||
|
retry:
|
||||||
|
limit: 3
|
||||||
|
backoff:
|
||||||
|
duration: 1m
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 15m
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- ServerSideApply=true
|
||||||
|
- PruneLast=true
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
|
|||||||
Reference in New Issue
Block a user