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

flux tree: Track CRDs managed by HelmReleases #3549

Merged
merged 1 commit into from
Feb 1, 2023
Merged

Conversation

stefanprodan
Copy link
Member

cmd/flux/tree_kustomization.go Outdated Show resolved Hide resolved
fmt.Sprintf("%s/name", helmv2.GroupVersion.Group): hr.GetName(),
fmt.Sprintf("%s/namespace", helmv2.GroupVersion.Group): hr.GetNamespace(),
}
var list apiextensionsv1.CustomResourceDefinitionList
Copy link
Member

Choose a reason for hiding this comment

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

Think that for tree purposes we should start looking into using PartialObjectMetadata (and PartialObjectMetadataList) from the meta API, which would make things much more lightweight.

Copy link
Member

Choose a reason for hiding this comment

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

Apparently based on @stefanprodan his quick try-out this returns partial metadata without things like the name being set. Worth looking into at a later moment.

Copy link
Member Author

Choose a reason for hiding this comment

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

We need to investigate why using metav1.PartialObjectMetadataList instead of apiextensionsv1.CustomResourceDefinitionList returns an empty list. For now I will go with this version.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit 0361a08 into main Feb 1, 2023
@stefanprodan stefanprodan deleted the tree-hr-crds branch February 1, 2023 10:22
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

2 participants