Skip to content

Commit

Permalink
Clean up e2e-test kustomizations and add `ValidatingWebhookConfigurat…
Browse files Browse the repository at this point in the history
…ion` to them.
  • Loading branch information
Miles-Garnsey committed Feb 16, 2022
1 parent 66747bb commit e7fce60
Showing 1 changed file with 8 additions and 34 deletions.
42 changes: 8 additions & 34 deletions test/framework/e2e_framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ replacements:
kind: ClusterRoleBinding
fieldPaths:
- subjects.0.namespace
- select:
name: cass-operator-validating-webhook-configuration
kind: ValidatingWebhookConfiguration
fieldPaths:
- webhooks.0.clientConfig.service.namespace
`

dataPlaneTmpl := `
Expand Down Expand Up @@ -249,42 +254,11 @@ replacements:
kind: ClusterRoleBinding
fieldPaths:
- subjects.0.namespace
replacements:
- source:
kind: Namespace
name: {{ .Namespace }}
fieldPath: metadata.name
targets:
- select:
namespace: cass-operator
fieldPaths:
- metadata.namespace
- select:
namespace: k8ssandra-operator
fieldPaths:
- metadata.namespace
- select:
kind: ClusterRoleBinding
fieldPaths:
- subjects.0.namespace
replacements:
- source:
kind: Namespace
name: {{ .Namespace }}
fieldPath: metadata.name
targets:
- select:
namespace: cass-operator
fieldPaths:
- metadata.namespace
- select:
namespace: k8ssandra-operator
fieldPaths:
- metadata.namespace
- select:
kind: ClusterRoleBinding
name: cass-operator-validating-webhook-configuration
kind: ValidatingWebhookConfiguration
fieldPaths:
- subjects.0.namespace
- webhooks.0.clientConfig.service.namespace
`

k := Kustomization{Namespace: config.Namespace, ImageTag: config.ImageTag}
Expand Down

0 comments on commit e7fce60

Please sign in to comment.