Merge "Added replacements for composite/infra"
This commit is contained in:
commit
7b8f976889
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../function/cni/tigera-operator/replacements
|
||||
- ../../../function/cert-manager/replacements
|
@ -146,8 +146,11 @@ spec:
|
||||
manager:
|
||||
image: ghcr.io/fluxcd/source-controller:v0.5.3
|
||||
cert-manager:
|
||||
cert-manager:
|
||||
repository:
|
||||
image: "quay.io/jetstack"
|
||||
cainjector:
|
||||
image: quay.io/jetstack/cert-manager-cainjector:v1.1.0
|
||||
controller:
|
||||
image: quay.io/jetstack/cert-manager-controller:v1.1.0
|
||||
webhook:
|
||||
image: quay.io/jetstack/cert-manager-webhook:v1.1.0
|
||||
|
||||
kubernetes: v1.18.6
|
||||
|
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- versions.yaml
|
39
manifests/function/cert-manager/replacements/versions.yaml
Normal file
39
manifests/function/cert-manager/replacements/versions.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ReplacementTransformer
|
||||
metadata:
|
||||
name: cert-manager-versions-replacements
|
||||
annotations:
|
||||
config.kubernetes.io/function: |-
|
||||
container:
|
||||
image: localhost/replacement-transformer
|
||||
replacements:
|
||||
- source:
|
||||
objref:
|
||||
kind: VersionsCatalogue
|
||||
name: versions-airshipctl
|
||||
fieldref: spec.images.cert-manager.cainjector.image
|
||||
target:
|
||||
objref:
|
||||
kind: Deployment
|
||||
name: cert-manager-cainjector
|
||||
fieldrefs: ["spec.template.spec.containers[name=cert-manager].image"]
|
||||
- source:
|
||||
objref:
|
||||
kind: VersionsCatalogue
|
||||
name: versions-airshipctl
|
||||
fieldref: spec.images.cert-manager.controller.image
|
||||
target:
|
||||
objref:
|
||||
kind: Deployment
|
||||
name: cert-manager
|
||||
fieldrefs: ["spec.template.spec.containers[name=cert-manager].image"]
|
||||
- source:
|
||||
objref:
|
||||
kind: VersionsCatalogue
|
||||
name: versions-airshipctl
|
||||
fieldref: spec.images.cert-manager.webhook.image
|
||||
target:
|
||||
objref:
|
||||
kind: Deployment
|
||||
name: cert-manager-webhook
|
||||
fieldrefs: ["spec.template.spec.containers[name=cert-manager].image"]
|
@ -187,15 +187,3 @@ replacements:
|
||||
kind: Clusterctl
|
||||
name: clusterctl_init
|
||||
fieldrefs: ["{.images.infrastructure-azure/kube-rbac-proxy}"]
|
||||
|
||||
# Replace the cert-manager image repository in the Clusterctl
|
||||
- source:
|
||||
objref:
|
||||
kind: VersionsCatalogue
|
||||
name: versions-airshipctl
|
||||
fieldref: "{.spec.images.cert-manager.cert-manager.repository.image}"
|
||||
target:
|
||||
objref:
|
||||
kind: Clusterctl
|
||||
name: clusterctl_init
|
||||
fieldrefs: ["{.images.cert-manager.repository}"]
|
||||
|
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../../../function/airshipctl-base-catalogues
|
@ -1,6 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../composite/infra
|
||||
commonLabels:
|
||||
airshipit.org/stage: initinfra
|
||||
|
||||
transformers:
|
||||
- ../../../../composite/infra/replacements
|
||||
|
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../../../function/airshipctl-base-catalogues
|
@ -1,7 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../composite/infra
|
||||
|
||||
commonLabels:
|
||||
airshipit.org/stage: initinfra
|
||||
|
||||
transformers:
|
||||
- ../../../../composite/infra/replacements
|
||||
|
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../../../function/airshipctl-base-catalogues
|
@ -1,7 +1,12 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../composite/infra
|
||||
|
||||
commonLabels:
|
||||
airshipit.org/stage: initinfra
|
||||
|
||||
transformers:
|
||||
- ../../../../composite/infra/replacements
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../composite/infra/
|
||||
|
||||
commonLabels:
|
||||
airshipit.org/stage: initinfra
|
||||
|
||||
transformers:
|
||||
- ../../../../composite/infra/replacements
|
||||
|
@ -1,6 +1,11 @@
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../composite/infra/
|
||||
- namespace.yaml
|
||||
|
||||
commonLabels:
|
||||
airshipit.org/stage: initinfra
|
||||
|
||||
transformers:
|
||||
- ../../../../composite/infra/replacements
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user