-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activating instance admission controller for the e2e tests (#1473)
Summary: when initializing KUDO manager for the e2e tests we now use the `--webhook InstanceValidation --unsafe-self-signed-webhook-ca` options that activate the instance admission controller (IAC) using the self-signed webhook CA bundle. We must ensure that KUDO manager runs before we begin executing test steps, otherwise, IAC `MutatingWebhookConfiguration` will fail `CREATE` and `UPDATE` requests to the `Instance` resources if the webhook server is not up and running. To achieve this, I added first step to all e2e steps ensuring the `kudo-controller-manager` pod is `Running`. Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
- Loading branch information
Aleksey Dukhovniy
committed
Apr 20, 2020
1 parent
5ca644e
commit f181a85
Showing
20 changed files
with
73 additions
and
46 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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: first-operator | ||
labels: | ||
app: kudo-manager | ||
control-plane: controller-manager | ||
namespace: kudo-system | ||
status: | ||
aggregatedStatus: | ||
status: COMPLETE | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
phase: Running |
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,12 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
metadata: | ||
name: first-operator | ||
status: | ||
aggregatedStatus: | ||
status: COMPLETE | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,11 +1,9 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
kudo.dev/operator: failjob-operator | ||
spec: | ||
operatorVersion: | ||
name: failjob-operator-0.1.0 | ||
app: kudo-manager | ||
control-plane: controller-manager | ||
namespace: kudo-system | ||
status: | ||
aggregatedStatus: | ||
status: FATAL_ERROR | ||
phase: Running |
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
File renamed without changes.
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,11 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
metadata: | ||
labels: | ||
kudo.dev/operator: job-timeout-operator | ||
spec: | ||
operatorVersion: | ||
name: job-timeout-operator-0.1.0 | ||
status: | ||
aggregatedStatus: | ||
status: FATAL_ERROR |
File renamed without changes.
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,18 +1,9 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
kudo.dev/operator: feature-operator | ||
spec: | ||
operatorVersion: | ||
name: feature-operator-0.1.0 | ||
app: kudo-manager | ||
control-plane: controller-manager | ||
namespace: kudo-system | ||
status: | ||
aggregatedStatus: | ||
status: COMPLETE | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: feature-operator-cm | ||
data: | ||
foo: "1234" | ||
phase: Running |
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
File renamed without changes.
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,6 +1,11 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: Instance | ||
metadata: | ||
name: feature-operator-cm | ||
data: | ||
foo: "1234" | ||
labels: | ||
kudo.dev/operator: feature-operator | ||
spec: | ||
operatorVersion: | ||
name: feature-operator-0.1.0 | ||
status: | ||
aggregatedStatus: | ||
status: COMPLETE |
File renamed without changes.
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,5 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: kubectl kudo update --instance feature-operator-instance -p enable_cm=true | ||
namespaced: true | ||
- command: kubectl kudo update --instance feature-operator-instance -p enable_cm=false | ||
namespaced: true |
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,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: feature-operator-cm | ||
data: | ||
foo: "1234" |
4 changes: 2 additions & 2 deletions
4
test/e2e/toggle-task/01-update.yaml → test/e2e/toggle-task/03-update.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: kudo.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- command: kubectl kudo update --instance feature-operator-instance -p enable_cm=false | ||
namespaced: true | ||
- command: kubectl kudo update --instance feature-operator-instance -p enable_cm=true | ||
namespaced: true |