
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153 This is the second of multiple patchsets to support encryption and decryption in airshipctl Complete feature: https://review.opendev.org/#/c/742695/ Depends-On: https://review.opendev.org/#/c/749892/ Change-Id: I1a0553622049366977af8c2efbec12012a6fa641
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
Create or modify a context in the airshipctl config files.
|
|
|
|
Usage:
|
|
set-context NAME [flags]
|
|
|
|
Examples:
|
|
|
|
# Create a new context named "exampleContext"
|
|
airshipctl config set-context exampleContext \
|
|
--namespace=kube-system \
|
|
--manifest=exampleManifest \
|
|
--user=exampleUser
|
|
--cluster-type=target
|
|
--encryption-config=exampleEncryptionConfig
|
|
|
|
# Update the manifest of the current-context
|
|
airshipctl config set-context \
|
|
--current \
|
|
--manifest=exampleManifest
|
|
|
|
|
|
Flags:
|
|
--cluster string set the cluster for the specified context
|
|
--cluster-type string set the cluster-type for the specified context
|
|
--current update the current context
|
|
--encryption-config string set the encryption config for the specified context
|
|
-h, --help help for set-context
|
|
--manifest string set the manifest for the specified context
|
|
--namespace string set the namespace for the specified context
|
|
--user string set the user for the specified context
|