openshift-online/ocm-cli

unable to specify IDP name when creating one from ocm

erwangranger opened this issue · 1 comments

Hello,

I was creating a new IDP using a command similar to:

    ocm create idp --cluster=my_cluster \
        --type=github \
        --mapping-method claim \
        --organizations my_gh_org \
        --client-id 123456 \
        --client-secret 123456

I searched for a way to specify the name of the IDP, but I was not able to find it.

Instead, as-is, it creates an IDP called "github-1". (see

idpName := getNextName(idpType, idps)
).

If I do the same step in the Web Interface, I am able to choose the name I want:

image

I think it would be really helpful to be able to specify that name even if using the ocm cli, so as not to end up with generic github-1, github-2, ldap-1, ldap-2.

Thanks.

Thanks for the very fast turnaround on this! I will definitely be using this in the future.