cloudfoundry / cloudfoundry/cli

Add stack update command which doesn't require access to the app source code

Open
#2,396 3 comments 0 reactions 1 assignee View on GitHub

@gururajsh is already working on this.

Since Sep 27, 2024.

feature-request
Dominant language
Go
Stars
1.9k
Forks
990
Avg merge
1d 7h
Merged PRs (30d)
8

Description

What's the user value of this feature request?
Enable CF app operators with CF CLI commands to update the stack of an application without having access to the source code of the application.

Who is the functionality for?
CF app operators

How often will this functionality be used by the user?
When a CF stack update is required

Who else is affected by the change?
This shouldn't have any side affects to existing functionality

Is your feature request related to a problem? Please describe.
With the current CF CLI commands it is not possible to update the stack of an application without having access to its source code. Only cf push offers an option to update the stack of an application.

Describe the solution you'd like
I would like to have an update-stack command supported by the CF CLI

Describe alternatives you've considered
An alternative is:

  1. use the CF APIs to update the app stack
cf curl "/v3/apps/<app-guid>" -X PATCH -H "Content-type: application/json" -d '{
    "lifecycle": {
      "type": "buildpack",
      "data": {
        "stack": "cflinuxfs4"
      }
    }
  }'
  1. restage the applicaiton cf restage <app-name>

Another alternative is to use the stack-authitor plugin. Unfortunately, it is not using the V3 APIs and installation of plugins could be an issue in some OPs environments.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.