Skip to content

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

@dev-slatto

Description

@dev-slatto

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.

  • indexerclusters.enterprise.splunk.com
  • monitoringconsoles.enterprise.splunk.com
  • searchheadclusters.enterprise.splunk.com
  • standalones.enterprise.splunk.com

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

  • Client Version: v1.25.3
  • Kustomize Version: v4.5.7
  • Server Version: v1.25.9

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions