-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a finalizer to make sure web hooks are removed when operator is u…
…ninstalled When uninstalling the forklift operator, not all resources are removed from the cluster. In particular, there are at least 3 validatingwebhookconfiguration objects and 3 mutatingwebhookconfiguration objects that are left behind. By using a finalizer on the operator, we can ensure that these objects are removed from the cluster. Fixes: https://issues.redhat.com/browse/MTV-1076 Signed-off-by: Jonathon Jongsma <[email protected]>
- Loading branch information
Showing
3 changed files
with
48 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- block: | ||
- name: "Setup secrets validating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/validatingwebhookconfiguration-secrets.yml.j2') }}" | ||
|
||
- name: "Setup plans validating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/validatingwebhookconfiguration-plans.yml.j2') }}" | ||
|
||
- name: "Setup providers validating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/validatingwebhookconfiguration-providers.yml.j2') }}" | ||
|
||
- name: "Setup secrets mutating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/mutatingwebhookconfiguration-secrets.yml.j2') }}" | ||
|
||
- name: "Setup plans mutating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/mutatingwebhookconfiguration-plans.yml.j2') }}" | ||
|
||
- name: "Setup providers mutating webhook configuration" | ||
k8s: | ||
state: "{{ webhook_state }}" | ||
definition: "{{ lookup('template', 'api/mutatingwebhookconfiguration-providers.yml.j2') }}" | ||
|
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