1897 Commits

Author SHA1 Message Date
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
Zuul
a0cfddab1b Merge "Remove unused empty directory from test-site/ephemeral" 2021-04-15 20:57:05 +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
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
Andrii Ostapenko
64e96269ea Add ability to override airship images prefix
Change-Id: I13ccca42773246bf0ef6803d3bd1bd9cb44b88e0
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-04-05 21:26:41 +00:00
Vladislav Kuzmin
d15077e56d Add documentation for KRM toolbox
Change-Id: I9a84e3601df7fdfb4ef355a4b0f1b25c754ce6a5
2021-04-05 22:55:36 +04:00
Ruslan Aliev
dd3a9b416a Remove unused empty directory from test-site/ephemeral
It seems "stub" directory was created by mistake since it's empty
and has no relations in airshipctl code and manifests.

Change-Id: I1bb8b98d019ab02c9cdbb553ed5db6f99e560d0f
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-04-04 19:29:58 -05:00
Ruslan Aliev
675f718317 Remove unused fields from ExecutorConfig
AirshipConfig and BundleName fields are not used within Executors,
so they should be removed.

Change-Id: I23c54b854938ae554e888102a41c7ec215b85c27
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-04-03 16:52:15 -05:00
Zuul
346196e6c1 Merge "Add qcow-bundle to base catalogues" 2021-04-03 18:07:07 +00:00
Kostiantyn Kalynovskyi
c17246b006 Pass HostNetwork value to docker container
This fixes a bug when in host value is specified in api object,
but it is ignored by docker

Closes: #512
Related-To: #512

Change-Id: I57e66a19124d1d0a295396491dbd22e2e2193d31
2021-04-03 17:09:32 +00:00
Sreejith Punnapuzha
44b0abb5f9 Parameterize secret generation
Currently secret generation script is hard coded to test-site.
parameterizing it so that we can use the same script for multiple sites

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I501f577952d14541da1cb632e92ae19f577dbd53
2021-04-02 13:17:38 -05:00
Zuul
34282759af Merge "Trigger Github mirroring on tag push" 2021-04-02 01:06:40 +00:00
Sean Eagan
f5f4f31063 Trigger Github mirroring on tag push
Currently tags aren't mirrored until the next patchset is merged,
which delays the Github release workflow.

Change-Id: Ib50b6369d4f8ddeaf832f1de2c8f6b133b9b40c5
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-04-01 13:46:53 -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
Vladislav Kuzmin
892bb6a16d Move deployment scripts from test-site to function
Change-Id: I35a83a4e3fbc60c0f25b3969d624bbc370f0a41b
2021-04-01 15:52:41 +00:00
Zuul
ea534c379f Merge "Add toolbox krm function" 2021-04-01 07:08:19 +00:00
Zuul
030bb123d8 Merge "Add toleration for taint in helm-chart-collator" 2021-04-01 06:45:20 +00:00
Zuul
c2462f2717 Merge "Use SSH key to access target & worker node." 2021-03-31 18:41:01 +00:00
Sreejith Punnapuzha
494e90df90 Add toleration for taint in helm-chart-collator
This commit adds toleation for taint master:NoSchedule so that
helm-chart-collator deployment will be successfull

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I4c5115a57596984247f7540d2acefd315ef99da4
2021-03-31 16:28:27 +00:00
Zuul
9329b9cc21 Merge "Remove redundant logging when building kubeconfig" 2021-03-31 14:48:27 +00:00
Vladislav Kuzmin
d5c0377207 Add toolbox krm function
Add krm function to execute bash scripts inside container.

Closes: #494
Change-Id: I3074a27a022f65e87f190ab5a39c252f225ca1fa
2021-03-31 13:28:16 +00:00
Sirajudeen
e437d5456b Use SSH key to access target & worker node.
* Private and public key will be generated during
  `phase run generate-secrets`
* generated public key will be used to replace the
  place holders in the manifests and the same will be deployed
  on nodes.
* This can be used to prepare inventory for
  Hostconfig operator to manage nodes.

Depends-On: https://review.opendev.org/c/airship/airshipctl/+/783718

Change-Id: I780f6f6acce3df2fb3ba2f94e732fe34ddfb0454
2021-03-31 13:00:33 +00:00
Zuul
386c44aa44 Merge "Add azure integration document into the doc source tree" 2021-03-31 12:03:20 +00:00
Zuul
8cef84045b Merge "Add validation for catalogues" 2021-03-31 12:02:56 +00:00
Zuul
5c7f919261 Merge "Add function to generate SSH KeyPair via templater" 2021-03-31 12:02:51 +00:00
Zuul
8759632d4f Merge "Bump timeout for airshipctl-gate-script-runner job" 2021-03-31 12:02:39 +00:00
Zuul
f1cab5b579 Merge "Change logic of config set-management-config command" 2021-03-31 12:02:34 +00:00
Kostiantyn Kalynovskyi
ef19a9e5da Remove redundant logging when building kubeconfig
Closes: #500

Change-Id: I0fed5bf5abd5c3bfd193270b7c418f493746bea4
2021-03-31 09:44:33 +00:00
Zuul
e500e3c756 Merge "Add kustomize install script" 2021-03-31 06:40:37 +00:00
Zuul
6a62e11fea Merge "[#323] Cluster list command to output in table/clusternames." 2021-03-31 03:00:29 +00:00