1121 Commits

Author SHA1 Message Date
Sean Eagan
eb40a5700f Add gating for helm release management
This adds gating for helm release management by including a minimal
example workload phase which consists of a HelmRelease for the nginx
ingress controller and a corresponding deployment script including
supporting validation logic.

Change-Id: Ia21a799030289c7e40a0e61292578987ea0f6c63
Relates-To: #351
2020-09-23 14:59:24 +00:00
Ruslan Aliev
2f5402ae80 Remove phase apply command
Command phase run will be used instead, so phase apply became no
longer needed.

Change-Id: I8bdbd6bcad7efbb03632978d8952700fc39d55ba
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-23 01:42:16 -05:00
Ruslan Aliev
0c736af2e8 Implement render methods
Change-Id: I03b7aad33576eaa9ef7dfaabfb579ac90cc26a12
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-23 03:06:51 +00:00
Zuul
0bdbd690db Merge "Fix typos" 2020-09-23 02:59:18 +00:00
Kostiantyn Kalynovskyi
2b30dd0d71 Stop using CurrentContextEntryPoint in remote pkg
Note this commit doesn't refactor remote package, it is only created
to shift from using CurrentContextEntryPoint function, which would
in turn allow us to refactor config package and get rid of cluster
types in airship config.

Relates-To: #349
Relates-To: #246
Relates-To: #265

Change-Id: I1c941c8ade3497b9911fb126465aa85c25567431
2020-09-22 12:29:37 -05:00
Kostiantyn Kalynovskyi
1eba48d8cd Adding bootstrap phase
Change-Id: I76a5fd0d724ddb7f2e3467f0807d6c312b1c836b
2020-09-22 00:18:13 +00:00
Kostiantyn Kalynovskyi
fc72884676 Fix clusterctl, IsoGen executors to emit proper events
Change-Id: Ib69d9c85f7d27b83726f925d5a802c8e950c3a86
2020-09-21 13:57:26 -05:00
Ruslan Aliev
2e85043c20 Fix typos
Change-Id: I0ce87ec00d2b5974cf861d9c9685f23d7d0f5fc1
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-21 02:49:33 -05:00
Vladislav Kuzmin
27e0ab455c Add isogen executor
Relates-To: #344
Change-Id: I1b9b04f1f723d8df6d6aad63b64a917566b22176
2020-09-18 13:49:01 +04:00
Zuul
1660efc231 Merge "Add label to Dockerfile" 2020-09-17 13:25:06 +00:00
Ruslan Aliev
5d52339bd6 Remove clusters, users, reconcilation and config import
All of these entities are no longer required and should be deleted.

Change-Id: Id4776efe668265df6961a38ce984b8ac37b27097
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #327
2020-09-16 18:35:12 -05:00
Zuul
d87eea6544 Merge "Adding commands to get and set encryption configs" 2020-09-16 22:47:59 +00:00
Zuul
35878ac83a Merge "Adding encryption config to airshipctl config" 2020-09-16 22:47:57 +00:00
Ruslan Aliev
4aed3a135e Add label to Dockerfile
Change-Id: I71fcbc0ac52280544b0511e94215947ac162dfb0
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-16 17:00:11 -05:00
Zuul
5643084218 Merge "Switch to using phase documents" 2020-09-16 21:03:24 +00:00
Kostiantyn Kalynovskyi
f4baf5a971 Switch to using phase documents
This commit allows to stop using phases with hardcoded paths to
kustomize entrypoints. Instead we use phase documents defined
in bundles. Phase document has a reference to executor such as
kubernetes apply and clusterctl init. More executors are being
developed

Relates-To: #342

Change-Id: I8babd9d0379763773c443e263373e9816f9dbd39
2020-09-16 11:17:41 -05:00
uday.ruddarraju
694067492c Adding commands to get and set encryption configs
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153

This is the second of multiple patchsets to support
encryption and decryption in airshipctl

Complete feature: https://review.opendev.org/#/c/742695/

Depends-On: https://review.opendev.org/#/c/749892/
Change-Id: I1a0553622049366977af8c2efbec12012a6fa641
2020-09-16 15:58:16 +00:00
Zuul
d799095d4e Merge "Update the Helm Operator to v1.2.0" 2020-09-16 14:57:03 +00:00
Zuul
c9be1643b5 Merge "Prepare gate to remove airshipctl import" 2020-09-15 22:48:07 +00:00
Zuul
fd4bd1beb9 Merge "Enhance cleanup script" 2020-09-15 21:36:49 +00:00
uday.ruddarraju
f328c43295 Adding encryption config to airshipctl config
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153

This patchset comprises of:
- airship config now supports encryption configs to store encryption and decryption keys
from local file system or the kubernetes api server that will be used to encrypt
and decrypt secrets in a future patchset

This is the first of multiple patchsets to support encryption and decryption in airshipctl

Complete feature: https://review.opendev.org/#/c/742695/

Change-Id: I195e8e254b7cc6b3e04e45d67e0a0e3797183816
2020-09-15 14:11:04 -07:00
Zuul
3601c2b59c Merge "Cleanup phase package" 2020-09-15 20:23:36 +00:00
Sirajudeen
196150649a Prepare gate to remove airshipctl import
* Inject target-cluster-ca as sceret
* Create kubeconfig using gate scripts with both ephemeral and
  target clusters.
* With both contexts predefined in kubeconfig,
  just switch/use context in gate scripts as required.
* Removed the use of airshipctl import from gate script

Change-Id: I5a9a56db71f0a80d9b35144eacbdd980c13c9ffb
Relates-To: #329
Closes: #329
2020-09-15 15:22:27 -05:00
Zuul
21e6bf7985 Merge "Use cluster name as context in executors" 2020-09-15 19:35:44 +00:00
Zuul
2266d0e0b3 Merge "Add DEBIAN_FRONTEND=noninteractive to setup script" 2020-09-15 18:45:37 +00:00
Kostiantyn Kalynovskyi
285130106a Use cluster name as context in executors
Change-Id: I4fcf524dd2ff466290b80df7d966f90aa0409471
Relates-To: #342
2020-09-15 12:29:16 -05:00
Kostiantyn Kalynovskyi
b63c9e3888 Cleanup phase package
Change-Id: Ib849da5faa2f69f058bd9df814b55e117ecefb8a
Relates-To: #342
2020-09-15 17:27:40 +00:00
Zuul
40fd9eeadd Merge "Implement clusterctl move executor" 2020-09-15 17:27:23 +00:00
Sreejith Punnapuzha
87d9738bb7 Enhance cleanup script
* add steps to clean iso and network for gates

Change-Id: I7ffc62cac9690e524c559af554ff6d1a70683368
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
2020-09-15 15:14:42 +00:00
Zuul
c176e78979 Merge "Allow substring replacement of numerics" 2020-09-15 14:01:12 +00:00
Kostiantyn Kalynovskyi
6114d5895f Implement clusterctl move executor
Change-Id: Ibb3aea6ead51409b9cbd69cc02e685d3fce186a4
Relates-To: #342
2020-09-15 08:57:25 -05:00
Zuul
53c96ea413 Merge "Make clean script executable" 2020-09-15 12:29:37 +00:00
Zuul
06029bc1bc Merge "Allow do gather pod logs for different clusters" 2020-09-14 22:34:36 +00:00
Zuul
edd35f2aaa Merge "Uplift provider components in test site" 2020-09-14 22:34:35 +00:00
Zuul
7b03d837ba Merge "upgrade cabpk to v0.3.7" 2020-09-14 22:34:30 +00:00
Zuul
eb4a1e3832 Merge "Upgrade capi to v0.3.7 and capm3 to v0.3.2" 2020-09-14 22:22:14 +00:00
Stanislav Egorov
78ec01a1f2 Make clean script executable
Change-Id: Iafbdc12b29139ec73509bdd658ad57f8e77e260b
2020-09-14 14:56:27 -07:00
Matt McEuen
9997e7427e Allow substring replacement of numerics
This change adds the ability to use substring substitution to inject
numeric source values into string targets.  This is required for our
networking catalogue, since a numeric k8s API port needs to be inserted into
numeric and (sub)string targets in different phases.

Co-Authored-By: Ian Howell <ian.howell0@gmail.com>
Change-Id: I24beb46a2bda4e118406129a0a922b0c56142c76
2020-09-14 16:03:51 -05:00
Sreejith Punnapuzha
f48456a69f Uplift provider components in test site
* uplift capi, cabpk, cacpk and capm3 in test site defination
  * uplift images in version catalogue
  * add api timeout in controlplane
  * add timeout for phases

Change-Id: I9de15c4e1979c12eeedb55fbe721b5e7adfe496b
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-14 20:00:11 +00:00
Sreejith Punnapuzha
cf1f55f3ca upgrade cabpk to v0.3.7
* upgrade cabpk to v0.3.7

Change-Id: Ib6343048eccc95e4b941cf83103cc763b866c687
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-14 19:58:12 +00:00
Zuul
5627d47074 Merge "Switch phase commands to use refactored command objects" 2020-09-14 19:57:24 +00:00
Zuul
dca6eb81ae Merge "Add phase command objects" 2020-09-14 19:57:23 +00:00
Sirajudeen
4e63c1dda2 Upgrade capi to v0.3.7 and capm3 to v0.3.2
* Added v0.3.7 version of capi
* Added v0.3.7 version of cacpk
* Added v0.3.2 version of camp4

Change-Id: I7b574ef8277192be8e5162384287e9e9ec211a1e
2020-09-14 19:56:47 +00:00
Zuul
f3af1b8066 Merge "Add catalogue-driven CAPI container versions" 2020-09-14 19:37:09 +00:00
Zuul
567e5060db Merge "Use Helper in clusterctl and kube apply executors" 2020-09-14 18:49:22 +00:00
Matt McEuen
70ec47096c Add catalogue-driven CAPI container versions
This allows for container locations and versions for the CAPI functions
to be (optionally) driven by the `versions-airshipctl` versions
catalogue.  In addition, this moves the clusterctl config from the site
level to become its own function, which can be further refined
(e.g. for public cloud providers) via inheriting functions, composites,
types, etc.

Change-Id: Ic2b02e256419ee8536f5237327cce2754fd0abff
Closes: https://github.com/airshipit/airshipctl/issues/316
2020-09-14 18:01:06 +00:00
Zuul
4f6b5252c2 Merge "Add node availability check for deploy initinfra script" 2020-09-14 18:00:45 +00:00
Kostiantyn Kalynovskyi
5c6709478b Switch phase commands to use refactored command objects
Change-Id: I1f9f1620d6e0d3ac836e0189f403b7f794818d53
Relates-To: #342
2020-09-12 15:21:30 +00:00
Kostiantyn Kalynovskyi
c46cdebe48 Add phase command objects
Commit adds phase command object that allow easy calls from cmd
package.

Change-Id: I23a9ab3755dbe366ad9b7ce163f75f64f48148cd
2020-09-12 15:21:12 +00:00
Kostiantyn Kalynovskyi
410f9c4fd7 Use Helper in clusterctl and kube apply executors
Relates-To: #342

Change-Id: I6f3f9b5aac3877f5738f0ec077c65bcf5acfc54d
2020-09-12 15:21:04 +00:00