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

🐛 Sort manifests for by Kind helm addons #249

Merged

Conversation

tamalsaha
Copy link
Contributor

@tamalsaha tamalsaha commented Mar 11, 2024

Helm will sort objects by kind when applying to a cluster. This pr also follows/copies the same code to sort rendered objects.

@openshift-ci openshift-ci bot requested review from deads2k and zhujian7 March 11, 2024 17:51
@tamalsaha tamalsaha changed the title Sort manifests for helm addons Sort manifests for by Kind helm addons Mar 11, 2024
@tamalsaha tamalsaha changed the title Sort manifests for by Kind helm addons ✨ Sort manifests for by Kind helm addons Mar 12, 2024
@tamalsaha tamalsaha changed the title ✨ Sort manifests for by Kind helm addons 🐛 Sort manifests for by Kind helm addons Mar 12, 2024
@@ -260,3 +279,47 @@ func (a *HelmAgentAddon) releaseOptions(
Namespace: a.getValueAgentInstallNamespace(addon),
}
}

// Manifest represents a manifest file, which has a name and some content.
type Manifest struct {
Copy link
Member

Choose a reason for hiding this comment

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

nit, should be private struct. I think you only use it internally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Signed-off-by: Tamal Saha <tamal@appscode.com>
@qiujian16
Copy link
Member

/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Mar 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiujian16, tamalsaha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit d8d4494 into open-cluster-management-io:main Mar 13, 2024
12 checks passed
@tamalsaha tamalsaha deleted the helm-sort branch March 13, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants