k8sgpt-ai / k8sgpt-operator

Automatic SRE Superpowers within your Kubernetes cluster
https://k8sgpt.ai
Apache License 2.0
293 stars 80 forks source link

fix: respect the anonymize value from CR during initialization #332

Closed arbreezy closed 5 months ago

arbreezy commented 7 months ago

Closes #306

📑 Description

Small PR to address a behaviour with kubebuilder markers and booleans. During initialisation of K8sGPT, the operator will attempt to add a finaliser and the K8s api server will not be able to distinguish if that's a default value or something that is been explicitly set from the CR thus setting the default which is true

✅ Checks

ℹ Additional Information