-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix(wherabouts): fix crd not being installed in helm #553
base: main-source
Are you sure you want to change the base?
Conversation
This seems to do the opposite of what you said - it makes it possible to NOT install them by setting the value to false? They are currently always installed. |
They weren't installed as part of the Helm chart. I just made the same thing that was done with the Multus Chart (with the manifests.customResourceDefinition value) but made it true by default. If you test the actual state of the chart with : |
Ah hmm. We only install this as a subchart of Multus, it is never used standalone by rke2. Does this change have any impact on that use case? |
No, it just makes whereabouts usable, otherwise it will complain about CRD missing. |
This is the result I mentionned without any modifications.
|
I don't know that we specifically intend for this to be usable as a standalone chart. It only exists here to be bundled into the multus chart, where it works fine. Ref: rke2-charts/packages/rke2-whereabouts/package.yaml Lines 4 to 5 in 4b73f86
When deployed as part of multus, the ippools CRD is properly installed: brandond@dev01:~$ kubectl explain ippools
GROUP: whereabouts.cni.cncf.io
KIND: IPPool
VERSION: v1alpha1
DESCRIPTION:
IPPool is the Schema for the ippools API
FIELDS:
apiVersion <string>
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind <string>
Kind is a string value representing the REST resource this object
represents. Servers may infer this from the endpoint the client submits
requests to. Cannot be updated. In CamelCase. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata <ObjectMeta>
Standard object's metadata. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec <Object>
IPPoolSpec defines the desired state of IPPool |
Fix whereabouts chart where it doesn't install CRD.