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: add support for config.js #2214

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Doritanh
Copy link

@Doritanh Doritanh commented Jan 10, 2025

The configIsJavascript field allows the configuration to be specified in JavaScript format. When set to true, the configuration will be generated as config.js. If set to false, the configuration will be generated as config.json.

Fix #2215

@Doritanh Doritanh marked this pull request as draft January 10, 2025 15:03
@Doritanh Doritanh marked this pull request as ready for review January 10, 2025 15:25
charts/renovate/values.yaml Outdated Show resolved Hide resolved
charts/renovate/README.md Outdated Show resolved Hide resolved
charts/renovate/templates/config.yaml Outdated Show resolved Hide resolved
@Doritanh
Copy link
Author

Hi @viceice,

Thank you so much for taking the time to review my PR! I’ve made the suggested changes. Please let me know if there’s anything else I should adjust or address.

Looking forward to your thoughts!

@Doritanh Doritanh requested a review from viceice January 15, 2025 14:52
Comment on lines +1 to +6
{{- $configContent := "" }}
{{- if not .Values.renovate.configEnableHelmTpl }}
{{- $configContent = required "A valid .Values.renovate.config entry is required if existingConfigFile is not specified!" .Values.renovate.config | nindent 4 }}
{{- else }}
{{- $configContent = required "A valid .Values.renovate.config entry is required if existingConfigFile is not specified!" (tpl .Values.renovate.config .) | nindent 4 }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

i would prefer to compute the filename here, so you've less changes

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.

Add support for config.js
2 participants