Skip to content

Commit

Permalink
remove delete verb from validating webhook (#75)
Browse files Browse the repository at this point in the history
* remove delete verb from validating webhook

* remove delete verb on manifests
  • Loading branch information
sandoichi authored May 5, 2020
1 parent c9d8520 commit 5ae9bee
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ webhooks:
rules:
- apiGroups: ["cassandra.datastax.com"]
apiVersions: ["v1beta1"]
operations: ["CREATE", "UPDATE", "DELETE"]
operations: ["CREATE", "UPDATE"]
resources: ["cassandradatacenters"]
scope: "*"
clientConfig:
Expand Down
1 change: 0 additions & 1 deletion docs/user/cass-operator-manifests-pre-1.15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ webhooks:
operations:
- CREATE
- UPDATE
- DELETE
resources:
- cassandradatacenters
scope: '*'
Expand Down
1 change: 0 additions & 1 deletion docs/user/cass-operator-manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ webhooks:
operations:
- CREATE
- UPDATE
- DELETE
resources:
- cassandradatacenters
scope: '*'
Expand Down
2 changes: 1 addition & 1 deletion operator/pkg/apis/cassandra/v1beta1/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func ValidateDatacenterFieldChanges(oldDc CassandraDatacenter, newDc CassandraDa
return nil
}

// +kubebuilder:webhook:path=/validate-cassandradatacenter,mutating=false,failurePolicy=ignore,groups=cassandra.datastax.com,resources=cassandradatacenters,verbs=create;update;delete,versions=v1beta1,name=validate-cassandradatacenter-webhook
// +kubebuilder:webhook:path=/validate-cassandradatacenter,mutating=false,failurePolicy=ignore,groups=cassandra.datastax.com,resources=cassandradatacenters,verbs=create;update,versions=v1beta1,name=validate-cassandradatacenter-webhook
var _ webhook.Validator = &CassandraDatacenter{}

func (dc *CassandraDatacenter) ValidateCreate() error {
Expand Down

0 comments on commit 5ae9bee

Please sign in to comment.