Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Annotations #58

Merged
merged 5 commits into from Nov 11, 2020
Merged

Annotations #58

merged 5 commits into from Nov 11, 2020

Conversation

mgoodness
Copy link
Contributor

Signed-off-by: Michael Goodness <michael.goodness@mlb.com>
…ting

Signed-off-by: Michael Goodness <michael.goodness@mlb.com>
Signed-off-by: Michael Goodness <michael.goodness@mlb.com>
@mgoodness mgoodness marked this pull request as ready for review October 1, 2020 21:26
@dgoodwin
Copy link
Contributor

dgoodwin commented Oct 2, 2020

Would it be feasible to add a small unit test just to ensure we keep it working? It looks relatively straightforward to add in to cluster_test.go. If time is an issue we can merge and add later.

@@ -65,9 +64,12 @@ func (g *ClusterGenerator) GenerateParams(

res := make([]map[string]string, len(clusterSecretList.Items))
for i, cluster := range clusterSecretList.Items {
params := make(map[string]string, len(cluster.ObjectMeta.Labels) + 2)
params := make(map[string]string, len(cluster.ObjectMeta.Labels)+2)
Copy link
Contributor

Choose a reason for hiding this comment

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

the length of the map should be: len(cluster.ObjectMeta.Labels) + len(cluster.ObjectMeta.Annotations) + 2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

Signed-off-by: Michael Goodness <michael.goodness@mlb.com>
Signed-off-by: Michael Goodness <michael.goodness@mlb.com>
@xianlubird xianlubird merged commit 717fc3c into argoproj:master Nov 11, 2020
@mgoodness mgoodness deleted the annotations branch November 11, 2020 18:10
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.

Add support to metadata.annotations in the template
4 participants