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

fix(helm): skip redoc when redoc.enabled is set to false #4007

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cmontemuino
Copy link

Tracking issue

Closes #4006

Describe your changes

The flyte chart includes four templates: minio, postgres, redis, and redoc. A property following the pattern <template_name>.enabled does exist in the values.yaml file. It is used to enabled/disable the template.

Setting redoc.enabled to false does not disable the redoc deployment and service. This changeset fixes that problem by following the same approach with the other templates: wrapping the resoruces under the templates/redoc with an if statetement evaluating Values.redoc.enabled.

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Screenshots

N/A

Note to reviewers

Steps to reproduce the problem included in #4006

@welcome
Copy link

welcome bot commented Sep 4, 2023

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@eapolinario
Copy link
Contributor

@cmontemuino , thanks for the PR. Can you merge master? That error in the "tests / docs" CI check should be fixed.

@cmontemuino
Copy link
Author

@cmontemuino , thanks for the PR. Can you merge master? That error in the "tests / docs" CI check should be fixed.

@eapolinario I've just updated my fork 💪

The flyte chart includes four templates: minio, postgres, redis, and redoc.
A property following the pattern `<template_name>.enabled` does exist in
the `values.yaml` file. It is used to enabled/disable the template.

Setting `redoc.enabled` to `false` does not disable the `redoc` deployment
and service. This changeset fixes that problem by following the same
approach with the other templates: wrapping the resoruces under the
`templates/redoc` with an `if` statetement evaluating `Values.redoc.enabled`.

closes 4006

Signed-off-by: cmontemuino <[email protected]>
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 7, 2023
@cmontemuino
Copy link
Author

Hi @eapolinario, is there anything pending as to move this PR forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Helm redoc templates - flyte chart - not honoring redoc.enabled in values
2 participants