Skip to content

Commit

Permalink
Fix with rbac #2
Browse files Browse the repository at this point in the history
  • Loading branch information
qurname2 committed Aug 30, 2024
1 parent a0b66d6 commit 2580781
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/crd/patches/cainjection_in_remotedatanodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The following patch adds a directive for certmanager to inject CA into the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: $(WEBHOOK_CERTIFICATE_NAMESPACE)/$(WEBHOOK_CERTIFICATE_NAME)
name: remotedatanodes.cluster.ytsaurus.tech
16 changes: 16 additions & 0 deletions config/crd/patches/webhook_in_remotedatanodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The following patch enables a conversion webhook for the CRD
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: remotedatanodes.cluster.ytsaurus.tech
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
namespace: system
name: webhook-service
path: /convert
conversionReviewVersions:
- v1

0 comments on commit 2580781

Please sign in to comment.