k8sgpt-ai / k8sgpt-operator

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

[Feature]: Add a field for a secret to the Sink Type #316

Closed phillipahereza closed 8 months ago

phillipahereza commented 8 months ago

PR is the same as #313 that was accidentally deleted 🤦

Closes #309

📑 Description

This change allows developers to configure the sink with secrets. Additionally, it allows developers to create sinks where the authentication is separate from the endpoint.

apiVersion: core.k8sgpt.ai/v1alpha1
kind: K8sGPT
metadata:
  name: k8sgpt
  namespace: gpt
spec:
  ai:
    enabled: true
    backend: noopai
  sink:
    type: slack
    secret:
      name: slack-webhook
      key: url

✅ Checks

ℹ Additional Information

This PR breaks/affects #303