1237 Commits

Author SHA1 Message Date
Zuul
16c349526f Merge "Add docEntryPointPrefix field to the metadata.yaml" 2020-10-22 18:18:58 +00:00
Zuul
f372c3013c Merge "Container build for Templater plugin" 2020-10-22 15:38:11 +00:00
Zuul
cb9396bc80 Merge "Simplify ShowProgress unit test" 2020-10-22 13:49:38 +00:00
Vladimir Kozhukalov
a608d4c56d Add docEntryPointPrefix field to the metadata.yaml
* The phase.docEntryPointPrefix field in the metadata.yaml
   allows you to define a common part of the documentEntryPoint
   for all phases in the phase bundle.

   For example, let metadata.yaml be
   ---
   phase:
     path: manifests/phases
     docEntryPointPrefix: manifests/site/test-site

   and a phase be
   ---
   apiVersion: airshipit.org/v1alpha1
   kind: Phase
   metadata:
     name: initinfra-ephemeral
     clusterName: ephemeral-cluster
   config:
     executorRef:
       apiVersion: airshipit.org/v1alpha1
       kind: KubernetesApply
       name: kubernetes-apply
   documentEntryPoint: ephemeral/initinfra

   Then the documentEntryPoint for executor will be prepended with
   docEntryPointPrefix and the path to the executor bundle will be
   manifests/site/test-site/ephemeral/initinfra

Change-Id: I29ec14378790d95b66c3ff1fe6120bb200f91a50
Relates-To: #356
2020-10-22 13:29:05 +03:00
Sirajudeen
909d427610 Container build for Templater plugin
Change-Id: I53384561517070a0dca901ee263a5c1a1e55dffa
Relates-To: #341
2020-10-22 00:07:24 +00:00
Zuul
6d6d837060 Merge "Deduplicate airshipctl manifest networking" 2020-10-21 23:11:37 +00:00
Ruslan Aliev
0a1bb41e2d Simplify ShowProgress unit test
Due to variable CPU load on zuul site, there is a possibility that
progress bar will dump its intermittent state during ShowProgress
test execution. This patch simplifies a bit assertion logic so only
"Completed" state of progress bar will matter, possible intermittent
output will be omitted from assertion.

Change-Id: I5369bf57752df928c0bd9f223cfaa17f8f0b0018
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-21 17:34:13 -05:00
Zuul
46a0a79066 Merge "Uplift cli-utils from 0.18.1 to 0.20.6" 2020-10-21 22:10:27 +00:00
Matt McEuen
910d296f6b Deduplicate airshipctl manifest networking
Deduplicate networking definitions inside of airshipctl functions,
and make the values driveable via a catalogue.

Changes:
* Removed BMO patches at site level; drive through catalogue instead.
* Added separate entrypoints for ephemeral & target site-level.
  catalogue/networking overrides. Ephemeral's kustomizes target's.
* Generalized the commonHostNetworking catalogue into a section in the
  overall networking catalogue.
* Cleaned up catalogue use in general.
* Got rid of some ill-formed Type-level phase definition.
  We should go back soon and define proper Type-level phases.

Change-Id: Iff96ccdcf7ebde4ae55e2b1a9d25dd1cdca0d2c8
Relates-To: https://github.com/airshipit/airshipctl/issues/315
2020-10-21 16:26:10 -05:00
Zuul
113628336f Merge "Proxy config for control plane" 2020-10-21 18:37:35 +00:00
Sirajudeen
afe9121169 Uplift cli-utils from 0.18.1 to 0.20.6
* uplift of cli-utils had changes with signature of Applier.
  So had to update the impacted go code and cleanup the
  unwanted parameters.

Change-Id: I6f3018d1fd4cac2e1a328e50c44ad0f51bb0e16f
Closes: #367
2020-10-21 18:15:03 +00:00
Matt McEuen
f164c97e6a Increase doc validation job timeout
This increases the timeout of the document validation job from
30min (default) to 60min.  This is required because of the recent
addition of provider-specific site definitions; since a kind cluster
is set up / torn down for each site definition, it can take longer
than a half hour when running on slower open infra VMs.

Change-Id: I23e7201365058d96ccdc07e310c3c921daf952a7
2020-10-21 09:29:46 -05:00
Zuul
37ce87edfb Merge "Add timestamp for events" 2020-10-21 11:28:53 +00:00
Stanislav Egorov
71f04ed976 Proxy config for control plane
Along with the change to support proxy configuration for control plane
there is a change for replacement transformer to support arrays of strings.

The current implementation of cloud-init configuration for the control plane
based on KubeadmControlPlane object and uses an array of strings for commands.

Change-Id: Id0a49cc1a0fdbc392c7c7a56859b21737065b0d6
2020-10-20 21:38:18 -07:00
Zuul
d812b6c165 Merge "Introduce Replacement Transformer plugin container" 2020-10-19 18:51:49 +00:00
Zuul
ab6d9ed311 Merge "Support rotation of svc account tokens" 2020-10-19 15:41:32 +00:00
Vladislav Kuzmin
f9f8c43e8a Add timestamp for events
Relates-To: #339
Change-Id: Iec939e167b6ae3c72aa31e102407d0fffc370766
2020-10-19 18:04:57 +04:00
Guhan Eswaran
b7dd46c4e6 Support rotation of svc account tokens
This patchset introduces airshipctl command
- airshipctl cluster rotate-sa-token which basically rotates SA tokens

Previous work: https://review.opendev.org/#/c/749470/

Change-Id: Ibe932fa8d2831979e5b2ac2781f746e8ec2fdc3c
2020-10-19 07:06:58 +00:00
Ruslan Aliev
0c870e5244 Remove clustertype-related functions
We don't use clustertype anymore, so all the related functions must
be deleted or adjusted as well as appropriate config fields.

Change-Id: I3931fdc71d4318e916f8bbc2d94e062c9df5f641
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #349
2020-10-16 11:31:58 -05:00
Zuul
23224e57c5 Merge "Phase docs are targetPath + phaseRepo + phase.DocumentEntrypoint" 2020-10-16 15:02:04 +00:00
Dmitry Ukov
d783d71f05 Introduce Replacement Transformer plugin container
Relates-To: #341
Change-Id: I65a5b8cf3bcf94321fc02f240b1d8075bca45c0c
2020-10-16 16:00:56 +04:00
Vladimir Kozhukalov
dc68640389 Phase docs are targetPath + phaseRepo + phase.DocumentEntrypoint
Change-Id: I1d5ea75d1c19eb4ebaf37b28918ccde771bcef85
Relates-To: #356
2020-10-15 13:55:59 +03:00
Matt McEuen
d5ec4ecbd2 Refactor kustomization of env vars
This tweaks the generation of the env-vars catalogue to be done in
the airshipctl-catalogues function itself, resulting in a vanilla
catalogue that can be imported as a resource across the phases that
need it.

Change-Id: I40fe9369ad2d5f4b58123f67ac90511db6a2fd12
2020-10-14 17:43:44 -05:00
Zuul
d9206c2121 Merge "Enable voting of gate tests" 2020-10-14 20:17:32 +00:00
Zuul
6390d90617 Merge "Add additional versions replacements" 2020-10-14 18:48:56 +00:00
Zuul
f681da04f2 Merge "Add RAID to example hardwareprofile" 2020-10-14 14:53:01 +00:00
Ruslan Aliev
a6363f1c1e Run image build command like a phase
We perform almost the same activities prior calling createBootstrapIso
function like we do that in phase executor, also image build command
now is techically outdated since it doesn't work because it fails with
"phase document was not found" error. This patch removes unnecessary
functions like GenerateBootstrapIso and runs image build command in
a phase way. Test coverage increases slightly (by 0.2%) by removing
partially duplicating code which was not tested properly. Minor bug
fixes included.

Change-Id: I545004cea721164838b296ae647a7651cde248ff
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-13 17:48:55 -05:00
Kostiantyn Kalynovskyi
81de5ee252 Enable voting of gate tests
Opendev infra 16G flavors are much more stable now and we can
enable this test again.

Change-Id: Ie6b5a97030b89e3235814e9cae8bb238b02087ce
2020-10-13 16:32:03 -05:00
Zuul
f92e8bd042 Merge "Replace PrimaryRepositoryName with PhaseRepositoryName" 2020-10-13 20:50:53 +00:00
Zuul
0f799cc0df Merge "Integrate gcp provider (capg) with airshipctl" 2020-10-13 20:03:16 +00:00
Zuul
2b7ace99ff Merge "Migrate Replacement Transformer plugin" 2020-10-13 18:39:48 +00:00
Zuul
41bf225d3b Merge "Remove clusterctl install from gate script" 2020-10-13 17:38:40 +00:00
Rishabh Kumar Jain
219b29f1a6 Integrate gcp provider (capg) with airshipctl
* add documentation for gcp provider (capg)
  * add manifests for gcp provider (capg)
  * add cluster templates for control plane and workers
  * add site definition to use gcp provider (capg) with
    control plane and workers

Zuul Gate Scripts: https://review.opendev.org/#/c/749165/
Change-Id: I3ea07fcafe49fc2698d9d961222550c45b40cd66
2020-10-13 17:34:33 +00:00
Zuul
cb8be36fdb Merge "Implement JSON path filter for kyaml.RNode" 2020-10-13 17:22:26 +00:00
Dmitry Ukov
ca1a3a2d0b Migrate Replacement Transformer plugin
Plugin extended to support new kustomize plugin framework which
consider each plugin as a container

Change-Id: If55b7093f711401165b7d4fd3f5b1059fde464ff
Relates-To: #340
2020-10-13 20:43:55 +04:00
Sirajudeen
8307148482 Remove clusterctl install from gate script
* clusterctl commands are driven through phase run.
  So removing install clusterctl CLI utility from gate
  script

Change-Id: I1c57aa07a9e19495c94c3080d0ce40dfc0e5dd47
2020-10-13 15:11:59 +00:00
Kostiantyn Kalynovskyi
7095d09de2 Fix kubeconfig flag to be passed to executor
Change-Id: I6e9951785158cecfb952255426d8b5bb40be37ea
Closes: #366
Relates-To: #366
2020-10-13 01:07:49 +00:00
Zuul
03a1e28964 Merge "Fix workload ingress controller" 2020-10-12 21:56:15 +00:00
Zuul
1e6675a941 Merge "Fix shell syntax causing gates to silently fail" 2020-10-12 21:56:04 +00:00
Kostiantyn Kalynovskyi
3964487ced Fix workload ingress controller
Change-Id: Ibcb0678400530157f911751a2cf7c0f35b21fb55
2020-10-12 13:05:29 -05:00
Vladimir Kozhukalov
0dc4ab7491 Replace PrimaryRepositoryName with PhaseRepositoryName
Change-Id: I2276a3b3ea50b8e81dd240815cd00a0a2a2af96e
Relates-To: #356
2020-10-12 15:28:27 +03:00
Zuul
3866d358b8 Merge "Integrate openstack provider(capo) with airshipctl" 2020-10-09 21:47:44 +00:00
Zuul
ce3d3b3242 Merge "Make document validatation job non voting" 2020-10-09 14:48:24 +00:00
Zuul
9ab8452a8e Merge "Add documentation for example hardwareprofile" 2020-10-09 14:11:15 +00:00
Zuul
a22c8623c1 Merge "hostgenerator-m3: make profile optional" 2020-10-09 14:05:36 +00:00
Matt McEuen
128a2e5e3f Add additional versions replacements
This adds catalogue-based version replacement to the following
functions, which were added since version replacement was
introduced:
- calico (consumed via the infra composite)
- helm-operator
- hwcc (not actually used in any site definitions yet)

Change-Id: If4d6b9f64d7f170ddf0d79455cfd3cfce260f128
2020-10-08 14:58:48 -05:00
Roman Gorshunov
585a75acf3 Fix shell syntax causing gates to silently fail
Fix shell syntax causing gates to silently fail with error
  ./tools/deployment/35_deploy_workload.sh:
  line 33: 404: command not found

Change-Id: Id49dde7e7c50f6596359e5ec7b6643401797ac9a
2020-10-08 14:18:09 +00:00
Zuul
76e4d3f48c Merge "Remove kubeconfig from config struct" 2020-10-07 21:57:49 +00:00
Zuul
8d68515118 Merge "Use proxy settings from env vars" 2020-10-07 19:46:48 +00:00
Ruslan Aliev
fc33287204 Remove kubeconfig from config struct
Change-Id: I5ab8722dd151d9e652e0b20e1d82988cd98505af
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-07 14:35:07 -05:00