2011 Commits

Author SHA1 Message Date
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
niharikab
289b569de4 Add Plan Status() to ifc.plan interface
This commit adds plan Status() method to ifc.plan
interface.

Relates-To: #412
Change-Id: I4857eec9ea125902e305af64fbb336ff6de4faa8
2021-04-19 20:09:51 +05:30
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
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
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
Matthew Fuller
c62330999a Enhance VersionsCatalogue schema
Modifies the schema for the VersionsCatalogue CRD to allow
images to also be declared using the Helm-style format of
'repository' and 'tag' (or 'sha', 'digest', or 'hash').

Closes: #511
Change-Id: I9b22bb9c3ed814bf0d2b6f7dc1e540d9370eae7c
2021-04-14 20:24:46 +00: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
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
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
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
Vladislav Kuzmin
532627deed Use env variables only for exec process in KRM toolbox
Small improvement that allows env variables to be used only for
exec process in the KRM toolbox.

Change-Id: I93436813be883241996ab46154d78452804a8665
2021-04-01 12:20:31 +00:00
Zuul
ea534c379f Merge "Add toolbox krm function" 2021-04-01 07:08:19 +00:00