Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

[Feature]: Developer can cf login to a cf-k8s foundation #56

@gcapizzi

Description

@gcapizzi

Blockers/Dependencies

Background

Our strategy for authenticating the cf CLI is to teach the CLI to understand and apply $KUBECONFIG when talking to cf-k8s foundations.

Here we want to allow users to select which auth-info they want to use from their $KUBECONFIG. We want to do this via a prompt, as part of cf login.

Acceptance Criteria

GIVEN a cf-k8s foundation exists
AND I have some auth-info entries in my $KUBECONFIG
AND I have targeted the foundation with cf api
WHEN I run cf login
THEN I am prompted with a list of the auth-info entry names
AND WHEN I select one of the entries
THEN I see something like this in my $CF_HOME/config.json:

"CFOnK8s": {
    "Enabled": true,
    "AuthInfo": "<the name of the auth-info I have just selected>"
}

Dev Notes

See this comment.

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions