Add thanos versions and replacements

This change adds the thanos operator chart, repo, and image versions to
the versions catalogue so they can be overridden downstream.

Signed-off-by: Drew Walters <andrew.walters@att.com>
Change-Id: I92b3e5c1e2735d327c8ce46f32c67589faea1b08
changes/18/782618/2
Drew Walters 2 years ago
parent 6a67748eae
commit 717d674761
  1. 1
      manifests/composite/monitoring-stack/replacements/kustomization.yaml
  2. 4
      manifests/function/thanos-operator/helmrelease.yaml
  3. 3
      manifests/function/thanos-operator/helmrepository.yaml
  4. 2
      manifests/function/thanos-operator/replacements/kustomization.yaml
  5. 51
      manifests/function/thanos-operator/replacements/versions.yaml
  6. 8
      manifests/function/treasuremap-base-catalogues/versions-treasuremap.yaml

@ -1,2 +1,3 @@
resources:
- ../../../function/grafana/replacements
- ../../../function/thanos-operator/replacements

@ -7,11 +7,9 @@ spec:
interval: 5m
chart:
spec:
chart: thanos-operator
sourceRef:
kind: HelmRepository
name: banzaicloud
version: 0.1.0
name: thanos
interval: 1m
wait: false
timeout: 5m

@ -1,7 +1,6 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: banzaicloud
name: thanos
spec:
url: https://kubernetes-charts.banzaicloud.com
interval: 10m

@ -0,0 +1,51 @@
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: thanos-versions-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/replacement-transformer:latest
replacements:
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.helm_repositories.thanos}"
target:
objref:
kind: HelmRepository
name: thanos
fieldrefs: ["{.spec}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.thanos.chart}"
target:
objref:
kind: HelmRelease
name: thanos-operator
fieldrefs: ["{.spec.chart.spec.chart}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.charts.thanos.version}"
target:
objref:
kind: HelmRelease
name: thanos-operator
fieldrefs: ["{.spec.chart.version}"]
- source:
objref:
kind: VersionsCatalogue
name: versions-treasuremap
fieldref: "{.spec.images.thanos}"
target:
objref:
kind: HelmRelease
name: thanos-operator
fieldrefs: ["{.spec.values.image}"]

@ -15,6 +15,8 @@ spec:
url: https://kubernetes-charts.banzaicloud.com
minio:
url: https://helm.min.io
thanos:
url: https://kubernetes-charts.banzaicloud.com
charts:
grafana:
@ -32,6 +34,9 @@ spec:
minio:
chart: minio
version: 8.0.9
thanos:
chart: thanos-operator
version: 0.1.0
images:
grafana:
@ -89,3 +94,6 @@ spec:
sip:
kube-rbac-proxy: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0
manager: quay.io/airshipit/sip:51e7ff85d617c0e94fa98920fdbacce3ad9e6bc0
thanos:
repository: banzaicloud/thanos-operator
tag: latest

Loading…
Cancel
Save