fix: kubezero git-sync fixes
This commit is contained in:
parent
d02d145c49
commit
7b10c5f0d0
24
charts/kubezero-redis/redis-client.yaml
Normal file
24
charts/kubezero-redis/redis-client.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: redis-client
|
||||||
|
labels:
|
||||||
|
app: redis-client
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: redis-client
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: redis-client
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: redis-client
|
||||||
|
image: redis
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
13
charts/kubezero/convert/Chart.yaml
Normal file
13
charts/kubezero/convert/Chart.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: kubezero-git-sync
|
||||||
|
description: KubeZero Git Sync Argo Application to track cluster values via git
|
||||||
|
type: application
|
||||||
|
version: 0.1
|
||||||
|
home: https://kubezero.com
|
||||||
|
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
||||||
|
keywords:
|
||||||
|
- kubezero
|
||||||
|
- argocd
|
||||||
|
maintainers:
|
||||||
|
- name: Quarky9
|
||||||
|
kubeVersion: ">= 1.18.0"
|
29
charts/kubezero/convert/templates/app.yaml
Normal file
29
charts/kubezero/convert/templates/app.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kubezero
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: kubezero
|
||||||
|
source:
|
||||||
|
repoURL: https://zero-down-time.github.io/kubezero
|
||||||
|
chart: kubezero
|
||||||
|
targetRevision: {{ .Values.kubezero.version }}
|
||||||
|
|
||||||
|
helm:
|
||||||
|
parameters:
|
||||||
|
# We use this to detect if we are called from ArgoCD
|
||||||
|
- name: argocdAppName
|
||||||
|
value: $ARGOCD_APP_NAME
|
||||||
|
# This breaks the recursion, otherwise we install another kubezero project and app
|
||||||
|
- name: installKubeZero
|
||||||
|
value: "false"
|
||||||
|
values: |
|
||||||
|
{{- toYaml .Values | nindent 8 }}
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
@ -63,7 +63,9 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
|
||||||
|
{{- with .Values.kubezero.syncPolicy }}
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
{{- toYaml . | nindent 4 }}
|
||||||
prune: true
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user