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

clear-resource-cache does not recognize instance-var as a valid Flag #8829

Open
reskin89 opened this issue Sep 28, 2023 · 2 comments
Open

clear-resource-cache does not recognize instance-var as a valid Flag #8829

reskin89 opened this issue Sep 28, 2023 · 2 comments
Labels

Comments

@reskin89
Copy link

Summary

I have a set of instanced pipelines. I'd like to clear the resource cache for one of them, but it seems the clear-resource-cache command doesn't recognize instance-var as a flag.

This makes it impossible to clear the resource cache on instanced pipelines.

Steps to reproduce

  1. Create an instanced pipeline utilizing --instance-var
  2. attempt to clear the resource cache of a resource in said instanced pipeline

Expected results

The resource cache of the single instanced pipeline is cleared.

Actual results

error: unknown flag `instance-var'

Additional context

Triaging info

  • Concourse version: 7.6.0
  • Browser (if applicable): N/A
  • Did this used to work? I have utilized instance vars with other commands, this is the first time I have tried it with clear-resource-cache, so I am unsure.
@reskin89 reskin89 added the bug label Sep 28, 2023
@reskin89
Copy link
Author

So I found that it should be pipelinename/instance-var:value however this still fails with clear-resource-cache:

➜  fly -t ci clear-resource-cache -r REDACTED/repository/team_name:VALUE
error: invalid argument for flag `-r, --resource' (expected flaghelpers.ResourceFlag): instance vars should be formatted as <key1:value1>(,<key2:value2>)

@xtremerui
Copy link
Contributor

I can't reproduce this locally. The command seems working fine.

The format should be something like:
fly -t ci clear-resource-cache -r pr/number:8801/unit-image
where ci is target, pr is the pipeline name, number:8801 is the instance variable, unit-image is the resource's name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants