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

Adding validating and defaulting webhooks + using v0.7.0 for controller-runtime #5

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

sarmad-abualkaz
Copy link
Owner

This PR is adding validating and defaulting webhook:

  • defaulting emtpy spec.resource.type to deployment
  • validate spec.scaleup.value is always higher than spec.scaledown.value
  • validate spec.scaledown.value is at least 1 or above (zero or negative values rejected)
  • ensure that both spec.scaleup.time and spec.scaledown.time are both parsable by time.Parse with Kitchen format - (e.g. 4:00PM).

The PR also works around the issue related to having nonroot users attempting to access port 443 on containers resolved by controller-runtime#1076 - by upgrading the controller-runtime to version v0.7.0

@sarmad-abualkaz sarmad-abualkaz merged commit 78f6aba into main Mar 22, 2021
@sarmad-abualkaz sarmad-abualkaz deleted the feat/webhook-work branch March 22, 2021 02:44
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

1 participant