Helmfile: --selector flag not working for helmfile apply

Created on 5 Feb 2020  路  2Comments  路  Source: roboll/helmfile

Hi,
I'm trying to use the selector cli flag with the apply command but somehow it fails for me.
I run the following using helmfile v0.98.2:

helmfile --selector name=rhsso-broker apply

It fails with the following message:

Incorrect Usage. flag provided but not defined: -selector name

Do you have any idea? Do I miss anything?

Best regards

question

Most helpful comment

Something on my end was odd.

I did the following from within a script:

SELECTOR_STRING="--selector name=rhsso-broker"
helmfile "$SELECTOR_STRING" apply
````

I changed it to the following and now it's working: 

SELECTOR_STRING="-l name=rhsso-broker"
helmfile $SELECTOR_STRING apply
````
And I also updated helmfile to the lastest version.
But I think it's because of the quotes I used before. Could be that I don't understand Shellscript after >10 years oft working with it lol

Issue can be closed!

All 2 comments

Something on my end was odd.

I did the following from within a script:

SELECTOR_STRING="--selector name=rhsso-broker"
helmfile "$SELECTOR_STRING" apply
````

I changed it to the following and now it's working: 

SELECTOR_STRING="-l name=rhsso-broker"
helmfile $SELECTOR_STRING apply
````
And I also updated helmfile to the lastest version.
But I think it's because of the quotes I used before. Could be that I don't understand Shellscript after >10 years oft working with it lol

Issue can be closed!

Thanks for sharing your findings! Yeah, shell scripting is hard and I'm not good at it either 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sstarcher picture sstarcher  路  3Comments

marianogg9 picture marianogg9  路  3Comments

maver1ck picture maver1ck  路  3Comments

michaelpporter picture michaelpporter  路  3Comments

RafalMaleska picture RafalMaleska  路  3Comments