1840 Commits

Author SHA1 Message Date
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
Zuul
9196dd089a Merge "Reduce the number of unnecessary document.NewBundleByPath() calls" 2021-03-31 02:02:41 +00:00
Zuul
310bc282f5 Merge "[#358] Introduce Phase List command to output phase list(cmd module)" 2021-03-30 01:02:39 +00:00
Zuul
adacadda4d Merge "[#358] Introduce Phase List command to output phase list(pkg module)." 2021-03-30 00:37:04 +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
e9041a2a22 Reduce the number of unnecessary document.NewBundleByPath() calls
Since document.NewBundleByPath() is pretty resource and time
consuming call (because it invokes kustomize under the hood),
we should avoid unnecessary calls of this function. There are
lots of the same constructor calls of new bundle from phase
bundle root path, mostly in helper, which slows airshipctl
and makes no sense. This patch fixes this problem by storing
phase root bundle variable in helper, which creates only once
during airshipctl execution.

Change-Id: I6b59d440f7ab7a68dc613091dafcc9e82df10eb7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #488
2021-03-27 12:58:36 -05:00
Zuul
3749a8fe50 Merge "Allow to pass iso url from env for remotedirect-ephemeral phase" 2021-03-27 08:53:01 +00:00
Zuul
9f0c254733 Merge "Changing personal images with upstream for Sops" 2021-03-27 07:47:41 +00:00
Zuul
b38dfb4929 Merge "Add pause annotation to bmh object" 2021-03-27 05:11:29 +00:00
Zuul
5e06ad2287 Merge "Add permission to home folder in pip installation" 2021-03-27 00:37:06 +00: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
bde1998648 Merge "Allow relative and ~ path for container mount" 2021-03-26 21:57:56 +00:00
Zuul
aa76ebab3f Merge "Update hwcc replacement target name" 2021-03-26 17:16:43 +00:00
Alexey Odinokov
988cd9f99b Changing personal images with upstream for Sops
During our work we used personal images, because
there was no upstream available. Now when the
upstream is avaialbe - we're changing all urls to it.

Change-Id: I6e8344723e343c4396304d68908fae328d139434
2021-03-26 16:17:27 +00:00
Andrii Ostapenko
0c14bde17e Allow to pass iso url from env for remotedirect-ephemeral phase
This commit introduces an ability to consume
AIRSHIPCTL_EPHEMERAL_ISO_URL environment variable. Also
it switches from phase patch to catalogue and implements
corresponding replacement transformer for remotedirect
variables.

With this code isoURL catalogue value is only used in an
absense of AIRSHIPCTL_EPHEMERAL_ISO_URL.

Airshipctl does not control how an iso is served leaving it on
discretion of deployment pipeline, also iso contents are fully
determined by image-builder image and manifests, thus this change
does not violate GitOps principles.

Change-Id: Ie6eebe0f0502b2f8e41b081281336299c63f5e4d
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-03-26 16:16:21 +00:00
Zuul
df0e4cec2d Merge "Modify airshipctl cluster status cmd" 2021-03-26 09:28:12 +00:00
Zuul
e685fb2f1c Merge "Remove "time" leftover from previous patchset" 2021-03-26 02:33:58 +00:00
Zuul
c7516c3f05 Merge "Change default worker count (capd)" 2021-03-25 22:01:44 +00:00
Ruslan Aliev
92ce88fc29 Allow relative and ~ path for container mount
This patch allow to specify relative and home (~/) path for container
mounts.src field. In case if specified path is not absolute, it will be
created by following pattern: 'targetPath+mounts.src'; in case if path
contains ~/ - it will be properly expanded (it will allow us to mount
~/.airship working directory).

Change-Id: I878094371a2bc4e48216b1d076e466e3d29a86f6
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #484
Closes: #484
2021-03-25 16:41:30 -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
Sreejith Punnapuzha
e4970aa37d Add permission to home folder in pip installation
Pip installation of package with sudo will fail because of permission
issues in home folder. Adding -H option to sudo to fix this.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I60222b300591aecdbd5e27a0bb86c1c62daca289
2021-03-25 15:00:05 -05:00
Zuul
d38bcd8c44 Merge "Fix hard coded max width in Sphinx rtd theme" 2021-03-25 19:11:50 +00:00
Zuul
271171c9b9 Merge "Release notes gen: Fix previous tag calculation" 2021-03-25 19:11:45 +00:00
Zuul
929b11b8bc Merge "Bump timeout for controlplane phases" 2021-03-25 19:11:40 +00:00
Battina, Sai (sb464f)
5edde6b4f6 Add pause annotation to bmh object
Change-Id: I245aa4e57f3e249b4dff740e3eb642f9c73890c0
2021-03-25 13:45:29 -05:00
Kostiantyn Kalynovskyi
34ade93029 Remove "time" leftover from previous patchset
time command infront of airshipctl is a forgotten piece that needs
to be removed.

Change-Id: I6262e5382e59dab5ef51ca541a57d89522f59197
2021-03-25 17:09:35 +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
Niharika Bhavaraju
9bf40366a5 [#358] Introduce Phase List command to output phase list(pkg module).
* Phase list command lists phases of current documentset/plan in
  table or yaml format.
 airshipctl phase list
 airshipctl phase list --plan planName
 airshipctl phase list --plan planName -o yaml
 airshipctl phase list --plan planName -o table(default format)

Relates-To: #358

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

Change-Id: I37add2fc9dca2433de525bac8c2cc9e56fe39621
2021-03-25 20:16:27 +05:30
Sean Eagan
6cf4a057f4 Release notes gen: Fix previous tag calculation
The latest version of gren (0.17.3) has a bug [0] which causes
it to include all issues rather than just than since the last
tag. This pins to 0.17.1 to avoid this bug.

This also limits the previous tag search to airshipctl semver tags,
that is those without a krm function prefix.

[0]: https://github.com/github-tools/github-release-notes/issues/279

Change-Id: Ib3524bef7a52da97a89f0bc408a1b2e1072e64b1
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-25 08:27:44 -05: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
bijayasharma
ddf1641168 Modify airshipctl cluster status cmd
* This commits modifies airshipctl cluster status cmd to
  return not implemented error

Change-Id: I7a9fea382217f4eb3d9903b6575f9df5d331255d
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Relates-To: #370
Closes: #370
2021-03-25 12:35:15 +00:00
Zuul
4e296dacab Merge "Don't fail if docEntryPoint isn't defined for Container exec" 2021-03-25 08:49:25 +00:00
Zuul
818efdfc19 Merge "Remove deprecated options for phase/plan run cmd" 2021-03-25 06:20:03 +00:00
Zuul
961c10fa9c Merge "Refactor phase related errors" 2021-03-25 05:04:19 +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
Ruslan Aliev
395aa537ca Don't fail if docEntryPoint isn't defined for Container exec
Input for this executor could be empty, so we have to handle
ErrDocumentEntrypointNotDefined error more intelligently.

Change-Id: I73e0f770e64cead7dbbbce2af2b7a2ebd323b83b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
Closes: #485
2021-03-23 22:04:40 -05:00
Ruslan Aliev
8bed52b057 Refactor phase related errors
* phase related errors were moved to separate package to prevent
   cycling import error;
 * error duplicates were removed;
 * non-related to package errors were moved to appropriate ones.

Change-Id: If6cfb08c48d356c1517a13157a5fe740dc1635a4
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
2021-03-23 22:04:28 -05:00
Zuul
104d650a36 Merge "Remove obsolete directory in manifests" 2021-03-24 00:46:49 +00:00
Rishabh Kumar Jain
a4548cb9ea Change default worker count (capd)
* change default worker count to 2
      from 1
    * remove usage comments to scale workers
      in deployment script

Change-Id: Ic880deea7d3ff104cb2af39b1b81c53a331d353f
2021-03-23 14:10:48 -07: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
Zuul
a6b4eef607 Merge "Enhanced deployment script to support baremetal multi-node" 2021-03-23 20:38:00 +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
Battina, Sai (sb464f)
a7ea1dddaf Update hwcc replacement target name
Change-Id: I91d496d31b3c0391cb04eba25f0b5139a1a7a2c5
2021-03-23 14:38:00 -05:00