Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 11 commits into from
Jan 15, 2024

Conversation

phillipahereza
Copy link
Contributor

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: openai
  sink:
    type: slack
    secret:
      name: slack-webhook
      key: url

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

This PR breaks/affects #303

Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
@phillipahereza phillipahereza marked this pull request as ready for review January 11, 2024 18:28
@phillipahereza phillipahereza requested review from a team as code owners January 11, 2024 18:28
Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
pkg/sinks/slack.go Outdated Show resolved Hide resolved
arbreezy
arbreezy previously approved these changes Jan 15, 2024
Copy link
Member

@arbreezy arbreezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @phillipahereza, can you please update Readme to include the new CR spec field and update also the Helm chart's template ?

Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
Signed-off-by: Phillip Ahereza <pahereza@gmail.com>
arbreezy
arbreezy previously approved these changes Jan 15, 2024
@arbreezy arbreezy self-requested a review January 15, 2024 22:13
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
Copy link
Member

@arbreezy arbreezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a minor fix, thanks again for your contribution :) !

@arbreezy arbreezy merged commit efae4a9 into k8sgpt-ai:main Jan 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add a field for a secret to the Sink Type
3 participants