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

Allow to disable backrest container #132

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

AKamyshnikova
Copy link
Collaborator

Q A
Bug fix? []
New feature? [x]
API breaks? []
Deprecations? []
Related tickets fixes #X, partially #Y, mentioned in #Z
License Apache 2.0

What's in this PR?

Add enabled field for BackRestSidecar spec.
By default enabled is true (original behaviour).
Setting to false will drop back-rest container deployment.

Why?

If out of box backup/restore tool is used - deploy of back-rest container is not necessary.

Checklist

  • Implementation tested
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog

@AKamyshnikova AKamyshnikova force-pushed the disable-baskrest branch 2 times, most recently from 3ef66c6 to fd96920 Compare November 4, 2023 13:50
Add enabled field for BackRestSidecar spec.
By default enabled is true (original behaviour).
Setting to false will drop back-rest container deployment.
@AKamyshnikova
Copy link
Collaborator Author

@cscetbon Could you take a look?

Copy link
Owner

@cscetbon cscetbon left a comment

Choose a reason for hiding this comment

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

one question about the way you set the current repository, otherwise it looks good.

- id: lower-repo
shell: pwsh
run: |
"::set-output name=repository::$($env:GITHUB_REPOSITORY.ToLowerInvariant())"
Copy link
Owner

Choose a reason for hiding this comment

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

Why not just use github.event.repository.name ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will give an error if the repository name has some uppercase letters (exactly what AKamyshnikova has).
The is a discussion here https://github.com/orgs/community/discussions/10553 and I used one of the suggested options to workaround this.

Copy link
Owner

@cscetbon cscetbon left a comment

Choose a reason for hiding this comment

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

Thank you @AKamyshnikova 👏

@AKamyshnikova AKamyshnikova merged commit c62502d into cscetbon:master Nov 30, 2023
@AKamyshnikova AKamyshnikova deleted the disable-baskrest branch March 11, 2024 13:31
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.

2 participants