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: remove duplicate volumeMounts from oci-copy-oci-ta #1091

Closed

Conversation

14rcole
Copy link
Contributor

@14rcole 14rcole commented Jun 24, 2024

The oci-copy-oci-ta task had two volumeMounts with the same name and mounting location, which would cause an error when the task was applied to a cluster. This change removes the duplicate

Before you complete this pull request ...

Look for any open pull requests in the repository with the title "e2e-tests update" and
see if there are recent e2e-tests updates that will be applicable to your change.

@14rcole 14rcole requested a review from ralphbean June 24, 2024 20:41
@ralphbean
Copy link
Member

Oh, wait - we need to reconcile this with what ./hack/generate-ta-tasks.sh wants to do.

@ralphbean
Copy link
Member

@14rcole how did you notice this, btw?

@14rcole
Copy link
Contributor Author

14rcole commented Jun 25, 2024

@ralphbean I was debugging issues with #1088 and after a rebase I started running into this error:

...
task.tekton.dev/inspect-image configured
task.tekton.dev/oci-copy configured
Error from server (BadRequest): error when creating "/var/home/ryan/Development/RHTAP/build-definitions/hack/../task/oci-copy-oci-ta/0.1//oci-copy-oci-ta.yaml": admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: multiple volumes with same name "workdir": spec.volumes[2].name

What is ./hack/generate-ta-tasks.sh trying to do? I see that validation is failing for this PR.

The oci-copy-oci-ta task had two volumeMounts with the same name
and mounting location, which would cause an error when the task
was applied to a cluster.  This change removes the duplicate

Signed-off-by: Ryan Cole <[email protected]>
@14rcole 14rcole force-pushed the remove-duplicate-volumemounts branch from 8283436 to 69f55c5 Compare June 26, 2024 11:44
@zregvart
Copy link
Member

We can also fix this by checking if the volume/volume mount would get duplicated, e.g. here. I see #1093 which also seems straightforward.

@dirgim
Copy link
Contributor

dirgim commented Oct 14, 2024

@14rcole are we fine to close this PR since #1093 was merged?

@14rcole
Copy link
Contributor Author

14rcole commented Oct 17, 2024

That's fine with me

@14rcole 14rcole closed this Oct 17, 2024
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.

5 participants