clustersecretbackup

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

clustersecretbackup

Cluster secret backup is a tool backing up secrets in a cluster in Google Secret Manager.

Prerequisite

  • Authenticate with GCP, could be done by either of:
    • Run gcloud auth login && gcloud auth application-default login
    • Set GOOGLE_APPLICATION_CREDENTIALS if prefer to use service account key file
  • Already authenticated with cluster to be backed up

Usage

This tool can be invoked locally, by:

  • --project: The GCP project that secrets will be backed up in.
  • --cluster-context: The cluster context name that need to be backed up, must be full form such as _.
  • --namespace: The namespace(s) to be backed up, can be passed in repeatedly.
  • --update: Controls whether update existing secret or not, if false then secret will not be updated when the secret already exist in gsm.
  • --dryrun: Controls whether write to Google secret manager or not.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL