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

Add omitempty tag to optional spec types #108

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

matkam
Copy link
Contributor

@matkam matkam commented Jul 22, 2020

👋 I'm adding these omitempty tags in the WPA spec after running into an automation issue. A WPA resource generated from the existing WorkerPodAutoScaler spec is not valid or accepted by the CRD, since both DeploymentName and ReplicaSetName are always included, even when not specified. Generated WPA resources end up triggering a violation the oneOf validation, and cannot be applied. The PR omits empty DeploymentName and ReplicaSetName fields, along with the optional fields in the WPA spec.

@alok87 alok87 merged commit 727b34a into practo:master Jul 22, 2020
@alok87
Copy link
Contributor

alok87 commented Jul 22, 2020

Following images were pushed for this change:

pushed: practodev/workerpodautoscaler:v1.1.0-3-g727b34a
pushed: practodev/workerpodautoscaler:v1.1
pushed: practodev/workerpodautoscaler:v1

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.

2 participants