k8sgpt-ai / k8sgpt-operator

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

[Bug]: CRD is missing integration attribute #277

Closed jkleinlercher closed 11 months ago

jkleinlercher commented 11 months ago

Checklist

Affected Components

K8sGPT Version

V0.0.24

Kubernetes Version

V1.26.0

Host OS and its Version

-

Steps to reproduce

  1. Install operator helm chart according to readme
  2. define „integrations“ attribute
  3. „Integrations“ attribute is ignored

Expected behaviour

„Integrations“ attribute should be honored as described. Maybe also other attributes are missing?

Actual behaviour

„Integrations“ attribute in K8sGPT CR is ignored

Additional Information

hey all, I just tried the latest operator version 0.0.24. It seems the K8sGPT CR doesn't work as excepted. The "integrations" attribut is not known when installing the operator via helm. I guess the problem is that the integrations attribut is only defined in the CRD here https://github.com/k8sgpt-ai/k8sgpt-operator/blob/v0.0.24/config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml#L84-L95 but not in https://github.com/k8sgpt-ai/k8sgpt-operator/blob/v0.0.24/chart/operator/templates/k8sgpt-crd.yaml and in the official helm-chart it seems that the https://github.com/k8sgpt-ai/k8sgpt-operator/blob/v0.0.24/chart/operator/templates/k8sgpt-crd.yaml is used. Any ideas?

AlexsJones commented 11 months ago

Fixed in 0.0.25