Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: add configuration of webhook in helm module #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions charts/crane/templates/craned-webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,71 @@ webhooks:
resources:
- EffectiveHorizontalPodAutoscaler
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
caBundle: {{ .Files.Get "keys/ca.crt" | b64enc }}
service:
name: craned
namespace: {{ .Release.Namespace }}
path: /mutate-ensurance-crane-io-v1alpha1-nodeqosensurancepolicy
failurePolicy: Fail
name: mnodeqosensurancepolicies.ensurance.crane.io
rules:
- apiGroups:
- ensurance.crane.io
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- NodeQOSEnsurancePolicy
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
caBundle: {{ .Files.Get "keys/ca.crt" | b64enc }}
service:
name: craned
namespace: {{ .Release.Namespace }}
path: /mutate-ensurance-crane-io-v1alpha1-avoidanceaction
failurePolicy: Fail
name: mavoidanceactions.ensurance.crane.io
rules:
- apiGroups:
- ensurance.crane.io
apiVersions:
- v1alpha1
operations:
- CREATE
- UPDATE
resources:
- AvoidanceAction
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
caBundle: {{ .Files.Get "keys/ca.crt" | b64enc }}
service:
name: craned
namespace: {{ .Release.Namespace }}
path: /mutate--v1-pod
failurePolicy: Ignore
name: m.v1.pod
rules:
- apiGroups: [""]
apiVersions: ["v1"]
operations: ["CREATE"]
resources: ["pods"]
sideEffects: None
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
operator: NotIn
values:
- kube-system
- crane-system

---
apiVersion: admissionregistration.k8s.io/v1
Expand Down