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

chore: remove unused code: validate.ValidateWorkflow() no longer sets wfConditions #9055

Merged
merged 4 commits into from Jun 25, 2022

Conversation

juliev0
Copy link
Contributor

@juliev0 juliev0 commented Jun 24, 2022

validate.ValidateWorkflow() no longer sets wfConditions so removing it to clean up the code

Signed-off-by: Julie Vogelman julie_vogelman@intuit.com

…ing it to clean up the code

Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
@juliev0 juliev0 marked this pull request as draft June 24, 2022 20:27
Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
@juliev0 juliev0 marked this pull request as ready for review June 24, 2022 22:34
@@ -106,16 +106,15 @@ func (args *FakeArguments) GetArtifactByName(name string) *wfv1.Artifact {
var _ wfv1.ArgumentsProvider = &FakeArguments{}

// ValidateWorkflow accepts a workflow and performs validation against it.
func ValidateWorkflow(wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, wf *wfv1.Workflow, opts ValidateOpts) (*wfv1.Conditions, error) {
wfConditions := &wfv1.Conditions{}
func ValidateWorkflow(wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, wf *wfv1.Workflow, opts ValidateOpts) error {
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 main change - to get rid of wfConditions which isn't used. Every other change is upstream from here.

Copy link
Member

@tczhao tczhao left a comment

Choose a reason for hiding this comment

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

related PR #5035

@terrytangyuan terrytangyuan changed the title fix: remove unused code: validate.ValidateWorkflow() no longer sets wfConditions chore: remove unused code: validate.ValidateWorkflow() no longer sets wfConditions Jun 25, 2022
@terrytangyuan terrytangyuan merged commit cb781cf into argoproj:master Jun 25, 2022
reddymh pushed a commit to reddymh/argo-workflows that referenced this pull request Jan 2, 2023
… wfConditions (argoproj#9055)

* fix: validate.ValidateWorkflow() no longer sets wfConditions so removing it to clean up the code

Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>

* fix: unit tests

Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>

* fix: unit test

Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>

* fix: lint issue

Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
Signed-off-by: Reddy <Rajshekar.Reddy@lowes.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

3 participants