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

helm option is added for config source #936

Merged

Conversation

huseyinbabal
Copy link
Contributor

@huseyinbabal huseyinbabal commented Jan 12, 2023

Description

Changes proposed in this pull request:

  • config.provider.endpoint helm option is added
  • config.provider.identifier helm option is added

Testing

With config source

helm install --version v0.17.0 botkube --namespace botkube --create-namespace \
--set settings.clusterName=dev \
--set executors.kubectl-read-only.kubectl.enabled=true \
--set 'executors.helm.botkube/helm.enabled'=false \
--set config.provider.identifier=12123 \
--set config.provider.endpoint=http://localhost:8080/graphql \
./helm/botkube

Screen Shot 2023-01-12 at 18 14 02

Without config source

helm install --version v0.17.0 botkube --namespace botkube --create-namespace \
--set settings.clusterName=dev \
--set executors.kubectl-read-only.kubectl.enabled=true \
--set 'executors.helm.botkube/helm.enabled'=false \
./helm/botkube

Screen Shot 2023-01-12 at 11 58 04

Related issue(s)

Resolves #931

Comment on lines 878 to 879
# -- Base source definition
source:
Copy link
Member

@pkosiec pkosiec Jan 12, 2023

Choose a reason for hiding this comment

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

Can we change that to provider as Mateusz suggested?

Suggested change
# -- Base source definition
source:
# -- Configuration provider details
provider:

Comment on lines 117 to 121
- name: CONFIG_SOURCE_ENDPOINT
value: {{ .Values.config.source.endpoint }}
{{- end }}
{{- if .Values.config.source.identifier }}
- name: CONFIG_SOURCE_IDENTIFIER
Copy link
Member

Choose a reason for hiding this comment

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

Once we change values, can we also rename these envs to CONFIG_PROVIDER_ENDPOINT and CONFIG_PROVIDER_IDENTIFIER?

@huseyinbabal
Copy link
Contributor Author

huseyinbabal commented Jan 12, 2023

Updated both helm values and botkube core, as well as screenshots with pr descriptions

Copy link
Member

@pkosiec pkosiec left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@huseyinbabal huseyinbabal merged commit d4a3c39 into kubeshop:main Jan 12, 2023
@huseyinbabal huseyinbabal deleted the add-config-provider-helm-option branch January 12, 2023 16:24
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.

Helm options for config source identifier
2 participants