Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

minor tweak, assign the workloadRef during render instead of apply #249

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

ryanzhang-oss
Copy link
Collaborator

Assign the workloadRef during render instead of apply phase. The result is a more clean-cut division between apply and render and one search for the traitDefinition instead of two.

Signed-off-by: Ryan Zhang <yangzhangrice@hotmail.com>
trait := traits[i]
workloadRefPath := traitDef.Spec.WorkloadRefPath
if len(workloadRefPath) != 0 {
fmt.Printf("\n\n\nworkloadRef path = %s\n\n\n", workloadRefPath)
Copy link
Member

Choose a reason for hiding this comment

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

please remove this debug info

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done, good catch

Signed-off-by: Ryan Zhang <yangzhangrice@hotmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants