Created
July 19, 2022 18:28
-
-
Save voor/172a763402d05d992ad9a5ccae106cc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:data", "data") | |
--- | |
apiVersion: sso.apps.tanzu.vmware.com/v1alpha1 | |
kind: ClientRegistration | |
metadata: | |
name: boats-appsso | |
namespace: boats | |
spec: | |
authServerSelector: | |
matchLabels: | |
oidc: "true" | |
provider: "gitlab" | |
clientAuthenticationMethod: basic | |
authorizationGrantTypes: | |
- authorization_code | |
redirectURIs: | |
- https://spring-sensors-boats.swf.tanzuplatform.com/login/oauth2/code/gitlab | |
scopes: | |
- name: openid | |
#@ def kapp_config(): | |
apiVersion: sso.apps.tanzu.vmware.com/v1alpha1 | |
kind: ClientRegistration | |
#@ end | |
#@overlay/match by=overlay.subset(kapp_config()), expects="0+" | |
--- | |
spec: | |
#@overlay/match by=overlay.all, expects="0+" | |
redirectURIs: | |
#@overlay/replace via=lambda left, right: left.replace("swf.tanzuplatform.com", right.strip()) | |
#@overlay/match by=overlay.all, expects="0+" | |
- | |
#@ data.values.tap.shared.ingress_domain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
tap: | |
shared: | |
ingress_domain: stuff.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment