[Airship-discuss] update in configuration of manifest repos in airshipctl

GAUTAM, ANIRUDDHA SINGH ag878f at att.com
Fri Mar 13 17:26:45 UTC 2020


Hello,

What is the format of the command to update the configuration related to manifest repos in airshipctl?
Use cases:
(1) user/operator wants to change the repo from treasuremap to a private repo
(2) user / operator wants to add a repo for security documents.

There is one option --manifest that is available set-context sub-command, which set a manifest object to the config. However it is not very obvious from help how new manifest object and its configuration like url, credentials to access repo can be appended / updated.

root at ubuntu:~/airshipctl# ./bin/airshipctl config set-context -h

Sets a context entry in arshipctl config.
Specifying a name that already exists will merge new fields on top of existing values for those fields.

Usage:
  airshipctl config set-context NAME [flags]

Examples:

# Create a completely new e2e context entry
airshipctl config set-context e2e --namespace=kube-system --manifest=manifest --user=auth-info --cluster-type=target

# Update the current-context to e2e
airshipctl config set-context e2e

# Update attributes of the current-context
airshipctl config set-context --current --manifest=manifest

Flags:
      --cluster string        sets the cluster for the specified context in the airshipctl config
      --cluster-type string   sets the cluster-type for the specified context in the airshipctl config
      --current               use current context from airshipctl config
  -h, --help                  help for set-context
      --manifest string       sets the manifest for the specified context in the airshipctl config
      --namespace string      sets the namespace for the specified context in the airshipctl config
      --user string           sets the user for the specified context in the airshipctl config

Global Flags:
      --airshipconf string   Path to file for airshipctl configuration. (default "$HOME/.airship/config")
      --debug                enable verbose output
      --kubeconfig string    Path to kubeconfig associated with airshipctl configuration. (default "$HOME/.airship/kubeconfig")


It does not seem to be right output. Instead of printing the help it is actually processing the command inputs

root at annie:~/airshipctl# ./bin/airshipctl config set-context --manifest -h
you must specify a non-empty context name
root at annie:~/airshipctl# ./bin/airshipctl config set-context --manifest --help
you must specify a non-empty context name
root at annie:~/airshipctl# ./bin/airshipctl config set-context default --manifest --help
context "default" modified.



Regards,
Aniruddha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.airshipit.org/pipermail/airship-discuss/attachments/20200313/cb1f1589/attachment.html>


More information about the Airship-discuss mailing list