197 Commits

Author SHA1 Message Date
Zuul
dc8c241c31 Merge "Show the context name and current context using get-context command" 2021-05-24 21:31:52 +00:00
Zuul
e25b89a51f Merge "Generate user guide command links" 2021-05-24 21:31:46 +00:00
Alexey Odinokov
cce32b5d16 Adding a phase to help importing external secrets
In addition:
moved decrypt-secret to type level to avoid duplication
updated documentation

Change-Id: I33511ce2db27304e18720ffba5342419a986929a
2021-05-20 04:50:06 +00:00
chumkid
02d2fc7e4a Show the context name and current context using get-context command
The command "airshipctl config get-context" will display the name of the contexts as well as the current context name.

Relates-To: #475
Change-Id: I8234d74f6b98869e27e4974a54b68230d8be8565
2021-05-19 13:42:22 +05:30
Sirisha Gopigiri
ed0fee91b1 Generate user guide command links
This PS adds docs.airshipit.org link to long description
of the airshipctl root command output. The implementation
is done in-line with kubectl command.
https://github.com/kubernetes/kubectl/blob/master/pkg/cmd/cmd.go#L479

Closes: #281
Change-Id: Id65c53a72a840221c47677bacf9651f9430da276
2021-05-14 17:35:21 +05:30
Zuul
bcb6f959ab Merge "Cluster- updating cmd files for documentation" 2021-05-11 09:38:12 +00:00
Zuul
7280d5a7bd Merge "Baremetal- updating cmd files for documentation" 2021-05-11 09:38:08 +00:00
Zuul
ab98b63bf3 Merge "Refactor config get-manifest command" 2021-05-11 09:10:36 +00:00
Alexey Odinokov
70976860a9 Adding a place for external secrets to be stored on site level
There will be another place to store that data: [1]
All previous appropriate phases will work for that,
e.g. secret-reencrypt all secret-show.
The documentation is updated accordinly.

[1]
manifests/site/test-site/target/encrypted/results/imported/secrets.yaml

Change-Id: Iaeeaae902420ef9158dcaba2a272e20459596ae5
2021-05-07 18:25:13 +00:00
Sirisha Gopigiri
d13d15f453 Cluster- updating cmd files for documentation
The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I7c088528842ff859f502d4484ff9a3847ebb1177
2021-05-07 19:23:55 +05:30
Sirisha Gopigiri
ec3840a866 Baremetal- updating cmd files for documentation
The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I323fa145b512e58cb878b117656c51bc39e76360
2021-05-07 19:23:55 +05:30
Vladimir Kozhukalov
639e53f9a0 Change default manifest target path
Now the target path for the default manifest is
  $HOME/.airship/default. This is reasonable default
  location.

  The target path is a mandatory field in the
  definition of a manifest. If a user wants
  to use her current working directory as a location
  the manifests, then it must be properly configured
  in the $HOME/.airship/config.

Relates-To: #416
Relates-To: #417
Change-Id: I96601803939df5c7369d1580842dfabeb19aa017
2021-05-03 12:08:52 +00:00
Niharika Bhavaraju
5085f22c56 [#394] plan list -o yaml changes
Added yaml output flag to show plan list in yaml format

Relates-To: #394
Co-authored By: Niharika Bhavaraju<niha.twinkle@gmail.com>
Change-Id: I8bed077573eb79783cfc77e4ebf82c819f41d125
2021-04-29 18:10:57 +05:30
Zuul
7aa3b92397 Merge "Fix airshipctl config get-context maximum args" 2021-04-29 04:08:27 +00:00
Ratnopam Chakrabarti
b923271e53 Update CAPG provider documentation
Updated documentation to align with airshipctl
workflow on how to deploy a target cluster in google cloud
using airshipctl.

Closes: #523

Change-Id: I7fbfefe26897d9fb2a964080e17f84844905b1eb
2021-04-26 12:39:51 +00:00
Sirisha Gopigiri
f70e93762f Fix airshipctl config get-context maximum args
Limit the number of arguments that can be passed to
get-context command to 1 for now

Closes: #526
Change-Id: Ib140fc836e01c284c05719dfb7e3f29d0b191538
2021-04-16 19:03:54 +05:30
James Gu
06609c3180 Added script for the missing controlplane_target phase
controlplane_target phase is needed for target cluster more than a
single node

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: I6e77d4268cdee0ebcc65e1f9172ef645ced53337
2021-04-13 10:47:47 -07:00
Ruslan Aliev
864184f053 Refactor config get-manifest command
This commit addresses the bug that user is unable to see retrieved
manifest name or names, also simplifies the internal logic and
reorganizes unit tests.

Change-Id: I89bac0af811f744c209be2aee921033a5e8a4fca
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #505
2021-04-03 22:27:43 -05:00
Rishabh Kumar Jain
b617faf17d Update document docker provider(capd)
- remove git diff
  - remove line breaks

Change-Id: I40815a8d4b56b9142f2175c631321714ee017401
2021-04-01 16:47:44 +00:00
Zuul
386c44aa44 Merge "Add azure integration document into the doc source tree" 2021-03-31 12:03:20 +00:00
Zuul
f1cab5b579 Merge "Change logic of config set-management-config command" 2021-03-31 12:02:34 +00:00
Zuul
6a62e11fea Merge "[#323] Cluster list command to output in table/clusternames." 2021-03-31 03:00:29 +00:00
James Gu
e303de5c5b Add azure integration document into the doc source tree
Relates-To: #504

Change-Id: I1645ec6cf2ce6b37509491fbe274b0c399574d0a
Signed-off-by: James Gu <james.gu@att.com>
2021-03-31 02:42:49 +00:00
Zuul
bba25054b0 Merge "Change logic of config set-context cmd" 2021-03-31 02:11:41 +00:00
Zuul
5737f3bf26 Merge "Remove NameInKubeconf field from Context struct" 2021-03-31 02:11:36 +00:00
Zuul
ba5e56d3c9 Merge "Introduce plan validate command" 2021-03-31 02:02:55 +00:00
Ruslan Aliev
1684ad45cf Change logic of config set-management-config command
* command internal logic was revised and optimized
 * added ability to delete/reset management config fields
 * unit tests were reorganized, new cases were added

Change-Id: I911df180e6986cb1f4dab6aea01216c8a4e15353
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #348
2021-03-30 12:16:13 -05:00
Niharika Bhavaraju
1f90036413 [#323] Cluster list command to output in table/clusternames.
* airshipctl cluster list
* airshipctl cluster list -o table
* airshipctl cluster list -o name(lists cluster names)

Relates-To: #323
Change-Id: Ic4609b8e05984c14acf8f20053123423d5e0088a
2021-03-30 17:03:13 +05:30
Zuul
310bc282f5 Merge "[#358] Introduce Phase List command to output phase list(cmd module)" 2021-03-30 01:02:39 +00:00
Ruslan Aliev
6076891f31 Introduce plan validate command
This patch implements CLI command to invoke plan validation.
Appropriate functionality was already added to pkg previously.

Change-Id: I038b49c8de0af65f38b62950b27b31d95a6301a9
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #19
Relates-To: #497
Closes: #497
2021-03-27 12:59:30 -05:00
Ruslan Aliev
3dd66f7685 Change logic of config set-context cmd
* command internal logic was revised and optimized
 * added ability to delete/reset context fields
 * unit tests were reorganized, new cases were added

Change-Id: Ie35d11405e88fea21abf33cb75f44b03bb4644fd
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #348
2021-03-26 19:22:52 -05:00
Ruslan Aliev
b8e0978d6d Remove NameInKubeconf field from Context struct
Since this field is no longer actually used, there is need to
remove it completely.

Change-Id: I9f7002f8def31d1660919bd0128707e43a57ad71
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-03-26 19:22:52 -05:00
Zuul
36d5f9822a Merge "Update Airshipctl and CAPD Documentation" 2021-03-25 21:37:23 +00:00
Zuul
fc00c180ff Merge "Add phase status command" 2021-03-25 21:36:44 +00:00
Zuul
d38bcd8c44 Merge "Fix hard coded max width in Sphinx rtd theme" 2021-03-25 19:11:50 +00:00
Niharika Bhavaraju
0cc7c9cafd [#358] Introduce Phase List command to output phase list(cmd module)
* Phase list command lists phases of current documentset/plan.
 airshipctl phase list
 airshipctl phase list --plan planName
 airshipctl phase list --plan planName -o table(default output)
 airshipctl phase list --plan planName -o yaml

Co-Authored-By: Niharika Bhavaraju <niha.twinkle@gmail.com>

Relates-To: #358

Change-Id: Iab3a6cdf5a25583ba3d01341da350841c9cc362d
2021-03-25 16:11:10 +00:00
bijayasharma
60488d4d7a Add phase status command
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: I09fc1e84f195982a43c97f80feb82fb2e489771d
Relates-To: #411
2021-03-25 12:36:01 +00:00
Zuul
818efdfc19 Merge "Remove deprecated options for phase/plan run cmd" 2021-03-25 06:20:03 +00:00
Zuul
76e345b862 Merge "Pin krm function calls" 2021-03-24 21:34:06 +00:00
Ruslan Aliev
3ccafd9d0f Remove deprecated options for phase/plan run cmd
There are some debries left after removing --kubeconfig flag
from support, this patch cleans them up.

Change-Id: Iabdd6bcbc59d169bf162c9cddb3cb264fb88a3f7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-03-24 13:39:13 -05:00
Sean Eagan
299b2833b2 Pin krm function calls
This pins krm function calls to version `v2` which represents [0] [1] the latest
2.x.x semantic version. If we need to make breaking changes to any krm functions,
that can now be done by incrementing their major version and thus not
breaking these references.

[0]: https://review.opendev.org/c/airship/airshipctl/+/762924
[1]: https://review.opendev.org/c/airship/airshipctl/+/780875

Closes: #419
Change-Id: I6cf6519511c77da6cac7e46a6b56ea338bcf150c
2021-03-24 09:28:54 -05:00
Rishabh Kumar Jain
0ba801140e Fix hard coded max width in Sphinx rtd theme
* improves document reading experience
      on wider monitors
    * added _templates/layout.html to set
      max width to none

Related-To: #496
Closes: #496
Change-Id: I1f2fc0a958cf9f6526ca314142fbcba34b5ef5c7
2021-03-23 20:47:23 +00:00
Rishabh Kumar Jain
fd14ed45bf Update Airshipctl and CAPD Documentation
Update the document to use new phases
 - clusterctl-init-ephemeral
 - controlplane-ephemeral
 - initinfra-networking-target
 - clusterctl-init-target
 - clusterctl-move
 - workers-target

Change-Id: If41412b1810cb61092eaccd96161b012b518eaf6
2021-03-23 20:21:44 +00:00
Zuul
bb37ba1382 Merge "SOPS improvements" 2021-03-23 17:41:00 +00:00
Zuul
81a7849f28 Merge "Increase required disk size to 80GB" 2021-03-22 18:22:36 +00:00
Alexey Odinokov
a7e332f9ec SOPS improvements
Added 2 phases:
1. secret-reencrypt - This phase can be used to
reecnrypt the existing secrets with new key.
To do so SOPS_IMPORT_PGP must contain
old public key and new private key (but
may also include other data).
SOPS_PGP_FP must contain fingerprint of
new private key.

2. secret-show - This phase may be useful for some users
that need to see what generated by secret-generate phase.

Disabled SOPS debug by default.
To enable it back run commands with
env variable DEBUG_SOPS_GPG=true

Change-Id: Id7fe13d6943d386577df25dba4aaa83e62e58980
2021-03-19 21:31:25 +00:00
Zuul
86bd2c9984 Merge "Get-kubeconfig return all cluster contexts" 2021-03-19 01:20:48 +00:00
Hemachandra Reddy
8d904c2354 Increase required disk size to 80GB
The existing recommendation of 60GB disk space is not enough to configure
all-in-one airshitpctl. It is not easy to expand disk space in virtual box
and other envivonrments and developer needs to recreate the environment from
scratch again.

Change-Id: Ifdb260e443647eb4dc942674ee495c9790e28fe6
2021-03-17 21:57:54 +00:00
Kostiantyn Kalynovskyi
f24bf00d17 Get-kubeconfig return all cluster contexts
Now if we run `airshipctl cluster get-kubeconfig` without args
it will return kubeconfig for the entire site, which will have
contexts for every cluster defined in cluster map.

Relates-To: #460
Closes: #460

Change-Id: Icf1f09724a5c60ac520b1dbcbda69c3280ac4c7e
2021-03-17 19:27:14 +00:00
Zuul
98c50e1464 Merge "Revert "Adding commands to get and set encryption configs"" 2021-03-17 00:22:09 +00:00