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

feat: allow overriding rudder-config.yaml settings from values.yaml #59

Merged
merged 8 commits into from
Jan 18, 2023

Conversation

bdashrad
Copy link
Contributor

@bdashrad bdashrad commented Dec 8, 2022

Description of the change

Allows overrides of settings from rudder-config.yaml in values.yaml

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

Copy link
Contributor

@rahulkumark rahulkumark left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@gane5hvarma gane5hvarma left a comment

Choose a reason for hiding this comment

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

LGTM

README.md Outdated
@@ -93,7 +94,8 @@ $ helm install --name my-release \
```

**Note:** Configuration specific to:
- Backend can be edited in [rudder-config.yaml](https://docs.rudderlabs.com/administrators-guide/config-parameters).

- Backend can be edited in [rudder-config.yaml](https://docs.rudderlabs.com/administrators-guide/config-parameters). or in values.yaml under `backend.config.overrides`.
Copy link
Contributor

@gitcommitshow gitcommitshow Jan 5, 2023

Choose a reason for hiding this comment

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

The mentioned doc link is broken

Copy link
Contributor

Choose a reason for hiding this comment

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

Created a separate issue to fix this after this merge

Copy link
Contributor

@ameypv-rudder ameypv-rudder Jan 5, 2023

Choose a reason for hiding this comment

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

We have deprecated this guide as it had outdated information. Should we just point to the rudder-config.yaml file? @gitcommitshow @gane5hvarma

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that @ameypv-rudder

@bdashrad bdashrad requested review from gitcommitshow and ameypv-rudder and removed request for gitcommitshow January 12, 2023 22:34
@@ -69,6 +69,12 @@ backend:

config:
mountPath: "/etc/rudderstack"
# -- rudder-server config overrides
# See [config parameters](https://docs.rudderlabs.com/administrators-guide/config-parameters) for more details
Copy link
Contributor

Choose a reason for hiding this comment

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

The doc link provided doesn't exist..

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep - as mentioned above:

We have deprecated this guide as it had outdated information. Should we just point to the rudder-config.yaml file?

@@ -1,3 +1,5 @@
{{- $baseConfig := .Files.Get "rudder-config.yaml" | fromYaml -}}
{{- $rudderConfig := mustMergeOverwrite $baseConfig .Values.backend.config.overrides -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

this code is duplicated... Can we write a helm function returning the template and use it for checksum and config yaml instead??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, i missed that, i can always put in another PR

Copy link
Contributor

@AkhileshK8y AkhileshK8y left a comment

Choose a reason for hiding this comment

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

Can you please address the comments if this change is not super urgent for you..

Copy link

@mcchran mcchran left a comment

Choose a reason for hiding this comment

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

LGTM.

@gane5hvarma gane5hvarma merged commit 3367f33 into rudderlabs:master Jan 18, 2023
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.

7 participants