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

Configure other than Backstage container to mount PVC volume to #582

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

Conversation

gazarenkov
Copy link
Member

Which issue(s) does this PR fix or relate to

https://issues.redhat.com/browse/RHIDP-4595

PR acceptance criteria

@gazarenkov gazarenkov requested review from kadel and rm3l December 19, 2024 17:28
@openshift-ci openshift-ci bot requested a review from kim-tsao December 19, 2024 17:28
@gazarenkov gazarenkov removed the request for review from kim-tsao December 19, 2024 17:29
@gazarenkov gazarenkov changed the title Configure other than Backstage container to mount PVC volume to, configure dynamic-plugins volume for default RHDH this way. Configure other than Backstage container to mount PVC volume to Dec 19, 2024
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
@@ -56,6 +56,28 @@ metadata:

In the example above the PVC called **myclaim** will be mounted to **/mount/path/from/annotation** directory

#### Object annotation for mounting a volume to specific container(s)

Using **rhdh.redhat.com/containers** annotation it is possible to define the containers where **PersistentVolumeClaim** object will be mounted.
Copy link
Member

Choose a reason for hiding this comment

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

This implies that the mount path will be the same in all the containers listed here, right?
What if I want to mount the PVC under specific paths for each container? IMO, we should handle this.
Thinking out loud, but how about extending the behavior of the rhdh.redhat.com/mount-path annotation above to include the container names, e.g.: rhdh.redhat.com/mount-path: 'install-dynamic-plugins:/mount/path1,backstage-backend:/mount/path2'?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thought about it (and discussed with Tomas)... Can not see the case when it should be really important for default configuration. We can (and will when needed) make it more flexible for CR but I'd really avoid scripting in annotations unless really unavoidable.

docs/configuration.md Outdated Show resolved Hide resolved
@rm3l
Copy link
Member

rm3l commented Dec 20, 2024

/assign

Signed-off-by: gazarenkov <[email protected]>
Signed-off-by: gazarenkov <[email protected]>
Copy link

openshift-ci bot commented Jan 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rm3l

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jan 2, 2025
@rm3l rm3l mentioned this pull request Jan 3, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants