1529 Commits

Author SHA1 Message Date
Ratnopam Chakrabarti
27031d6f70 Update CAPG provider phase
Update phase for calico deployment in the
target-cluster

Relates-To: #446
Change-Id: Icead39c6bd95c903bc7a912b7a2d161bf09a0401
2021-01-27 15:56:10 +00:00
Zuul
8efb786a6a Merge "Update PROXY, TARGET_NODE parameters" 2021-01-26 18:57:26 +00:00
Zuul
63421c8fcc Merge "Add general inventory interface implementation" 2021-01-25 18:08:44 +00:00
Zuul
7fd2b820ae Merge "Remove unsed functions and increase test coverage" 2021-01-25 10:16:42 +00:00
Zuul
74407279b4 Merge "Enable voting for golint job" 2021-01-23 03:59:26 +00:00
Kostiantyn Kalynovskyi
7bb4ac288d Remove unsed functions and increase test coverage
Change-Id: I2601700a477006946e1d759a8b8d849bf30e8afd
2021-01-22 23:31:22 +00:00
Zuul
6acf6b99b3 Merge "Move remotedirect method to remote interface" 2021-01-22 21:31:47 +00:00
Battina, Sai (sb464f)
0f0e01ea0e Update PROXY, TARGET_NODE parameters
This PS adds PROXY parameter system executable script.
make uses PROXY parameter to pass proxy while building image

This change also adds TARGET_NODE,CLUSTER_NAMESPACE parameter to pass
node details and cluster details for further operations

Change-Id: I9ff8e12ff679526b728c55ffd23c3ed513db4589
2021-01-22 17:54:09 +00:00
Kostiantyn Kalynovskyi
8958d7093c Add general inventory interface implementation
This commit also adds function to be used with command line pkg

Change-Id: Ifdebfd62817b071f06cad90a14897fda63808a7a
2021-01-21 23:18:55 +00:00
Kostiantyn Kalynovskyi
decc12b0a9 Move remotedirect method to remote interface
Please note that this is first commit in series and in next commits
remote/remote_direct* files will be remove completely, so if you
have any comments that address issues in these files, keep in mind
that they will be remove in next patchsets.

Change-Id: I52e9b8438a4f8e1a2395cbe90238b9cb654772d4
2021-01-21 23:09:54 +00:00
Zuul
6a639fcf4e Merge "Fix incorrect links in Hardware Profile Documentation" 2021-01-21 17:53:50 +00:00
Ruslan Aliev
d632a5de5f Enable voting for golint job
Since golint job was fixed and it's essential to maintain
code standards this job should have voting status.

Change-Id: I623171ce89b3906eac30e11fa3d7ebeb2725372b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-01-20 21:47:35 -06:00
Zuul
ffe0f59067 Merge "Update documentation" 2021-01-20 21:04:15 +00:00
Zuul
cfa2bc0ab6 Merge "Add progress bool flag for phase run command" 2021-01-20 17:30:22 +00:00
Zuul
41d353444f Merge "Image override for CAPO components" 2021-01-19 18:50:28 +00:00
Sreejith Punnapuzha
ba8b234f8c Update documentation
* adds steps to setup encryption secrets for SOPS function.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ic1816760ab696a251695053613d3b1a13ac9ed38
2021-01-19 10:54:17 -06:00
Zuul
bb88c9ff4b Merge "Fix golint check" 2021-01-19 01:37:18 +00:00
Sirajudeen
9f794360be Image override for CAPO components
Change-Id: I1cdc3f17bf10cd4831670c5aabc509e639c9ebc3
Relates-To: #431
2021-01-18 21:04:46 +00:00
Sirajudeen
d9a7200698 Removing the non-voting jobs from dependency
* Removing the non-voting job from dependency. So that
  for any reason if the dependent non-voting job fails,
  the gate runner job will not be skipped.

Change-Id: If2f208d41a6df1ce7286654fe6e203d309042874
2021-01-18 21:04:24 +00:00
Sreejith Punnapuzha
0b2c9925bf Add encryption to gates
This commit fixes validate site by introducing the encryption mechanism

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I01f6aa7ddfee16b06b40f6bfa06b2192a7931cd3
2021-01-18 16:16:49 +00:00
Zuul
fa04ecc548 Merge "Fix pulling docs from remote branch" 2021-01-15 19:49:33 +00:00
Zuul
6c7a6b0dfd Merge "Changed the return statements to go idiomatic way" 2021-01-14 22:03:56 +00:00
Zuul
415c7f7599 Merge "Add secrets generator phase" 2021-01-14 21:32:46 +00:00
Zuul
1cb1171fa8 Merge "Remove unnecessary constants" 2021-01-14 19:09:26 +00:00
Vladislav Kuzmin
8dba799c18 Add secrets generator phase
This phase builded on top of generic executor container.
It uses kustomize generator to generate secrets
and SOPS function to encrypt secrets.

Usage:
    1. `curl -fsSL -o key.asc https://raw.githubusercontent.com/mozilla/sops/master/pgp/sops_functional_tests_key.asc`
       Copy existing key from sops project
    2. `export SOPS_IMPORT_PGP="$(cat key.asc)" && export SOPS_PGP_FP="FBC7B9E2A4F9289AC0C1D4843D16CEE4A27381B4"`
    3. `airshipctl phase run secret-generate`
        It will generate and encrypt secret in
        manifests/site/test-site/target/generator/results/generated/
    4. `KUSTOMIZE_PLUGIN_HOME=$(pwd)/manifests SOPS_IMPORT_PGP=$(cat key.asc) kustomize build --enable_alpha_plugins
        manifests/site/test-site/target/catalogues/ > output.txt`
	It will decrypt encrypted secret

Co-authored-by: Alexey Odinokov <aodinokov@mirantis.com>
Change-Id: I1682d71b7805eb36c407e712dcb747de799bc8bb
Relates-To: #379
2021-01-14 18:57:15 +00:00
Zuul
2e66fc59f6 Merge "Implement kustomize sink in generic container executor" 2021-01-14 18:40:14 +00:00
Ruslan Aliev
0e44b580f0 Fix pulling docs from remote branch
Currently airshipctl is not able to checkout remote branch
due to using simple branch reference name instead of remote one.
This patch fixes appropriate problem and allows user to specify
what kind of branch to use - local or remote one (since reference
name will be different in these scenarios).

Change-Id: I1fea29f84097b9e7160597003d0e8961f4d3aca6
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-01-14 12:35:56 -06:00
Ruslan Aliev
f902491783 Fix golint check
Currently golint check zuul job does nothing because of
bug inside tools/golint script. This patch fixes this issue.

Change-Id: Iaab1741b2a3f5f61c49549d8e4ce88be6212d570
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-01-14 10:38:10 -06:00
Kostiantyn Kalynovskyi
eea34fba72 Don't create NS when dry run strategy is specified.
Change-Id: Ib573d51128b0d0cfab0860e89c691b3b06f8c411
2021-01-14 14:53:40 +00:00
Vladimir Kozhukalov
b0d171d0ec Remove unnecessary constants
Change-Id: Ib54ce13e552efb4ac8efe00c18956ed65b46d564
2021-01-14 14:51:12 +00:00
Zuul
d97dccb4cf Merge "Image override for CAPG components" 2021-01-14 04:02:39 +00:00
Zuul
a15151c7ee Merge "change libvirt-bin package" 2021-01-13 19:32:46 +00:00
Zuul
8810447fc5 Merge "Implement RunAction method of the baremetal interface" 2021-01-13 16:14:35 +00:00
Sreejith Punnapuzha
78a9f2312a change libvirt-bin package
libvirt-bin package have been split into 2 packages,
libvirt-daemon-system and libvirt-clients. this commit changes the
libvirt-bin package to the new packages

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I24c2d32d2b10ae86684c4a4ef82c2d994064c24e
2021-01-13 08:47:36 -06:00
Vladislav Kuzmin
3de8b5b2b2 Implement kustomize sink in generic container executor
Sink function allows to write configurations to an external system.

Change-Id: If9c6904239a542ea4c2bef2920965b6d87feb1e6
Relates-To: #202
Relates-To: #369
2021-01-13 17:56:04 +04:00
Zuul
80a8b53c42 Merge "Groom phase/executors package" 2021-01-13 12:42:23 +00:00
Sirajudeen
95af33581d Image override for CAPG components
Change-Id: Ibc2c3174897de4417e274f2bb887ce2f8649148d
Relates-To: #431
2021-01-13 03:09:44 +00:00
Ruslan Aliev
5a6f1096eb Groom phase/executors package
All the duplicated methods were removed. Unit tests reorganized.
Test coverage increased.

Change-Id: I0f7bd3eea63c101195ea50c0369e62945d73f297
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #432
2021-01-12 16:31:43 -06:00
Sirajudeen
de625b10d8 Image override for CAPZ components
* This is follow-up commit for image override (CAPZ)

  CAPM3, CAPI, CACPK, CABPK =>
		  https://review.opendev.org/c/airship/airshipctl/+/766228
  CAPD => https://review.opendev.org/c/airship/airshipctl/+/767235

* Also added the replacements to consume values from versions-airshipctl

Change-Id: I9c908c071a76b6fca0d0e03ea27b36517bf7052a
Relates-To: #431
2021-01-12 19:47:10 +00:00
Zuul
932d92664e Merge "Add PhaseEntryPointBasePath to phase helper" 2021-01-12 19:40:38 +00:00
Zuul
2e5818a58c Merge "Image override for CAPD components" 2021-01-12 19:40:28 +00:00
muly
d16ba90d34 Changed the return statements to go idiomatic way
Change-Id: I56f57d9e6ef385245b2a299d9d6d7bacd2266b68
2021-01-12 14:10:22 -05:00
Zuul
41ad76c3d0 Merge "Call correct client when building Host object" 2021-01-12 19:00:36 +00:00
Zuul
78e0e81bc0 Merge "Bootstrap Ephemeral - Executor methods" 2021-01-11 21:02:20 +00:00
Zuul
7722199c66 Merge "Add commit and other labels to the airshipctl container image" 2021-01-11 18:15:44 +00:00
Zuul
c280f869a0 Merge "Fix image publishing: invalid tag argument format" 2021-01-11 17:55:21 +00:00
Roman Gorshunov
de72491f2c Add commit and other labels to the airshipctl container image
Relates-To: #399

Change-Id: I0e0be8fe6dd37b346637ae9847523e4cd3734081
2021-01-11 14:52:59 +00:00
Zuul
42e7dea246 Merge "Fix container image publishing" 2021-01-08 20:00:09 +00:00
Sidney Shiba
4b31d3b936 Bootstrap Ephemeral - Executor methods
This patchset includes the go code for the Executor for the Bootstrap
container/Ephemeral cluster and respective unit test code.

This executor allows to deploy a K8S cluster on a public/private cloud
provider through a dedicated Bootstrap container.

This patchset does not include the manifests for the executor to avoid
too big patchset. It will be included in a different patchset.

Change-Id: I3f9d2ba1bb65b344522e105fd26310af24e3a1b1
2021-01-08 10:34:01 -06:00
Roman Gorshunov
0407edaa8d Fix image publishing: invalid tag argument format
Mistype in DOCKER_REGISTRY variable, causes container image publishing
to fail with "invalid argument "https://quay.io/..." for "-t, --tag"
flag..." error. Changing tag to correct one (just quay.io, instead of
https://..).

Change-Id: I467d5d9fb2ef24b315e84fe06e9a7ebddac3b98a
2021-01-08 16:56:02 +01:00