Skip to content

Commit

Permalink
Update dependencies/kustomization.yaml
Browse files Browse the repository at this point in the history
Allow the resources depending on the webook to be accessed using
kudectl

Co-authored-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
2 people authored and eguzki committed Sep 27, 2023
1 parent 82d292a commit 1eb8bdb
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions config/dependencies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,78 @@ resources:
patchesStrategicMerge:
- authorino/delete-ns.yaml
- limitador/delete-ns.yaml

replacements:
- source:
fieldPath: .metadata.namespace
group: cert-manager.io
kind: Certificate
name: authorino-webhook-server-cert
version: v1
targets:
- fieldPaths:
- .metadata.annotations.[cert-manager.io/inject-ca-from]
options:
create: true
delimiter: /
select:
kind: CustomResourceDefinition
name: authconfigs.authorino.kuadrant.io
- source:
fieldPath: .metadata.name
group: cert-manager.io
kind: Certificate
name: authorino-webhook-server-cert
version: v1
targets:
- fieldPaths:
- .metadata.annotations.[cert-manager.io/inject-ca-from]
options:
create: true
delimiter: /
index: 1
select:
kind: CustomResourceDefinition
name: authconfigs.authorino.kuadrant.io
- source:
fieldPath: .metadata.name
kind: Service
name: authorino-webhooks
version: v1
targets:
- fieldPaths:
- .spec.dnsNames.0
- .spec.dnsNames.1
options:
create: true
delimiter: .
select:
group: cert-manager.io
kind: Certificate
name: authorino-webhook-server-cert
version: v1
- source:
fieldPath: .metadata.namespace
kind: Service
name: authorino-webhooks
version: v1
targets:
- fieldPaths:
- .spec.dnsNames.0
- .spec.dnsNames.1
options:
create: true
delimiter: .
index: 1
select:
group: cert-manager.io
kind: Certificate
name: authorino-webhook-server-cert
version: v1
- fieldPaths:
- subjects.0.namespace
select:
group: rbac.authorization.k8s.io
kind: RoleBinding
name: authorino-webhooks-manager

0 comments on commit 1eb8bdb

Please sign in to comment.