2011 Commits

Author SHA1 Message Date
Alexey Odinokov
cce32b5d16 Adding a phase to help importing external secrets
In addition:
moved decrypt-secret to type level to avoid duplication
updated documentation

Change-Id: I33511ce2db27304e18720ffba5342419a986929a
2021-05-20 04:50:06 +00:00
Zuul
a9dcdaaf47 Merge "Use bundle mock for k8s applier tests" 2021-05-18 17:49:49 +00:00
Zuul
9ca9106f34 Merge "Add replacements/ for the flux composite" 2021-05-18 03:38:02 +00:00
Zuul
e12b1e2fa6 Merge "Invoke validation container directly via ClientV1 package" 2021-05-18 02:10:56 +00:00
Zuul
1a103e3272 Merge "Remove Kind-based validation with dry-run of phases" 2021-05-18 00:54:39 +00:00
Zuul
739e7af4fb Merge "Move virsh calls to generic container" 2021-05-18 00:51:23 +00:00
Zuul
8eae867e42 Merge "Add worker labels for the machine deployments" 2021-05-17 17:56:40 +00:00
Zuul
655fdb2661 Merge "Added missing properties to catalogues" 2021-05-14 22:30:13 +00:00
Zuul
af10074180 Merge "Point images from dockerhub to quay." 2021-05-14 17:53:10 +00:00
Zuul
79555b0d92 Merge "Add possibility to override default schema location for validator" 2021-05-14 17:27:18 +00:00
Vladislav Kuzmin
e88a5c5c1f Move virsh calls to generic container
Relates-To: #517
Change-Id: I96178dfb9addbe76b8897bbe4cd58f150563b81a
2021-05-14 13:59:43 +04:00
Ruslan Aliev
b4dd5cf42c Remove Kind-based validation with dry-run of phases
This validation approach is no longer needed and less
effective than static one, so it should be deleted to not
consume additional time and resources during the validation
process.

Change-Id: I88603723d9a423955bd88d23e7b8e2a8275d9dde
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #543
2021-05-13 16:45:26 -05:00
Sreejith Punnapuzha
a546f47073 Point images from dockerhub to quay.
This commit points socat image from dockerhub to quay

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Id757b1643d25ef633dd633c051e987d73e4fd937
2021-05-13 15:54:24 -05:00
Ruslan Aliev
7fd779ae0b Invoke validation container directly via ClientV1 package
This patch will allow us to bypass unnecassary logic in generic
container executor (e.g. mounting kubeconfig).

Change-Id: I526940e8f01c66f7609355a4ef750b38f1d9a323
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-05-13 13:12:18 -05:00
Vladimir Kozhukalov
ebb03b504b Use bundle mock for k8s applier tests
Change-Id: Id00e5c493bf9cca2c03ea30f51c1ed978df74c15
Relates-To: #464
Relates-To: #465
2021-05-13 11:13:13 +03:00
Pallav Gupta
7cfffde323
Added missing properties to catalogues
* added bond_xmit_hash_policy property to network catalogues
* added sourceRef chart property to versions catalogues
* corrected code typos

Change-Id: Idda5e7628df3631688b84e4d62749ab173c9933f
2021-05-12 22:55:46 -05:00
Ruslan Aliev
93d9967ada Add possibility to override default schema location for validator
This feature would be helpful in case if default schema location is
not reachable (e.g. proxy restrictions).

Change-Id: I9a36256410b31bf5de410fab88cc2c3f31ed5793
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-05-12 19:54:06 -05:00
Matt McEuen
ce5ca13b61 Add replacements/ for the flux composite
The flux composite bundles together the two individual flux operator
functions, but it fails to provide a `replacements/` to bundle together
their replacements.  This results in sites in airshipctl and
treasuremap needing to pull in the function replacementes individually
at the site level, negating the benefit of the composite abstraction.

This adds the replacements kustomization and adjusts test-site to use it.

Change-Id: Ib08e24bdd6ec8222363137bd09ad79dbcd804490
2021-05-12 08:00:49 -05:00
Andrii Ostapenko
a7cbd6bddc
Allow to pass script directory to allow inheriting in other projects
Change-Id: I3dd01d5b371ef57407600b3230094ea2546614bb
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-11 17:02:09 -05:00
Zuul
bfe8cd3b00 Merge "Add ability to pass environment to gate runner from job" 2021-05-11 20:11:47 +00:00
Kostiantyn Kalynovskyi
17c4b4a1be Add worker labels for the machine deployments
We are missing worker labels and this may lead to
future problems when we will want to scale, wrong nodes
can be chosen for the worker MachineDeployments.

This is a temporary solution to add this to kustomize
Permanent solution should add labels to host generation
and variable catalogue.

Relates-To: #531

Change-Id: Ia07f1d9125bf5b6aadea3750ea53bc34228577ca
2021-05-11 18:17:34 +00:00
Zuul
6c67f739e4 Merge "Added m3-gen integrity checks" 2021-05-11 17:07:10 +00:00
Zuul
bcb6f959ab Merge "Cluster- updating cmd files for documentation" 2021-05-11 09:38:12 +00:00
Zuul
7280d5a7bd Merge "Baremetal- updating cmd files for documentation" 2021-05-11 09:38:08 +00:00
Zuul
ed271774f6 Merge "Add Plan Status() to ifc.plan interface" 2021-05-11 09:37:16 +00:00
Zuul
ab98b63bf3 Merge "Refactor config get-manifest command" 2021-05-11 09:10:36 +00:00
Zuul
2016fd9574 Merge "Make validate_doc script reusable in manifest outsite airshipctl" 2021-05-11 05:48:52 +00:00
Alexey Odinokov
431043972c Added m3-gen integrity checks
Without that check we may get firmware: null
that will be a mistake

Change-Id: Ib86a5ff7b54a6a280768832646f612568da93046
2021-05-11 05:19:42 +00:00
Andrii Ostapenko
6e5bef457a
Add ability to pass environment to gate runner from job
Introduces an ability to pass custom environment that
has the highest precedence from job definition for
airshipctl-gate-runner playbook, e.g.:

job:
  name: test-job
  playbook: run: playbooks/airshipctl-gate-runner.yaml
  vars:
    job_environment:
      FOO: BAR

Defined environment variables complete/replace default playbook variables.

Change-Id: Ib11480068141315126a80f3952b6882cdb7439ae
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-10 20:11:22 -05:00
Zuul
5dcc769243 Merge "Generate Catalogues schema using kubebuilder" 2021-05-10 23:32:22 +00:00
Zuul
dee915feaa Merge "Tweak release binaries" 2021-05-10 19:37:10 +00:00
Pallav Gupta
0394caea47 Make validate_doc script reusable in manifest outsite airshipctl
Currently tools path and manifest path is hardcoded in validate_doc
script which make is hard to be resuable outside airshipctl project.
The aim of this PS is to overcome this issue and make validate_doc
script reused (in Make file) outsite airshipctl project manifest.

Change-Id: I2e9277c206e5e0c635c241abf1c4c6ec58f5a592
2021-05-10 08:16:47 -07:00
Zuul
a2b70338c0 Merge "Adding a place for external secrets to be stored on site level" 2021-05-08 02:24:13 +00:00
Zuul
1b74bd49f4 Merge "Add kubeconfig cleanup in KubernetesApply executors" 2021-05-07 21:07:38 +00:00
Zuul
fae2dafb90 Merge "Remove namespace from annotate BMH script" 2021-05-07 21:01:47 +00:00
Zuul
9ccdcfc008 Merge "Add filtering by label to Toolbox container" 2021-05-07 21:01:34 +00:00
Zuul
ffe47fcaff Merge "Close events channel on executor level" 2021-05-07 19:57:02 +00:00
Zuul
2c1e580de8 Merge "Remove the dynamic plugin name calculation logic" 2021-05-07 19:43:44 +00:00
Alexey Odinokov
70976860a9 Adding a place for external secrets to be stored on site level
There will be another place to store that data: [1]
All previous appropriate phases will work for that,
e.g. secret-reencrypt all secret-show.
The documentation is updated accordinly.

[1]
manifests/site/test-site/target/encrypted/results/imported/secrets.yaml

Change-Id: Iaeeaae902420ef9158dcaba2a272e20459596ae5
2021-05-07 18:25:13 +00:00
siraj.yasin
935b26af52 Generate Catalogues schema using kubebuilder
* Generate VersionsCatalogue and NetworkCatalogue schemas using kubebuilder
* Schema for CRDs can be generated with this command
    => make manifests

Change-Id: I61695d523ee0c08739f15a47b2cf8653d925b108
Closes: #532
2021-05-07 17:23:58 +00:00
Sirisha Gopigiri
d13d15f453 Cluster- updating cmd files for documentation
The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I7c088528842ff859f502d4484ff9a3847ebb1177
2021-05-07 19:23:55 +05:30
Sirisha Gopigiri
ec3840a866 Baremetal- updating cmd files for documentation
The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: I323fa145b512e58cb878b117656c51bc39e76360
2021-05-07 19:23:55 +05:30
Zuul
1f52d46374 Merge "Change default manifest target path" 2021-05-06 21:47:50 +00:00
siraj.yasin
e9b317d641 Remove the dynamic plugin name calculation logic
* Removed the dynamic plugin name calculation logic for readability.
* Hardcoded the make docker-image-<plugin_name> step for each plugin

Change-Id: I79b3fc4aa899ee9b8ae2e8f308a6df8f4d1ac36f
2021-05-06 21:32:24 +00:00
Kostiantyn Kalynovskyi
b843a92a7b Add filtering by label to Toolbox container
Relates-To: #517

Change-Id: If2104fe87bf084d3d6e4fe602b0501dc3452349e
2021-05-06 21:23:40 +00:00
Zuul
ace0abae5d Merge "Move kubectl calls to KRM toolbox pt.4" 2021-05-06 21:22:41 +00:00
Zuul
b731223a9b Merge "Remove unnecessary code" 2021-05-05 18:27:54 +00:00
Vladislav Kuzmin
d06c3fbc2b Move kubectl calls to KRM toolbox pt.4
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Relates-To: #517
Change-Id: If5125ddac23b33c88d4d3d195ee1021d15b5598f
2021-05-05 13:42:57 +04:00
Matt McEuen
86a2c836ea init_site.sh: sed in managementConfiguration
`airshipctl config` doesn't yet support setting a context's
managementConfiguration value.  This change adds in a sed
to set all managementConfigurations to default.

Change-Id: I0d8d0fb285a0b82e348640ef689eb3f0efb9e547
(cherry picked from commit bbd0ca28955c462077d05e2b77d18bfac8c47c45)
2021-05-04 18:38:52 +00:00
Zuul
278bbf27ea Merge "Use correct quotes in BMO manifests" 2021-05-04 18:34:03 +00:00