treasuremap/manifests/site/dex-test-site/target/workload/dex-aio/replacements/site-dex-replacements.yaml

77 lines
2.3 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-cluster-controlplane-replacements
replacements:
# Dex VariableCatalogue Values override
- source:
objref:
name: site-dex-catalogue
fieldref: dex.site.name
target:
objref:
kind: VariableCatalogue
name: type-dex-catalogue
fieldrefs: [".dex.site.name"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.endpoints.hostname
target:
objref:
kind: VariableCatalogue
name: type-dex-catalogue
fieldrefs: [".dex.endpoints.hostname"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.oidc.client_id
target:
objref:
kind: VariableCatalogue
name: type-dex-catalogue
fieldrefs: [".dex.oidc.client_id"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.oidc.client_secret
target:
objref:
kind: VariableCatalogue
name: type-dex-catalogue
fieldrefs: [".dex.oidc.client_secret"]
- source:
objref:
name: site-dex-catalogue
fieldref: dex.service.type
target:
objref:
kind: VariableCatalogue
name: type-dex-catalogue
fieldrefs: [".dex.service.type"]
# Uncomment "-source" structure below to add your IDP Connector data
# - source:
# objref:
# name: site-dex-catalogue
# fieldref: dex.idp.connector.connectors
# target:
# objref:
# kind: VariableCatalogue
# name: type-dex-catalogue
# fieldrefs: ["dex.idp.connector.connectors"]