Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce 366222d (#1207) #1232

Merged
merged 2 commits into from
Dec 30, 2019
Merged

Reintroduce 366222d (#1207) #1232

merged 2 commits into from
Dec 30, 2019

Conversation

zen-dog
Copy link
Contributor

@zen-dog zen-dog commented Dec 28, 2019

Additionally:

  • excluded instance_validator.go from code generation
  • and fixed an erroneous client import

Aleksey Dukhovniy and others added 2 commits December 28, 2019 19:25
Summary:
existing `Validator` interface was removed, we're now using the underlying `http.Handler` interface to register webhooks. This reduces glue code and prepares the foundation for upcoming KEP-20 admission webhook which will use the same interface (but will be a mutating instead of validating webhook)

(cherry picked from commit 366222d)
Additionally:
- excluded `instance_validator.go` from code generation
- and fixed an erroneous client import
)

// this forces the instance type to implement Validator interface, we'll get compile time error if it's not true anymore
var _ kudo.Validator = &Instance{}
// +k8s:deepcopy-gen=false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change

@kensipe kensipe merged commit 09691f1 into master Dec 30, 2019
@kensipe kensipe deleted the ad/unrev-1207 branch December 30, 2019 03:43
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
* Refactored instance validation webhook (#1207)

Summary:
existing `Validator` interface was removed, we're now using the underlying `http.Handler` interface to register webhooks. This reduces glue code and prepares the foundation for upcoming KEP-20 admission webhook which will use the same interface (but will be a mutating instead of validating webhook)

(cherry picked from commit 366222d)

* Reintroduce 366222d (#1207)

Additionally:
- excluded `instance_validator.go` from code generation
- and fixed an erroneous client import

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants