Move the ytt webhook config out into the CRD.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
5b9f2ec9fc
commit
2bdbac3e15
@ -29,9 +29,6 @@ data:
|
|||||||
pinniped.yaml: |
|
pinniped.yaml: |
|
||||||
discovery:
|
discovery:
|
||||||
url: (@= data.values.discovery_url or "null" @)
|
url: (@= data.values.discovery_url or "null" @)
|
||||||
webhook:
|
|
||||||
url: (@= data.values.webhook_url @)
|
|
||||||
caBundle: (@= data.values.webhook_ca_bundle @)
|
|
||||||
api:
|
api:
|
||||||
servingCertificate:
|
servingCertificate:
|
||||||
durationSeconds: (@= str(data.values.api_serving_certificate_duration_seconds) @)
|
durationSeconds: (@= str(data.values.api_serving_certificate_duration_seconds) @)
|
||||||
|
16
deploy/webhook.yaml
Normal file
16
deploy/webhook.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#! Copyright 2020 VMware, Inc.
|
||||||
|
#! SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
#@ load("@ytt:data", "data")
|
||||||
|
|
||||||
|
apiVersion: idp.pinniped.dev/v1alpha1
|
||||||
|
kind: WebhookIdentityProvider
|
||||||
|
metadata:
|
||||||
|
name: #@ data.values.app_name + "-webhook"
|
||||||
|
namespace: #@ data.values.namespace
|
||||||
|
labels:
|
||||||
|
app: #@ data.values.app_name
|
||||||
|
spec:
|
||||||
|
endpoint: #@ data.values.webhook_url
|
||||||
|
tls:
|
||||||
|
certificateAuthorityData: #@ data.values.webhook_ca_bundle
|
Loading…
Reference in New Issue
Block a user