Skip to content

Enable secret update to manage secret lifecycle #6786

@aweiteka

Description

@aweiteka

When I deploy an application that has a secret (a configuration file, for example), I want to be able to update the secret payload. I would like to be instructed how to deploy that update as well. Example workflow:

  1. create secret

    $ oc secret new mysecret config.yaml=/path/to/my/config.yaml
    
  2. deploy application that mounts secret

  3. update secret contents

    $ vi /path/to/my/config.yaml
    
  4. update secret object

    $ oc secret update mysecret config.yaml=/path/to/my/config.yaml
    secret "mysecret" updated.
    To deploy the update, run "oc deploy <deploy_config> --latest" on any deployment config that references this secret.
    
  5. User re-deploys per instruction

    oc deploy <deploy_config> --latest
    

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions