-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Helm chart to include pod mutating webhook for readiness gates (…
…#612) Update Helm chart to include pod mutating webhook for readiness gates. Moved webhook certificate provisioning out of build. Added helper scripts and env variable for enabling webhooks and working with certificates
- Loading branch information
1 parent
6e262ae
commit 553422e
Showing
14 changed files
with
286 additions
and
62 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{{ $tls := fromYaml ( include "aws-gateway-controller.webhookTLS" . ) }} | ||
--- | ||
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: aws-appnet-gwc-mutating-webhook | ||
webhooks: | ||
- admissionReviewVersions: | ||
- v1 | ||
clientConfig: | ||
caBundle: {{ $tls.caCert }} | ||
service: | ||
name: webhook-service | ||
namespace: {{ .Release.Namespace }} | ||
path: /mutate-pod | ||
failurePolicy: Fail | ||
name: mpod.gwc.k8s.aws | ||
rules: | ||
- apiGroups: | ||
- "" | ||
apiVersions: | ||
- v1 | ||
operations: | ||
- CREATE | ||
resources: | ||
- pods | ||
sideEffects: None | ||
namespaceSelector: | ||
matchExpressions: | ||
- key: application-networking.k8s.aws/pod-readiness-gate-inject | ||
operator: In | ||
values: | ||
- enabled | ||
objectSelector: | ||
matchExpressions: | ||
- key: app.kubernetes.io/name | ||
operator: NotIn | ||
values: | ||
- gateway-api-controller | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: webhook-service | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
ports: | ||
- port: 443 | ||
targetPort: webhook-server | ||
selector: | ||
control-plane: gateway-api-controller | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: webhook-cert | ||
namespace: {{ .Release.Namespace }} | ||
type: kubernetes.io/tls | ||
data: | ||
ca.crt: {{ $tls.caCert }} | ||
tls.crt: {{ $tls.cert }} | ||
tls.key: {{ $tls.key }} |
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
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
Oops, something went wrong.