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

[Feature]: Developer can target a cf-k8s foundation via cf api #10

Closed
gcapizzi opened this issue Aug 17, 2021 · 0 comments
Closed

[Feature]: Developer can target a cf-k8s foundation via cf api #10

gcapizzi opened this issue Aug 17, 2021 · 0 comments
Assignees
Labels

Comments

@gcapizzi
Copy link
Contributor

gcapizzi commented Aug 17, 2021

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 extend the cf CLI to be able to recognise a cf-k8s foundation when pointed at it via cf api.

Acceptance

After running cf api against a cf-k8s API, I should see something like this in $CF_HOME/config.json:

"CFOnK8s": {
    "Enabled": true
}

If I run cf api against a traditional CF API after that, I should see this:

"CFOnK8s": {
    "Enabled": false
}

Dev notes

  • cf api will interrogate the root endpoint of the CF API to gather information about the foundation: we want to leverage this to let the CLI know that this is a cf-k8s foundation and provide the necessary information it needs to work.
@gcapizzi gcapizzi changed the title cf can be pointed to a cf-k8s foundation via cf api cf can be pointed to a cf-k8s foundation via cf api and cf login Sep 16, 2021
@gcapizzi gcapizzi changed the title cf can be pointed to a cf-k8s foundation via cf api and cf login cf can be pointed to a cf-k8s foundation via cf api Sep 16, 2021
@gcapizzi gcapizzi changed the title cf can be pointed to a cf-k8s foundation via cf api [Feature]: Developer can point the cf CLI to a cf-k8s foundation via cf api Sep 16, 2021
@gcapizzi gcapizzi changed the title [Feature]: Developer can point the cf CLI to a cf-k8s foundation via cf api [Feature]: Developer can target a cf-k8s foundation via cf api Sep 16, 2021
@gcapizzi gcapizzi removed the blocked label Sep 20, 2021
@gcapizzi gcapizzi self-assigned this Sep 21, 2021
@danail-branekov danail-branekov self-assigned this Sep 23, 2021
gcapizzi added a commit to eirini-forks/cli that referenced this issue Sep 23, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
danail-branekov added a commit to eirini-forks/cli that referenced this issue Sep 24, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
danail-branekov added a commit that referenced this issue Sep 24, 2021
Also introduce root response presenter and response type

Issue: #10

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Birdrock pushed a commit that referenced this issue Sep 29, 2021
Also introduce root response presenter and response type

Issue: #10

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
danail-branekov added a commit to eirini-forks/cli that referenced this issue Sep 30, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

We have introduced a new `selfcontained` integration suite which
contains tests that do not need to be run against a cf deployment.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
danail-branekov added a commit to eirini-forks/cli that referenced this issue Oct 4, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

We have introduced a new `selfcontained` integration suite which
contains tests that do not need to be run against a cf deployment.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
danail-branekov added a commit to eirini-forks/cli that referenced this issue Oct 7, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

We have introduced a new `selfcontained` integration suite which
contains tests that do not need to be run against a cf deployment.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
gcapizzi added a commit to eirini-forks/cli that referenced this issue Oct 14, 2021
This makes `cf api` able to detect the `cf-on-k8s` flag in the root
endpoint response and persist this information in the config. This will
allow us to enable CF-on-K8s-specific behaviour for every following
command.

We have introduced a new `selfcontained` integration suite which
contains tests that do not need to be run against a cf deployment.

Issue: cloudfoundry/cf-k8s-api#10
Co-authored-by: Danail Branekov <danailster@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
@gcapizzi gcapizzi moved this to ✅ Done in Korifi - Backlog Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants