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

fix: Allow empty strings in valueFrom.default #2805

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

simster7
Copy link
Member

Fixes #2799

@simster7 simster7 requested a review from alexec April 23, 2020 16:12
@sonarcloud
Copy link

sonarcloud bot commented Apr 23, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

25.0% 25.0% Coverage
0.0% 0.0% Duplication

@@ -596,7 +596,7 @@ type ValueFrom struct {
Parameter string `json:"parameter,omitempty" protobuf:"bytes,4,opt,name=parameter"`

// Default specifies a value to be used if retrieving the value from the specified source fails
Default string `json:"default,omitempty" protobuf:"bytes,5,opt,name=default"`
Default *string `json:"default,omitempty" protobuf:"bytes,5,opt,name=default"`
Copy link
Contributor

Choose a reason for hiding this comment

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

ahhhh!

@alexec
Copy link
Contributor

alexec commented Apr 23, 2020

I'm interested to note that this didn't result in Swagger or Proto changes. Merge away!

@simster7 simster7 merged commit 510e11b into argoproj:master Apr 23, 2020
@simster7
Copy link
Member Author

Back-ported to 2.7

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.

Default values of empty string are ignored
2 participants