airshipctl is using upstream ensure-docker role instead of
docker-install. correcting this in treasuremap
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ideea1d9f641d6abad1d9f7c37698f7c09f778fce
* Align treasuremap virtual-airship-core site to recent changes of
airshipctl
* This PS takes care of only the "airship-core" type and all other
sites will fail validate docs untill the secrets are aligned.
* So the validate_docs is invoked with parameter "virtual-airship-core"
to run document validation just for virtual-airship-core
reference airshipctl commit: e2c56108eef38dd83df52fcfd1fa6844e5376a56
Change-Id: I2e6149951beca570a3cadeecbc05366325c80286
* For zuul jobs respective site_name is set from jobs.yaml,
however when running gate scripts for local deployment we are not using
jobs.yaml and so it defaults to test-site from the config created
using template from airshipctl repo.
Change-Id: I0f4b975f78db4161048eb0621a9cc25933141f63
* With the new directory structure in tools/depoyments there is a
conflict with the airshipctl dependency in treasuremap. So using
the treasuremap specific playbooks for gate runner tasks.
Change-Id: Id64f5b8000cb646d5dd2acc5d1d4179729e2ee4e
* Use patch to re-define the plan definition with required
sequence of phases applicable to the specific type/site instead of
defining a new plan.
* The idea of this change is to have one unique plan for deployment
'deploy-gating' with its own definition per type/site.
RelatesTo: #176
Change-Id: I162883dd2e86b709fbb483b985130e8748d8e557
Uplift airshipctl to version with new phases.
Add phases from zuul job in deploy-airship-core-gating.
Relates-To: #166
Change-Id: I98b605d16940fab2a728e4646e52c7d1ad992c2d
Changed the validate script to read the airship config file for manifest
root, site root, and repo url values. This enables the use case where
the user runs the init_site script and creates their own project and
site folder outside of the treasuremap directory strucuture.
Change-Id: I0eefdc385bffa600f5e942cec14f42ebd392782f
This change restructures the deployment script directory to support
type-specific deployment scripts. As sub-clusters are added, those
scripts will only be relevant to the multi-tenant type. The distinction
between which scripts should be used for each type will prevent
unexpected deployment errors.
Co-authored-by: Drew Walters <andrew.walters@att.com>
Change-Id: Ic14d4536bc9e593ab81c94b5c1dcec063a93ed18
This commit removes assigning labels from deployment scripts. Labeling
will be managed via KubeadmControlPlane templates.
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I17ebd6663663b6e456e9e968a9f1468295c6232c
This is a needed workaround for host config generator from some recent
changes. Only add the workaround to 2.0 branch for the GA release.
The actual fix should go to v2 branch.
Signed-off-by: James Gu <james.gu@att.com>
Change-Id: Ied0d8712fd154e8e7c979a551417a6429c148456
controlplane_target phase is required for multi-node target cluster.
Signed-off-by: James Gu <james.gu@att.com>
Change-Id: I2af1c815588c1ad457b59af8f2f0cb515ba33ce6
Correct the metadatapath for airshipctl config in treasuremap and assign
it to manifest
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I0f36f3cf6452ac38f2a9e9f3d9469e3f65c36357
(cherry picked from commit 0b6375e25a)
Additionally aligned between Treasuremap and Airshipctl to use the same
environment variable name "SITE" for a site name.
Change-Id: Id6405b7074d34bc73d730eea76d9dd6ab7901405
Signed-off-by: James Gu <james.gu@att.com>
This PatchSet adds phases and executor definitions for managing calico v3 network policies
using airshipctl phase run command.
Closes: #119
Change-Id: I7942548720c4b8037b7b0c2de348fe45df73b8f7
Changes to reflect [1] in treasuremap
Fixed issue in /tools/deployment/35_deploy_worker_node.sh
Aligned the tag of replacement pluging everywhere
[1]
https://review.opendev.org/c/airship/airshipctl/+/779829
Relates-To: #125
Change-Id: I24e3228e73714a14d42f28743b20f89d860f950e
* add $ for kubectl command in host variable
* remove controlplane labels as they are added via k8scontrol role
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Idc30a6704504dc151f7da4c6d551d2f8854bdd79
Set the repo url in the generate secret script in the case that
the user's project and site were created outside of the treasuremap
repo.
Signed-off-by: James Gu <james.gu@att.com>
Change-Id: Ie5a80b5df4f0ab33617d72daf75685b06cb2b407
Correct the metadatapath for airshipctl config in treasuremap and assign
it to manifest
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I0f36f3cf6452ac38f2a9e9f3d9469e3f65c36357
kustomize is a useful debug tool when rendering fails
Relates-To: #120
Change-Id: I2b30c32d43df288a0d44df6d8edf0d0ba3b11191
Signed-off-by: James Gu <james.gu@att.com>
- Global policies placed under type/airship-code/network-policies
- site level policies/modifications placed under
<site>/network-policies
Change-Id: Ic8245d3263a867babd29773540175f8646e193e0
Align airship manifest config directory in generate secrets script with
that in test config
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ie33a85cdea60e18599383d1fec8394f3b2255f9d
Additionally aligned between Treasuremap and Airshipctl to use the same
environment variable name "SITE" for a site name.
Change-Id: Id6405b7074d34bc73d730eea76d9dd6ab7901405
Signed-off-by: James Gu <james.gu@att.com>
As part of set-manifest, currently the default directory is getting
added to targetPath field in airshipctl config. This commit adds option
for user to set the target path via environment variable.
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ie88e12059663fca75572d081630746233dbd365c
This change adds a function for deploying banzaicloud/thanos-operator,
a composite which deploys grafana and a thanos querier,
and a phase documents for running this composite in the target cluster
This change includes a couple of thanos operator CRs, located in
function/lma-configs, which can be applied by running the phase
lma-configs
Change-Id: I406b45373b6029b2503e11883bb6aa91ebbac481
Removes the default path of '/tmp/default' from
MANIFEST_ROOT and replaces it with the dirname of the current
(treasuremap) directory.
Closes: #89
Change-Id: Iccf2627cc11567ce1a6065fae8cef53f806a63ea
These scripts allow one to stand up a treasuremap test-site
note: Removing the phase lma-infra-target from script 31, since
it causes a wait to fail later on in the pipeline
Change-Id: I43374a874c110ab32d6158975c50fd4b89693479
This composite deploys the logging and prometheus operators
such that they are ready to collect logs and metrics from a k8s cluster.
The operators can be extended by introducing custom resources, allowing
any application running in the cluster to use these services
Note: Due to [0], this composite cannot be successfully deployed in the
initinfra-target phase, so a separate 'lma-infra' phase is introduced
[0] https://github.com/airshipit/airshipctl/issues/474
Change-Id: Ia20cc7bdaeb2b2f52ba4bcdc8e55a202ef4b0110
* Treasuremap is dependant on airshipctl repo. So pinning the last
good tested version of airshipctl in treasuremap
Change-Id: I6923da9871b946134fbdc285c38bcb8f967aa804
Relates-To: #100
This trues up treasuremap to the airshipctl change below, which changes
configuration (and naming conventions) to match the new image-builder
that can be used for both iso and qcow generation.
https://review.opendev.org/c/airship/airshipctl/+/758782
Change-Id: I821fda77da899af667a22033281f44dd2dd82a31
Closes: 72
This change introduces airshipctl's document pull functionality to the
Treasuremap gate runner job. This enables Treasuremap maintainers to pin
to a version of airshipctl deployment scripts and manifests that are
known to be compatible with Treasuremap's v2 branch.
In order to ensure that the deployment scripts and manifests come from
the same version of airshipctl, this change introduces a playbook that
checks out the referenced version of airhsipctl after it is cloned by
Zuul. It also checks out the known version a second time in the
deployment scripts for operators invoking the scripts in a non-Zuul
environment.
To update the pinned version of Treasuremap using Zuul, change the Zuul
variable airshipctl_ref. To update the pinned version in a non-Zuul
environment, use the environment variable AIRSHIPCTL_REF.
Change-Id: I300f545efcdd024b689a96ee99e502de7fdd1b83
Signed-off-by: Drew Walters <andrew.walters@att.com>