Merge "Use helm-chart-collator for all charts"

This commit is contained in:
Zuul 2021-07-13 22:27:40 +00:00 committed by Gerrit Code Review
commit cf14c3c93e
47 changed files with 28 additions and 256 deletions

View File

@ -9,12 +9,4 @@ patches:
target: target:
kind: HelmRelease kind: HelmRelease
name: elasticsearch name: elasticsearch
- patch: |-
- op: replace
path: /metadata/name
value: elasticsearch-data
target:
kind: HelmRepository
name: elasticsearch
- path: patches/elasticsearch-data.yaml - path: patches/elasticsearch-data.yaml

View File

@ -4,10 +4,6 @@ metadata:
name: elasticsearch-data name: elasticsearch-data
spec: spec:
releaseName: elasticsearch-data releaseName: elasticsearch-data
chart:
spec:
sourceRef:
name: elasticsearch-data
values: values:
nodeGroup: "data" nodeGroup: "data"
masterService: elasticsearch-ingest masterService: elasticsearch-ingest

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.elastic.url}"
target:
objref:
kind: HelmRepository
name: elasticsearch-data
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,11 +9,4 @@ patches:
target: target:
kind: HelmRelease kind: HelmRelease
name: elasticsearch name: elasticsearch
- patch: |-
- op: replace
path: /metadata/name
value: elasticsearch-ingest
target:
kind: HelmRepository
name: elasticsearch
- path: patches/elasticsearch-ingest.yaml - path: patches/elasticsearch-ingest.yaml

View File

@ -4,10 +4,6 @@ metadata:
name: elasticsearch-ingest name: elasticsearch-ingest
spec: spec:
releaseName: elasticsearch-ingest releaseName: elasticsearch-ingest
chart:
spec:
sourceRef:
name: elasticsearch-ingest
values: values:
nodeGroup: "ingest" nodeGroup: "ingest"
roles: roles:

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.elastic.url}"
target:
objref:
kind: HelmRepository
name: elasticsearch-ingest
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -20,16 +20,10 @@ spec:
chart: chart:
spec: spec:
chart: dex-aio chart: dex-aio
# Referencing Dex Helm charts from Helm Collator repo
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: collator
namespace: helm-chart-collator namespace: helm-chart-collator
# Referencing Dex Helm charts from Git repo name: collator
# sourceRef:
# kind: GitRepository
# name: dex-git-repo
# namespace: collator
values: values:
images: images:
applications: applications:

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: elasticsearch namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
values: {} values: {}

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: elasticsearch
spec:
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.elastic.url}"
target:
objref:
kind: HelmRepository
name: elasticseach
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: grafana namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: grafana
spec:
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.grafana.url}"
target:
objref:
kind: HelmRepository
name: grafana
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -2,8 +2,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: collator
namespace: helm-chart-collator namespace: helm-chart-collator
name: collator
spec: spec:
interval: 5m interval: 5m
url: http://helm-chart-collator.helm-chart-collator.svc:8080 url: http://helm-chart-collator.helm-chart-collator.svc:8080

View File

@ -5,11 +5,10 @@ metadata:
spec: spec:
chart: chart:
spec: spec:
chart: ingress-nginx
version: 3.5.1
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: ingress-nginx namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
values: values:
defaultBackend: defaultBackend:

View File

@ -1,7 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: ingress-nginx
spec:
url: https://kubernetes.github.io/ingress-nginx
interval: 10m

View File

@ -1,5 +1,4 @@
resources: resources:
- helmrelease.yaml - helmrelease.yaml
- helmrepository.yaml
- namespace.yaml - namespace.yaml
namespace: ingress namespace: ingress

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.ingress-nginx.url}"
target:
objref:
kind: HelmRepository
name: ingress-nginx
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: kibana namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
values: {} values: {}

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: kibana
spec:
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.elastic.url}"
target:
objref:
kind: HelmRepository
name: kibana
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: prometheus-community namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,7 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: prometheus-community
namespace: monitoring
spec:
interval: 10m

View File

@ -1,7 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml
namespace: monitoring namespace: monitoring

View File

@ -7,18 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
# Helm Repo
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.prometheus_community.url}"
target:
objref:
kind: HelmRepository
name: prometheus-community
fieldrefs: ["{.spec.url}"]
# Chart # Chart
- source: - source:
objref: objref:
@ -40,7 +28,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: kube-prometheus-stack name: kube-prometheus-stack
fieldrefs: ["{.spec.chart.spec.version}"] fieldrefs: ["{.spec.chart.spec.version}"]
# Images # Images
- source: - source:
objref: objref:

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: banzaicloud namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: banzaicloud namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: banzaicloud
spec:
interval: 10m

View File

@ -1,7 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- helmrepository.yaml
- helmrelease-operator.yaml - helmrelease-operator.yaml
- helmrelease-logging.yaml - helmrelease-logging.yaml

View File

@ -7,18 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
# Helm Repo (logging-operator and logging-operator-logging charts)
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.banzai_cloud.url}"
target:
objref:
kind: HelmRepository
name: banzaicloud
fieldrefs: ["{.spec.url}"]
# Logging-operator Chart # Logging-operator Chart
- source: - source:
objref: objref:
@ -40,7 +28,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: logging-operator name: logging-operator
fieldrefs: ["{.spec.chart.spec.version}"] fieldrefs: ["{.spec.chart.spec.version}"]
# Logging-operator-logging Chart # Logging-operator-logging Chart
- source: - source:
objref: objref:
@ -62,7 +49,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: logging-operator-logging name: logging-operator-logging
fieldrefs: ["{.spec.chart.spec.version}"] fieldrefs: ["{.spec.chart.spec.version}"]
# Logging-operator Chart Image # Logging-operator Chart Image
- source: - source:
objref: objref:
@ -74,7 +60,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: logging-operator name: logging-operator
fieldrefs: ["{.spec.values.image}"] fieldrefs: ["{.spec.values.image}"]
# Logging-operator-logging Chart Images # Logging-operator-logging Chart Images
- source: - source:
objref: objref:

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: minio namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,7 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: minio
spec:
url: https://helm.min.io/
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrelease.yaml - helmrelease.yaml
- helmrepository.yaml

View File

@ -7,17 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.minio.url}"
target:
objref:
kind: HelmRepository
name: minio
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue
@ -37,8 +26,7 @@ replacements:
objref: objref:
kind: HelmRelease kind: HelmRelease
name: minio name: minio
fieldrefs: ["{.spec.chart.version}"] fieldrefs: ["{.spec.chart.spec.version}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue
@ -49,7 +37,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: minio name: minio
fieldrefs: ["{.spec.values.image}"] fieldrefs: ["{.spec.values.image}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: prometheus-elasticsearch-exporter namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: prometheus-elasticsearch-exporter
spec:
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrepository.yaml
- helmrelease.yaml - helmrelease.yaml

View File

@ -7,16 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.prometheus_community.url}"
target:
objref:
kind: HelmRepository
name: prometheus-elasticsearch-exporter
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -9,7 +9,8 @@ spec:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: thanos namespace: helm-chart-collator
name: collator
interval: 1m interval: 1m
timeout: 5m timeout: 5m
# Reference values at # Reference values at

View File

@ -1,6 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: thanos
spec:
interval: 10m

View File

@ -1,3 +1,2 @@
resources: resources:
- helmrelease.yaml - helmrelease.yaml
- helmrepository.yaml

View File

@ -7,17 +7,6 @@ metadata:
container: container:
image: localhost/replacement-transformer image: localhost/replacement-transformer
replacements: replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.banzai_cloud.url}"
target:
objref:
kind: HelmRepository
name: thanos
fieldrefs: ["{.spec.url}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue
@ -38,7 +27,6 @@ replacements:
kind: HelmRelease kind: HelmRelease
name: thanos-operator name: thanos-operator
fieldrefs: ["{.spec.chart.spec.version}"] fieldrefs: ["{.spec.chart.spec.version}"]
- source: - source:
objref: objref:
kind: VersionsCatalogue kind: VersionsCatalogue

View File

@ -15,23 +15,6 @@ spec:
checksum: 4a6909d1480ac30d676accd7b37ec711 checksum: 4a6909d1480ac30d676accd7b37ec711
helm_repositories: helm_repositories:
elastic:
url: https://helm.elastic.co
grafana:
url: https://grafana.github.io/helm-charts
prometheus_community:
url: https://prometheus-community.github.io/helm-charts
# NOTE: logging-operator and logging-operator-logging charts share this repository
banzai_cloud:
url: https://kubernetes-charts.banzaicloud.com
minio:
url: https://helm.min.io
ingress-nginx:
url: https://kubernetes.github.io/ingress-nginx
rook-operator:
url: https://charts.rook.io/release
dex-aio:
url: http://helm-chart-collator.collator.svc:8080
helm_chart_collator: helm_chart_collator:
url: http://helm-chart-collator.helm-chart-collator.svc:8080 url: http://helm-chart-collator.helm-chart-collator.svc:8080
@ -68,11 +51,10 @@ spec:
version: 3.5.1 version: 3.5.1
dex-aio: dex-aio:
chart: dex-aio chart: dex-aio
version: 0.1.0 version: 0.1.0+source.f0cea38c0ecd319d6996b85d7aab27982704bacd0c843fbecb
provisioner: provisioner:
chart: provisioner chart: provisioner
version: "" version: 2.4.0+source.f7110d65dcdeecd6e7d81b460d72ef7a000457dc5b4e08b152
images: images:
# images are organized by # images are organized by
# <function>: # <function>:
@ -85,7 +67,7 @@ spec:
helm_chart_collator: helm_chart_collator:
helm_chart_collator: helm_chart_collator:
helm_chart_collator: helm_chart_collator:
image: quay.io/airshipit/helm-chart-collator:95036e4d6dae5f7fc8a5c7d2da7f430775d457c5 image: quay.io/airshipit/helm-chart-collator:62fee9ee1db9a3f9c21f9c83737080032eeeae8a
kube_prometheus_stack: kube_prometheus_stack:
prometheus_operator: prometheus_operator:
# NOTE: For prometheus and alertmanager instances managed by the operator # NOTE: For prometheus and alertmanager instances managed by the operator

View File

@ -22,6 +22,6 @@ spec:
chart: wordpress chart: wordpress
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: wordpress-helm-repo namespace: helm-chart-collator
namespace: wordpress name: collator
values: {} values: {}