1924 Commits

Author SHA1 Message Date
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
Vladislav Kuzmin
014e24cd15 Add set -xe to deployment shell phase-helpers
This allows errors to be passed from a container to
the airshipctl itself. Without this flags container will never fail.

Relates-To: #517
Change-Id: I20254f868bd85af44980acc656ca0fb401779bbc
2021-04-21 18:31:47 +04:00
Zuul
fcfad3533a Merge "Add missing images in versions catalogue" 2021-04-21 02:55:31 +00:00
Zuul
4e4d0f6568 Merge "Disable the redundant github issue update job" 2021-04-21 01:31:37 +00:00
James Gu
df4d481f5c Deployment script enhancements
Added 10 script to install required packaged and tools for a bew build node
Fixed docker cmd permisson error in 21 script
Fixed medadata path to use the SITE environment variable in 22 script
Added abibility to configure nocheckout option in document pull

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: Iea7c3e2cdac473188007e218f87889f6c1846bda
2021-04-20 18:48:35 +00:00
Zuul
1fd133329c Merge "Do not pass phase helper to executor initializers" 2021-04-20 17:40:58 +00:00
bijayasharma
a60ca7d85b Add missing images in versions catalogue
This commit adds missing images in versions catalogue
that are being used in manifest.

Change-Id: I0c2ee3fa2062cb0dbf7c843e1b5ed52f718429c8
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Relates-To: #498
2021-04-20 13:06:30 -04:00
Zuul
70dc21a269 Merge "Introduce bundle and helper mock objects" 2021-04-20 16:57:00 +00:00
Zuul
f1360cbbd4 Merge "Use env variables only for exec process in KRM toolbox" 2021-04-20 16:56:48 +00:00
Vladimir Kozhukalov
1b960c129d Do not pass phase helper to executor initializers
Phase helper provides plenty of useful methods for
 a phase client. But these methods are not used by
 phase executor initializers except for getting some
 configuration values. So, it is better to provide
 initializers with necessary values instead of passing
 them the phase helper.

Change-Id: I8c596455e30444570a86efad73d792af0ca83a33
Relates-To: #464
Relates-To: #465
2021-04-20 10:00:47 +03:00
Zuul
a4689a65dc Merge "Move kubectl calls to KRM toolbox pt.3" 2021-04-20 05:20:55 +00:00
Zuul
477f074aef Merge "Move kubectl calls to KRM toolbox pt.2" 2021-04-20 05:17:22 +00:00
Zuul
bfeb645939 Merge "Remove publish job dependency from build job" 2021-04-20 05:08:06 +00:00
Zuul
64d9fc71a3 Merge "Update hwcc image" 2021-04-20 04:13:52 +00:00
Zuul
9f7d7678ed Merge "Add labels to controlplane nodes" 2021-04-19 23:29:21 +00:00
Sreejith Punnapuzha
7167e1d2fe Update hwcc image
Update the hwcc image in version catalogue.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I9c3570891058d615332ab498d38a1b874f90f851
2021-04-19 17:38:12 -05:00
Shturm, Svetlana
220f0673cb Remove publish job dependency from build job
With latest changes build images jobs uses zuul.change variable
which is not defined for merge event.
Also using build job as a parent for publish creates an unnessesarly
execution of make command which we repeat later under publish playbook.

That change removes that dependency.

Change-Id: I7e02c2f3ef2ccd8b9db9872b123222020f80664a
2021-04-19 14:39:06 -05:00
Zuul
cac8564b59 Merge "Switching to the approach with cleanup by selector" 2021-04-19 19:03:21 +00:00
Zuul
dc8f8d20d8 Merge "Fix plan list command" 2021-04-19 18:02:03 +00:00
Sreejith Punnapuzha
2c674bdb03 Add labels to controlplane nodes
This commit adds new label to controlplane node so that HCO works

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I8cf3efc19bc4b78a6be04af5f28ad300990273e7
2021-04-19 11:44:03 -05:00
siraj.yasin
d4bae30fb3 Disable the redundant github issue update job
* airship-airshipctl-update-github-issues job adds comments
  to related github issue on PS merge based on the tag(Realtes-To/Closes)
  in commit message.
* airshipbot is already doing the job of adding comments to issues on new PSs
  and updating the status (closed, reopen) as applicable.
* So the job airship-airshipctl-update-github-issues is redundant when airshipbot
  is running.

Change-Id: I2c6fa748d3334384bf5b31c87d9501a006a153c1
Relates-To: #502
2021-04-19 13:26:40 +00:00
Vladislav Kuzmin
217c6fa8ce Move kubectl calls to KRM toolbox pt.3
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Change-Id: I588d0cfedc26903ae4389667b125fb58983febe9
2021-04-19 13:48:34 +04:00
Vladislav Kuzmin
d9d7f47012 Move kubectl calls to KRM toolbox pt.2
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Change-Id: Icec3ccfabaf6c0bb996308c35174fa0d6e825a48
2021-04-19 13:44:46 +04:00
Shturm, Svetlana
dd9a904fcd Use Zuul project variable for build images
Change-Id: Ie3b5ca9f17d3f908e7771dd5a6a6b09b9ee409c8
2021-04-15 21:26:41 +00:00
Zuul
a0cfddab1b Merge "Remove unused empty directory from test-site/ephemeral" 2021-04-15 20:57:05 +00:00
Pallav Gupta
10e75b5580 Fix plan list command
The aim of this PS to fix current issue we have when we have
new plan created with description width more than 40 char.
Added condition if width is more than specified in command
so the command execution will not break and just crop
exceeding description length.
Eg: e351b2bc43/pkg/print/table/columndefs.go (L71)

Change-Id: Icc353ec688b2fbb563add39f8d38004008093895
2021-04-15 12:18:23 -07:00
Alexey Odinokov
b927934b8c Switching to the approach with cleanup by selector
Previously we needed to delete each catalogue separatelly.
After bumping to new kustoimize 3.9.2 it's started to be
possible to use patching of several documents by selector [1],
that can be kind, name, label &etc

[1]
https://github.com/kubernetes-sigs/kustomize/blob/master/examples/patchMultipleObjects.md
+
https://github.com/kubernetes-sigs/kustomize/issues/2945

Change-Id: Ic6a2d2a4716ab0304872c4aad196a7259e58aa53
2021-04-14 15:44:51 +00:00
Zuul
3d26a7fec3 Merge "Added script for the missing controlplane_target phase" 2021-04-14 03:31:59 +00:00
Zuul
6ff615f987 Merge "Move kubectl calls to KRM toolbox pt.1" 2021-04-14 01:53:02 +00:00
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
Alexey Odinokov
d69553f904 Kubeconfig: switching from kustomize to airshipctl command
Since [1] has been merged it's possible to use
that command to generate kubeconfig in proper
way.

This patchset introduces that changes as well as
cleans up for non-needed anymore due to that changes
steps in gating.

[1]:
https://review.opendev.org/c/airship/airshipctl/+/774709

Change-Id: Ifc07c56c126c782d940a8ca4d111c59c5d3c9c78
2021-04-13 14:47:38 +00:00
Vladimir Kozhukalov
d104e488f0 Introduce bundle and helper mock objects
These mock objects can be tuned according to a test
 case and then fed to a testable objects. For example,
 all the phase executors are supposed to consume document
 bundles and react respectively depending on the
 behavior of the bundle.

 Tests will be modified in later patches.

Change-Id: I7cd71752709d6d1f255d4bfbc641803479eed66e
Relates-To: #464
Relates-To: #465
2021-04-13 15:32:23 +03:00
Roman Gorshunov
7998615a7b Add base images override support
Go builder and base images override support for downstream
deployment customizations for both airshipctl and plugins.
If required, adjust the following Zuul job variables:
 - docker.base_go_image
 - docker.base_release_image
 - docker.base_plugins_build_image
 - docker.base_plugins_release_image

Closes: #515
Change-Id: Iaf4b54a353207b06c9ed6bdcae876537e73f6e44
2021-04-12 19:47:31 +02:00
Zuul
7ed59086fc Merge "Pin airshipctl/templater version" 2021-04-12 02:53:40 +00:00
Vladislav Kuzmin
eb6ccf0201 Move kubectl calls to KRM toolbox pt.1
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Change-Id: Iddf64c7df94c9d796b101bbb4fafb22a7b7621b7
2021-04-10 14:00:40 +04:00
Zuul
e7c26ce209 Merge "Extend NetworkCatalogue CRD schema" 2021-04-10 01:57:47 +00:00
Matthew Fuller
1c19b4d351 Extend NetworkCatalogue CRD schema
Extends the NetworkCatalogue schema to include additional fields
for link objects in the commonHostNetworking.links array.

Change-Id: I562a5da8a8083b816d7111e462607d8e5c862aa0
2021-04-09 20:11:00 +00:00
Roman Gorshunov
51a63bde91 Pin airshipctl/templater version
Pin airshipctl/templater stable version v2
in bootstrap manifests function.

Relates-To: #419

Change-Id: I54529db8eb9e7f1646ebccf0dcdfeb10e9c0e191
2021-04-09 18:15:43 +02:00
Alexander Hughes
9105c6bcd0 Fix openssl in krm-functions images
Users behind firewalls may be unable to build all the airshipctl
images as a result of OpenSSL errors stemming from certificates used
with the proxy. To address this, the images impacted have been
updated to copy the proxy certificate from airshipctl/certs into
the image and run update-ca-certificates command. This is the same
behavior that already exists in the base airshipctl image and is
simply being extended to the images in krm-functions.

Change-Id: I436d1e25fb0726ab7576fec44a7ef2f9fd20f2bd
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2021-04-09 10:52:38 -04:00
Zuul
d0df7d8e43 Merge "Update base Go builder image to 1.15" 2021-04-09 14:33:47 +00:00
Zuul
091d214c41 Merge "Add ability to override airship images prefix" 2021-04-08 21:57:28 +00:00
Roman Gorshunov
09e488a20e Update base Go builder image to 1.15
Change-Id: Iab2be7f207effe0556881641cdf5bbe14837c266
2021-04-08 22:18:18 +02:00
Zuul
32e3fafe22 Merge "Add documentation for KRM toolbox" 2021-04-08 16:02:43 +00:00
Zuul
d4ca04ffae Merge "Update document docker provider(capd)" 2021-04-08 13:11:32 +00:00
Zuul
359c362861 Merge "Fix docker stdin write." 2021-04-07 19:13:11 +00:00
Zuul
7bc47c8a34 Merge "Pass HostNetwork value to docker container" 2021-04-07 19:13:06 +00:00
Kostiantyn Kalynovskyi
7c9dd85eeb Fix docker stdin write.
Without this commit airship can hang endlessly waiting for stdin
to be open. Apparently it depends on the containerd and docker
server version. This commit adds asnyc writing to stdin, this way
we don't have to wait for write to complete before starting docker
container. The code uses similar approach to upstream docker cli
implementation.

Related-To: #513

Change-Id: I2e6d4cbe37df1f8cba356af79c1c2cf18438e86c
2021-04-07 14:37:17 +00:00
Zuul
df135197ad Merge "Remove unused fields from ExecutorConfig" 2021-04-07 11:48:17 +00:00
Zuul
2185f53e16 Merge "Parameterize secret generation" 2021-04-07 06:20:19 +00:00
Sreejith Punnapuzha
c58a4177f8 Fix ssh key replacement
Correct the user for ssh in replacement

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I48a04a8d9be1c05fe36b78c27c4fec2cfc7f4daa
2021-04-06 10:38:55 -05:00