You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when applying the custom resource definition for clusterpolicy objects:
$ kubectl apply -f https://raw.githubusercontent.com/NVIDIA/gpu-operator/master/deployments/gpu-operator/crds/nvidia.com_clusterpolicies_crd.yaml
The CustomResourceDefinition "clusterpolicies.nvidia.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
After researching some, it seems like this is due to the annotations placed on the CRD resource when using kubectl apply (see kubernetes-sigs/kubebuilder#1140 (comment)). I verified that using kubectl create works, however I'm concerned that updating the CRD with kubectl replace going forward may cause issues with deployed cluster policy objects by deleting and recreating the CRD.
The text was updated successfully, but these errors were encountered:
@d-m Since the ClusterPolicy spec handles creation of eight Daemonsets, size of the CR has become huge. Yes, the limitation with last-applied-configuration annotation will break upgrades. Since all Daemonset values needs to be configurable, not sure we can overcome this with single CRD we have. eg driver spec is below:
With the limitation on max size of CR(which will end up in last-applied-configuration annotation), it would make sense to split each Daemonset config into a separate CRD (i.e NvidiaDriver, NvidiaDevicePlugin, NvidiaDCGMExporter, NvidiaGPUFeatureDiscovery, NvidiaMIGManager, NvidiaContainerToolkit, NvidiaValidator) and individual CR's control configuration for each Daemonset we deploy.
Currently we don't support upgrade of ClusterPolicy types, so un-install and install is always recommended. We are looking to support upgrades in future releases, so this will be a design discussion we will have.
I get the following error when applying the custom resource definition for clusterpolicy objects:
$ kubectl apply -f https://raw.githubusercontent.com/NVIDIA/gpu-operator/master/deployments/gpu-operator/crds/nvidia.com_clusterpolicies_crd.yaml The CustomResourceDefinition "clusterpolicies.nvidia.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
After researching some, it seems like this is due to the annotations placed on the CRD resource when using
kubectl apply
(see kubernetes-sigs/kubebuilder#1140 (comment)). I verified that usingkubectl create
works, however I'm concerned that updating the CRD withkubectl replace
going forward may cause issues with deployed cluster policy objects by deleting and recreating the CRD.The text was updated successfully, but these errors were encountered: