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
Use tag to specify default value of config #2003
Conversation
Code coverage for golang is
|
@@ -41,8 +41,7 @@ func TestUnmarshalConfig(t *testing.T) { | |||
}`, | |||
wantSpec: &KubernetesDeploymentSpec{ | |||
Input: KubernetesDeploymentInput{ | |||
AutoRollback: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be remained? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. This test is for checking the UnmarshalJSON function of Config struct.
Our defaults assigning is done after that and not included in this test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it 👍 It addressed here pkg/config/deployment_kubernetes_test.go:76 already. Thanks for your clarification 🙏
Nice |
Just a quick question, the remaining fields (like PipedGit) gonna be gradually updated to use the tags, right? |
Yes. They will be gradually migrated in the future. |
got it. there you go! |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1392
Does this PR introduce a user-facing change?: