splunk / splunk-operator

Splunk Operator for Kubernetes
Other
206 stars 114 forks source link

Splunk Operator: Failed to install the operator - CRD metadata.annotations too long #1157

Open dev-slatto opened 1 year ago

dev-slatto commented 1 year ago

Please select the type of request

Bug

Tell us more

Describe the request When following the guide for installing the Smartstore Operator in dedicated namespace the following CRDs failed to install due to too long metadata.annorations.

Expected behavior It's expected that all CRDs should be able to install when following the installation guide of the Splunk Operator.

Splunk setup on K8S Clean Kubernetes cluster trying to install v2.2.1 of the Splunk Operator.

Reproduction/Testing steps Create a clean cluster with K8s version 1.25. Try to install the Splunk Operator with the following command: kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/2.2.1/splunk-operator-namespace.yaml

K8s environment

K8s collector data(optional)

Error from server (Invalid): error when creating "https://github.com/splunk/splunk-operator/releases/download/2.2.1/splunk-operator-namespace.yaml": CustomResourceDefinition.apiextensions.k8s.io "indexerclusters.enterprise.splunk.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "https://github.com/splunk/splunk-operator/releases/download/2.2.1/splunk-operator-namespace.yaml": CustomResourceDefinition.apiextensions.k8s.io "monitoringconsoles.enterprise.splunk.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "https://github.com/splunk/splunk-operator/releases/download/2.2.1/splunk-operator-namespace.yaml": CustomResourceDefinition.apiextensions.k8s.io "searchheadclusters.enterprise.splunk.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "https://github.com/splunk/splunk-operator/releases/download/2.2.1/splunk-operator-namespace.yaml": CustomResourceDefinition.apiextensions.k8s.io "standalones.enterprise.splunk.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
dev-slatto commented 1 year ago

Hey again! 👋🏻 I just talked to Patrick that informed me about the flags needed in the apply process. I've updated the docs with them now and are open to feedback on the formulation if you guys have any thing to add.