treasuremap/manifests/site/dex-bare-test-site/ephemeral/controlplane/replacements/site-dex-replacements.yaml

85 lines
2.4 KiB
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
annotations:
config.kubernetes.io/function: |-
container:
image: quay.io/airshipit/replacement-transformer:latest
name: site-dex-controlplane-replacements
replacements:
- source:
objref:
name: site-dex-catalogue
fieldref: dex.site.name
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.site.name"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.endpoints.hostname
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.endpoints.hostname"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.oidc.client_id
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.oidc.client_id"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.oidc.client_secret
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.oidc.client_secret"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.service.type
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.service.type"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.kubeadm.api-server.extra-args.oidc-issuer-url
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.kubeadm.api-server.extra-args.oidc-issuer-url"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.kubeadm.api-server.extra-args.oidc-client-id
target:
objref:
kind: VariableCatalogue
name: dex-catalogue
fieldrefs: [".dex.kubeadm.api-server.extra-args.oidc-client-id"]