-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This path introduces distinct webhook deployments for the admission and conversion webhooks. This is to provide a more stable and performant experience. The webhook pods will not require nearly as much memory as the controller-manager pods. Additionally, if the webhooks ever go down, it is a bad time. Admission webhooks being unavailable means no one can apply any changes to the VM Op APIs. The conversion webhooks being offline means no one can even *read* the VM Op APIs. This patch also removes the vestigial use of kustomizeconfig files since they are no longer needed, having been replaced by, well, the replacements feature.
- Loading branch information
Showing
32 changed files
with
559 additions
and
211 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,23 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: admission-webhook | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
args: | ||
- "--enable-leader-election=false" | ||
- "--health-addr=127.0.0.1:9446" | ||
- "--metrics-addr=0" | ||
- "--profiler-address=0" | ||
ports: | ||
- containerPort: 9446 | ||
name: health-probe | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: /readyz | ||
port: health-probe |
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,23 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: conversion-webhook | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
args: | ||
- "--enable-leader-election=false" | ||
- "--health-addr=127.0.0.1:9447" | ||
- "--metrics-addr=0" | ||
- "--profiler-address=0" | ||
ports: | ||
- containerPort: 9447 | ||
name: health-probe | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: /readyz | ||
port: health-probe |
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 |
---|---|---|
@@ -1,56 +1,24 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
configurations: | ||
- kustomizeconfig.yaml | ||
|
||
resources: | ||
- ../crd | ||
- ../manager | ||
- ../web-console-validator | ||
- ../rbac | ||
- ../webhook | ||
- ../webhooks/admission | ||
- ../webhooks/conversion | ||
- ../certmanager | ||
- ../crd/external-crds/encryption.vmware.com_encryptionclasses.yaml | ||
|
||
patches: | ||
- path: manager_default_container_patch.yaml | ||
- path: manager_auth_proxy_patch.yaml | ||
- path: manager_webhook_patch.yaml | ||
- path: manager_replicas_patch.yaml | ||
- path: manager_pod_info_patch.yaml | ||
- path: manager_tolerations_patch.yaml | ||
- path: manager_update_strategy_patch.yaml | ||
- path: manager_leader_election_id_patch.yaml | ||
- path: manager_max_concurrent_reconciles_patch.yaml | ||
|
||
replacements: | ||
- source: | ||
fieldPath: spec.template.spec.containers.[name=manager].ports.[name=webhook-server].containerPort | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
namespace: system | ||
name: controller-manager | ||
targets: | ||
- select: | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
namespace: system | ||
name: controller-manager | ||
fieldPaths: | ||
- spec.template.spec.containers.[name=manager].env.[name=WEBHOOK_SERVICE_CONTAINER_PORT].value | ||
- source: | ||
fieldPath: spec.template.spec.containers.[name=manager].volumeMounts.[name=cert].mountPath | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
namespace: system | ||
name: controller-manager | ||
targets: | ||
- select: | ||
kind: Deployment | ||
name: controller-manager | ||
fieldPaths: | ||
- spec.template.spec.containers.[name=manager].env.[name=WEBHOOK_SECRET_VOLUME_MOUNT_PATH].value | ||
- path: manager_health_and_metrics.yaml | ||
- path: admission_webhook_health_and_metrics.yaml | ||
- path: conversion_webhook_health_and_metrics.yaml |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ./vmoperator/ | ||
|
||
|
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- manager.yaml |
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.