9 Commits

Author SHA1 Message Date
Sirajudeen
b266e18fd4 Image override for cert-manager components
* Images added to clusterctl object like Providers
  So that repository and tag for one or all of the cert-manager
  components can be overriden using patch/replacement

clusterctl Documentation for Image Override:
  https://cluster-api.sigs.k8s.io/clusterctl/configuration.html#image-overrides

Change-Id: Id9de8d1967e49aeb3293f6802e51d66d598333ae
Closes: #350
2020-11-12 17:12:23 +00:00
Kostiantyn Kalynovskyi
8b86f156b0 Uplift cluster-api go package to 0.3.10
This commit uplifts cluster-api go package to 0.3.10
In new version we are now allowed to skip var subsitution completely
that is why TestAdditionalVariableSubstitutionRepoClient is changed
to relfect that.

Also some of the cluster-api constructor functions has been changed,
and we are changing our factory injection methods as well.

Change-Id: I24aa849271eb7109eb4f7d53a352ea3bb20a21a5
2020-10-05 12:21:17 -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
Kostiantyn Kalynovskyi
a4107e7f1d Allow to use variable substitution for cluster-api components
There are 2 ways to define variables for substitution:

1) Define them as Environment variables and set EnvVars: true
in clusterctl object

2) Define them in additional-vars map in clusterctl object

Also adds possibility not to substitute variables if they are not defined in
in additional-vars or in environment for specific provider. But be aware,
if these variables are defined they will be substituted even if
variable-substitution: true

Change-Id: I0c92b3c37ac7b2e7c48c1033c074baef48f752a7
Relates-To: #284
2020-07-22 19:09:22 -05:00
Dmitry Ukov
efec7ec5e1 Move clusterctl api structs to gloabal api module
Change-Id: I4cd707d286ddac7cdc4aadc66b8257e413e231aa
Closes: #269
2020-06-08 21:08:08 +04:00
Kostiantyn Kalynovskyi
5f920fe9be Skip variables substitution in clusterctl integration
This commit overrides default components interface behavior by
allowing to inject SkipVariables parameter, see L#37 at components_client.go.

To do this, we pass new Repository Client interface which is built on top
of the clusterctl implementation with one simple injection of SkipVariables
Please see related issue for more details

Relates-To: #201
Closes: #201

Change-Id: If068caa8308e39c9ee23d07f189bad26be04d5cf
2020-05-06 18:13:45 +00:00
Kostiantyn Kalynovskyi
391525a165 Add reader interface
With this implementation reader is an in memory interface that allows
to build clusterctl config based airshipctl documents

Relates-To: #200
Closes: #200

Change-Id: If4a5fbd5c8402c958563cdfc939fc579289b0bfb
2020-05-06 13:13:29 -05:00
Kostiantyn Kalynovskyi
1969866b0a Add metadata support for clusterctl repository implementation
Change-Id: Ie9285cbba0fb590392b975be1eb2b02b28de56d1
2020-04-29 13:45:54 -05:00
Kostiantyn Kalynovskyi
0ab9b6d7ea Add impl of Repository interface from cluster-api
Implementation would allow us to build our own cluster-api components
based on airship document bundle.

Relates-To: #170

Change-Id: Ic029fd07ca5221747e49c3cf48e80a3e279ac1f0
2020-04-27 13:44:14 -05:00