Dynatrace / dynatrace-operator

Automate Kubernetes observability with Dynatrace
https://www.dynatrace.com
Apache License 2.0
168 stars 137 forks source link

Duplicated resources in kubernetes.yaml of release 1.0.0 #2931

Closed Fabian-K closed 8 months ago

Fabian-K commented 8 months ago

Describe the bug The kubernetes.yaml of the 1.0.0 release contains duplicated resources. As an example, the PriorityClass dynatrace-high-priority is included twice (line 16 and line 6164).

While this might be no issue when applying the file via kubectl apply, it is when using kustomize:

accumulating resources from 'kubernetes.yaml': may not add resource with an already registered id: PriorityClass.v1.scheduling.k8s.io/dynatrace-high-priority.[noNs]

Is it possible to remove the duplicated resources and make it compatible with kustomize?

Thanks, Fabian

luhi-DT commented 8 months ago

Hi @Fabian-K, thanks for the awesome finding, we have removed the duplicate resources and re-added the correct manifests now on the release. Sorry for this.

Thanks, Lukas!