1320 Commits

Author SHA1 Message Date
Zuul
084ed45ef3 Merge "Adds command objects for cluster check-certificate-expiration" 2020-11-11 10:09:30 +00:00
Zuul
9c9369088c Merge "Change image tags" 2020-11-11 05:57:40 +00:00
Zuul
f6ed45adfd Merge "docker-test-site for docker provider (capd)" 2020-11-11 02:47:30 +00:00
Zuul
3e17bbf439 Merge "CI: run gate runner only on request and on merge" 2020-11-10 22:30:58 +00:00
Rishabh Kumar Jain
a3aeb6cd00 docker-test-site for docker provider (capd)
*  adjust docker-test-site to execute the
below phases with docker provider

         clusterctl-init-ephemeral
         controlplane-ephemeral
         clusterctl-init-target
         clusterctl-move
         workers-target

Change-Id: I781189d9e1689237f8736e6d64a73014aed5b3c3
2020-11-10 21:43:37 +00:00
Sreejith Punnapuzha
c2e5cb13f2 Change image tags
* Change templater image tag from dev to latest
  * Change replacement-transformer image tag from dev to latest
  * Change Makefile to build images with tag latest

Change-Id: Iff074d6fe771cce48dae7190fbc69cc437138817
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-11-10 12:23:25 -06:00
Zuul
553423aad4 Merge "Update proxy guide" 2020-11-10 16:19:07 +00:00
Roman Gorshunov
5b862d81c3 CI: run gate runner only on request and on merge
The airshipctl gate runner consumes 16GB RAM VM node. Currently we have
insufficient compute capacity to run it on every patch set change.

This patch set makes gate runner run only on request and on Zuul gate
(pre-merge) to reduce workload imposed onto community CI.

Request to run airshipctl gate runner is a comment
"check experimental"
left to a patch set in Gerrit.

Change-Id: I5cb2a80b5cdc9dd025249e313d29eab62cbb3446
2020-11-10 14:07:00 +01:00
Zuul
d90453a46b Merge "[#376] Add clusterapi name and namespaces to clustermap" 2020-11-10 01:41:15 +00:00
Drew Walters
a0f10f05d4 Update proxy guide
This change updates the proxy guide to work with the latest airshipctl
proxy implementation [0]. Whereas users previously needed to modify YAML
documents to use Airship behind a proxy server, users now only need
environment variables.

Additionally, this change includes instructions for using custom DNS
nameservers.

[0] ed1619d336

Change-Id: Ib03293c4f4fa58df60fb48ab8a76227a48ea6fbe
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-11-09 22:04:22 +00:00
Zuul
788d846b01 Merge "Introducing subcommand cluster check-certificate-expiration" 2020-11-09 21:52:39 +00:00
bijayasharma
dfd82242d7 [#376] Add clusterapi name and namespaces to clustermap
This commit will add clusterapi name and namespaces with a given cluster
to a clustermap.

Refer code from this PS: https://review.opendev.org/#/c/759805/

Change-Id: I1937efa0bbf0b5b175d18777fdf4ba837d1d7344
Relates-To: #376
Closes: #376
2020-11-09 21:11:04 +00:00
Zuul
c99ccb6f7b Merge "Fix Version Catalogue replacement for Clusterctl" 2020-11-09 18:50:49 +00:00
Sidney Shiba
f4e532e91a Extending Container interface and package
Adding the following method to the interface and implementation for
docker container:
- InspectContainer() - used to determine container status

Change-Id: I4a8096f4f5addad31daa5038a30b1ffcf1d424e9
2020-11-08 13:55:35 +00:00
Sirajudeen
a360ebf9da Check if commit is linked to github issue
* Non-Voting gate to check if commit is linked to github issue

Change-Id: I8a4ea350382f8f2ed58ce49d52f1386d9c0d9c92
Closes: #387
2020-11-06 18:45:34 +00:00
Sirajudeen
f259bc8a62 Fix the lint job name in azure gate runner
* Recently the lint and test jobs are separated
* update the reference to lint and test job names
  marked as dependency for azure gate runner

Change-Id: I9bf495143b14d248c54c20e4814ac236b167eba1
2020-11-06 18:44:25 +00:00
Zuul
d3360a9451 Merge "Add helm-controller and source-controller" 2020-11-06 18:16:40 +00:00
Zuul
a4d7410830 Merge "Separate lint job from the test" 2020-11-06 18:16:39 +00:00
guhaneswaran20
dd03db0916 Adds command objects for cluster check-certificate-expiration
Reference:- https://hackmd.io/aGaz7YXSSHybGcyol8vYEw
Previous work:- https://review.opendev.org/#/c/755291/

Below is the complete ordered flow of PS for the feature:
https://review.opendev.org/#/c/760498/ - Cobra command
https://review.opendev.org/#/c/760501/ - Command Objects
https://review.opendev.org/#/c/760504/ - TLS check
https://review.opendev.org/#/c/760517/ - Kubeconf check
https://review.opendev.org/#/c/760532/ - Node check
https://review.opendev.org/#/c/760537/ - Combined Unit tests

Change-Id: Ie0fac7799724b7fb2255e387b7e90b26159bda5c
Relates-To: #391
2020-11-06 13:14:21 +00:00
Sean Eagan
2ba6561854 Add helm-controller and source-controller
This adds functions for the helm-controller and source-controller from
Flux v2 [0]. The helm-controller depends on the source-controller and
so this includes a composite to wrap both. These components replace the
Helm Operator, which is now removed from the gating setup. The Helm Operator
function itself will be removed after a suitable migration period.

This also adds a format for Helm chart and Helm repository sourcing
to the versions catalog.

[0]: https://fluxcd.github.io/flux2

Closes: #372

Change-Id: I7287f1bb5b1ebd1dba9920cc0bed8c867720b4c1
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2020-11-06 09:52:16 +00:00
Zuul
9bf8802efd Merge "Skip azure gate runner on irrelevant files" 2020-11-06 06:54:53 +00:00
guhaneswaran20
260d6905a4 Introducing subcommand cluster check-certificate-expiration
This command runs through the cluster and reports expirable
entities

Reference:- https://hackmd.io/aGaz7YXSSHybGcyol8vYEw
Previous work:- https://review.opendev.org/#/c/755291/

Below is the complete ordered flow of PS for the feature:
https://review.opendev.org/#/c/760498/ - Cobra command
https://review.opendev.org/#/c/760501/ - Command Objects
https://review.opendev.org/#/c/760504/ - TLS check
https://review.opendev.org/#/c/760517/ - Kubeconf check
https://review.opendev.org/#/c/760532/ - Node check
https://review.opendev.org/#/c/760537/ - Combined Unit tests

Change-Id: I7e20a6d3821877e16a5bc2cb8de3dd3c8b7850e2
Relates-To: #391
2020-11-06 05:28:47 +00:00
Zuul
eebd884b66 Merge "Kubeconfig should be site specific" 2020-11-06 02:40:27 +00:00
Zuul
ee120fde74 Merge "Adding Bootstrap Event" 2020-11-06 00:01:01 +00:00
Matt McEuen
4810509fa3 Fix Version Catalogue replacement for Clusterctl
A previous patchset was intended to accomplish a two-part substitution of
container versions into CAPI components, to work around assumptions held
by clusterctl:
(versions catalogue) --[ReplacementTransformer]--> (Clusterctl YAML)
... then
(Clusterctl YAML) --[clusterctl library]--> (CAPI manifests)

However, only the second leg (the hard part) worked right; the first part
had gaps which are fixed by this change.

This also adds the CAPD container definitions to the Clusterctl variables.

Change-Id: Ifaca46f6dd3b87c28753cd49b52e62556ead52bd
Closes: https://github.com/airshipit/airshipctl/issues/389
2020-11-05 16:41:12 -06:00
Sirajudeen
c0f116a68c Separate lint job from the test
* Split lint and test jobs
* Add lint job to be run against all files

Change-Id: I74da7999324283984d61f38ae9fb394ee5b37ce6
Closes: #386
2020-11-05 22:35:32 +00:00
Zuul
0c2edba495 Merge "Revert "Encrypt and decrypt using sops"" 2020-11-05 22:32:28 +00:00
Zuul
046a1fc291 Merge "BootConfiguration struct for Bootstrap Container" 2020-11-05 19:52:29 +00:00
Alexander Hughes
2e92614239 Skip azure gate runner on irrelevant files
Change-Id: I693d78a2f400b45c6095c039c3a91e7c3d9fb4c8
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2020-11-05 14:26:23 +00:00
Sirisha Gopigiri
f705ff0000 Revert "Encrypt and decrypt using sops"
This reverts commit 9a608de653ffe1ce8f60b5f16249e2152b3522ad.

Requesting revert because of the sops+gpg testcase failure issues. The failed testcases are impacting airship-airshipctl-lint-unit zuul gate.

For more details please refer to https://github.com/airshipit/airshipctl/issues/378

Change-Id: I60f6b5daaeebc038b68556c60413b3d0c6db6d68
2020-11-05 13:53:15 +00:00
Vladimir Kozhukalov
64e7694ebb Kubeconfig should be site specific
* Move kubeconfig from manifests/phases to the manifests/site
   directory.
 * Create site specific phases entry point that inherits
   global phases bundle

Change-Id: I0f2893928221760e46a05630de051dd4c46c7448
Relates-To: #356
2020-11-05 13:07:23 +03:00
Michael Beaver
193dc935f1 Refactor subPath out of config manifests
This change removes the SubPath entry portion of the config manifests, and
refactors several areas that used it. This also updates unit tests to
reflect the new changes.

Closes: #255

Change-Id: Ibbb519a3f1fb28a1594e971274c5de54b99c867e
2020-11-04 09:30:03 -06:00
Zuul
c86bbeaed9 Merge "Fix capo documentation" 2020-11-03 22:02:11 +00:00
Zuul
fb7e660343 Merge "Add phases for capo provider" 2020-11-03 17:57:54 +00:00
Zuul
931800e43f Merge "change target cluster name (capd)" 2020-11-03 01:56:31 +00:00
Zuul
e4d11bbc2f Merge "Add support for custom kubeconfig contexts" 2020-11-03 01:56:30 +00:00
Zuul
c1bf33865b Merge "Change target cluster name for capo" 2020-11-03 00:15:47 +00:00
Rishabh Kumar Jain
012a4f27de change target cluster name (capd)
Change target cluster name for capd
provider from "dtc" to "target-cluster"

target cluster name changed at below entrypoints:

  - manifests/function/k8scontrol-capd
  - manifests/function/workers-capd
  - manifests/site/docker-test-site

Change-Id: I72adeaf80a0d098d18e4334b02511d9917fe77b2
2020-11-02 20:14:40 +00:00
Zuul
6a4e23b6a8 Merge "Extend clusterctl client interface with GetKubeconfig function" 2020-11-02 19:00:34 +00:00
Kostiantyn Kalynovskyi
8567ddf749 Add support for custom kubeconfig contexts
This commit extends cluster map interface to be able to specify
a custom kubeconfig context per cluster in ClusterMap

Related-To: #380
Related-To: #375
Closes: #380

Change-Id: I9a8a26e3a3666e069c243e871f89ae9222228f17
2020-11-02 15:33:02 +00:00
Vladislav Kuzmin
cb5849d024 Fix trailing whitespace
Relates-To: #360

Change-Id: I4043baff899b335b520b81bf349f4a9b5ef8e527
2020-11-02 13:17:16 +00:00
Zuul
2257655556 Merge "Phase documentation part #1" 2020-11-02 10:39:40 +00:00
Zuul
76e937eede Merge "Adding decoding and encoding feature to Replacement Transformer" 2020-10-30 22:24:07 +00:00
Sidney Shiba
e528a89a73 BootConfiguration struct for Bootstrap Container
Adding BootConfiguration structure in preparation for the implementation
of Bootstrap Container / Ephemeral Cluster through "phase/executor".

Change-Id: I0239e9c975784703dd6abacbb17b5e15744f3924
2020-10-30 14:28:49 -05:00
Kostiantyn Kalynovskyi
6059f429e2 Phase documentation part #1
Add phase execution engine scaffolding to documentation.

Also add general architecture of phases, and brief description of
what phases, executors and bundles are.

Next commits will fill in the placeholders and topics in the
documentation, such as metadata and phase plan.

Relates-To: #360

Change-Id: Icac00b046cf50d18a71ca69ef9ecbb8be612f9ab
2020-10-30 12:24:05 -05:00
Ratnopam Chakrabarti
05429073d1 Add phases for capo provider
Added support for phases

Change-Id: Ic567d59748df9015dd37e33e3139bd3e6905670c
2020-10-30 14:30:03 +00:00
Ratnopam Chakrabarti
646006986b Change target cluster name for capo
Change target cluster name for capo
provider from "ostgt" to "target-cluster"

target cluster name was changed at below entrypoints:

  - manifests/function/k8scontrol-capo
  - manifests/function/workers-capo
  - manifests/site/openstack-test-site

Change-Id: I36f115e4a5debfc9c0f7e47705c87de29cf14d80
2020-10-30 14:06:33 +00:00
Zuul
cd418a64dc Merge "Enable gate runner job during gating" 2020-10-30 13:57:57 +00:00
Sirajudeen
8be1f1f6c2 CAPD specific metadata
* Created metadata specific to CAPD inheriting
  the global phases.

Change-Id: Ib3487f91a9385cc4c47012aac44d3f3253d541e5
2020-10-29 21:52:50 +00:00
Sirajudeen
7e79ef8fe0 Align CAPD to use catalogue-driven versions
* Update CAPD manifest to inherit the clusterctl from
  functions and patch just the difference which is the
  infrastructure providers.

Change-Id: I0702aa6127531792df17b5ff69a2dba2242d79ac
2020-10-29 13:52:04 +00:00