1793 Commits

Author SHA1 Message Date
Ruslan Aliev
395aa537ca Don't fail if docEntryPoint isn't defined for Container exec
Input for this executor could be empty, so we have to handle
ErrDocumentEntrypointNotDefined error more intelligently.

Change-Id: I73e0f770e64cead7dbbbce2af2b7a2ebd323b83b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
Closes: #485
2021-03-23 22:04:40 -05:00
Ruslan Aliev
8bed52b057 Refactor phase related errors
* phase related errors were moved to separate package to prevent
   cycling import error;
 * error duplicates were removed;
 * non-related to package errors were moved to appropriate ones.

Change-Id: If6cfb08c48d356c1517a13157a5fe740dc1635a4
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
2021-03-23 22:04:28 -05:00
Zuul
104d650a36 Merge "Remove obsolete directory in manifests" 2021-03-24 00:46:49 +00:00
Zuul
a6b4eef607 Merge "Enhanced deployment script to support baremetal multi-node" 2021-03-23 20:38:00 +00:00
Zuul
bb37ba1382 Merge "SOPS improvements" 2021-03-23 17:41:00 +00:00
Zuul
dcdeaf9c7d Merge "Fix CAPD deployment" 2021-03-23 17:22:51 +00:00
James Gu
1342ab708f Enhanced deployment script to support baremetal multi-node
Additionally aligned between Treasuremap and Airchipctl to use the same
environemnt variable "SITE" for a site name.

Change-Id: I50494b50691a40efe68996cd11ccede6517b23d6
Signed-off-by: James Gu <james.gu@att.com>
2021-03-23 06:21:31 -07:00
Matthew Fuller
fbdff6c38e Fix Config object permissions
This change fixes a bug where the default file and directory
permissions weren't getting added (if missing) to the Config
object at runtime.

Change-Id: I87ed2f40af9fe079baade67c506a19de427c4e64
2021-03-22 21:18:15 +00:00
Zuul
edd0b84d84 Merge "Move git tag fetching to release notes job" cloud-init-v2.0.0 templater-v2.0.0 replacement-transformer-v2.0.0 cloud-init-v1.0.0 v2.0.0-beta.8 2021-03-22 18:29:38 +00:00
Zuul
81a7849f28 Merge "Increase required disk size to 80GB" 2021-03-22 18:22:36 +00:00
Zuul
853b16997a Merge "Remove defaults from Config object at runtime" 2021-03-22 16:40:09 +00:00
Sean Eagan
4d8c3bbcc0 Move git tag fetching to release notes job
It was added to the wrong job originally [0].

[0]: https://review.opendev.org/c/airship/airshipctl/+/780940

Change-Id: I023bf1b8f0e133f190dc320bf45e4c79efd5de2b
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-22 09:46:41 -05:00
Zuul
cfcb4f108e Merge "Point images to quay.io" 2021-03-19 21:32:32 +00:00
Alexey Odinokov
a7e332f9ec SOPS improvements
Added 2 phases:
1. secret-reencrypt - This phase can be used to
reecnrypt the existing secrets with new key.
To do so SOPS_IMPORT_PGP must contain
old public key and new private key (but
may also include other data).
SOPS_PGP_FP must contain fingerprint of
new private key.

2. secret-show - This phase may be useful for some users
that need to see what generated by secret-generate phase.

Disabled SOPS debug by default.
To enable it back run commands with
env variable DEBUG_SOPS_GPG=true

Change-Id: Id7fe13d6943d386577df25dba4aaa83e62e58980
2021-03-19 21:31:25 +00:00
Zuul
bfe23f4755 Merge "Improve error messages from Event Processor" 2021-03-19 19:19:40 +00:00
Zuul
a6900b9307 Merge "Airship blog series link fix" 2021-03-19 19:15:47 +00:00
Matthew Fuller
585af5a516 Remove defaults from Config object at runtime
This change fixes a bug where the default values that are
populated during an `airshipctl config init` were getting
mixed in with user specified values at runtime. For example,
a user with two contexts defined in their airship config
file would actually see a third phantom context with default
values in the output of `airshipctl config get-context`.

Also fixes a number of the config cmd and pkg unit tests that
were affected by this bug.

Change-Id: Iac591d4c2a616090028eb730576478edefb82544
Closes: #447
2021-03-19 17:31:02 +00:00
Sreejith Punnapuzha
4be0f16ae3 Point images to quay.io
* point ironic init contianer image to quay.io
  * set calico image registry to quay.io

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ifab5e486724ee8ada0ccb9dab9cd04472a0cdca3
2021-03-19 12:22:32 -05:00
Kostiantyn Kalynovskyi
3fbf865048 Fix CAPD deployment
Commit fixes CAPD deployment and removes redundant scripts
that check expiration for CAPD site.

They must be tested separately outside CAPD pipeline

Related-To: #482
Closes: #482
Change-Id: I60ffd76a4f3f08bd7bd198a0c2b15483dfbdd6a6
2021-03-19 11:31:21 +00:00
Zuul
057d391901 Merge "Add updated Tigera Operator and Project Calico" 2021-03-19 10:15:10 +00:00
Zuul
86bd2c9984 Merge "Get-kubeconfig return all cluster contexts" 2021-03-19 01:20:48 +00:00
Zuul
c3e5355322 Merge "Kubeconf builder to return single cluster kubeconf" 2021-03-18 20:55:57 +00:00
Ruslan Aliev
8f1d0e0a75 Remove obsolete directory in manifests
Since we switched to tigera operator to deploy calico, the directory
manifests/composite/infra/replacements became obsolete since it contains
link to cni/calico, which is no longer exists. Also, this directory
isn't used anywhere in manifests, so it can be safely removed.

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #492
Closes: #492
Change-Id: I14d9b9ba192aa9546e198300f81045cc035fe13a
2021-03-18 11:23:43 -05:00
Zuul
7f95156110 Merge "Suppress the "go command not found" message" 2021-03-18 03:06:37 +00:00
Hemachandra Reddy
8d904c2354 Increase required disk size to 80GB
The existing recommendation of 60GB disk space is not enough to configure
all-in-one airshitpctl. It is not easy to expand disk space in virtual box
and other envivonrments and developer needs to recreate the environment from
scratch again.

Change-Id: Ifdb260e443647eb4dc942674ee495c9790e28fe6
2021-03-17 21:57:54 +00:00
Kostiantyn Kalynovskyi
f24bf00d17 Get-kubeconfig return all cluster contexts
Now if we run `airshipctl cluster get-kubeconfig` without args
it will return kubeconfig for the entire site, which will have
contexts for every cluster defined in cluster map.

Relates-To: #460
Closes: #460

Change-Id: Icf1f09724a5c60ac520b1dbcbda69c3280ac4c7e
2021-03-17 19:27:14 +00:00
Zuul
d2da9c3d4c Merge "Point calico to quay.io" 2021-03-17 19:23:36 +00:00
Zuul
d407142498 Merge "Add v prefix to semver image tags" v2.0.0-beta.7 2021-03-17 17:49:42 +00:00
Zuul
04149bd8ae Merge "Ensure semver publishing for all krm functions" 2021-03-17 17:49:20 +00:00
Zuul
b34d0ba918 Merge "Fix calculation of previous tag for release notes gen" 2021-03-17 17:49:14 +00:00
Zuul
7277a8492a Merge "Remove clusterctl command related functionality" 2021-03-17 17:48:49 +00:00
Zuul
f73e1dccb3 Merge "Higher priority for kubeconfig from bundle" 2021-03-17 17:07:02 +00:00
Sean Eagan
f1e42b8444 Add v prefix to semver image tags
This adds some context e.g. `v1` instead of just `1`, and matches
what some nearby projects use, such as the kpt container functions [0].

[0]: https://github.com/GoogleContainerTools/kpt/issues/1358

Change-Id: I2026fba873a0f074233e7628de35e53f1f880027
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-17 08:36:25 -05:00
Sean Eagan
b4ffab50f9 Ensure semver publishing for all krm functions
Instead of a static list, read list of krm-functions from containing directory.
This mirrors what we do for git SHA tag publishing for these images upon merge.

Before this, the cloud-init krm function was missing from the list.

Change-Id: Iacb5bbcc84c5eeb9a6bb6cebbf674c3068f103b0
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-17 08:27:54 -05:00
Zuul
3bc529fc93 Merge "Revert "Adding encryption config to airshipctl config"" 2021-03-17 04:02:50 +00:00
Zuul
98c50e1464 Merge "Revert "Adding commands to get and set encryption configs"" 2021-03-17 00:22:09 +00:00
Zuul
deb817ea6b Merge "move ipam from url to local" 2021-03-16 20:20:17 +00:00
Kostiantyn Kalynovskyi
580b37b2a0 Higher priority for kubeconfig from bundle
Cluster-Api kubeconfig source for target-cluster has higher
priority, airshipctl waits 300 timeout before proceeding
to next source each phase run. This commit will give bundle
higher priority, this will speed up deployments by 5 minutes
per each airshipctl phase run, when ephemeral cluster-api is
unavailable.

Change-Id: I7711d0594a513b7cf9fe3197e90047a9ba96123e
2021-03-16 19:22:21 +00:00
Sreejith Punnapuzha
4f9ab7b88c Point calico to quay.io
We are hitting docker pull limit on calico images. so switching it from
docker hub to quay

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: If2ef94885098bd87b2441c6eeb3738076fdaee73
2021-03-16 14:08:48 -05:00
Sean Eagan
0e7e263dfa Fix calculation of previous tag for release notes gen
The gren tool uses the git tag history to calculate the previous tag
to diff against. By default, the checkout action doesn't fetch the tag
history, this configures it to do so [1].

[0]: https://github-tools.github.io/github-release-notes/options.html#tags
[1]: https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches

Relates-To: #354
Change-Id: I90fb4deecba842517945707a12e3b1bde2610f74
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-16 13:08:15 -05:00
Zuul
2d9de5f8b6 Merge "Revert "Adding encrypt and decrypt subcommands to secret command"" 2021-03-16 17:51:26 +00:00
Kostiantyn Kalynovskyi
e2d2607586 Kubeconf builder to return single cluster kubeconf
Now if clusterName is specified for kubebuilder, Build() method
will return kubeconfig containing only context for that cluster.
If no clusterName is specified kubeconfig will have contexts of
all clusters that builder can build. This behaviour is similar
to `kubeconfig get` command.

Relates-To: #460

Change-Id: Ib3bebf61bc60430d347ded41b2e31249b11126eb
2021-03-16 15:53:40 +00:00
Kostiantyn Kalynovskyi
6cae709dba Remove clusterctl command related functionality
It is not used anywhere anymore as commands themselves were
deprecated and removed in favor of clusterctl move and init
executors.

Change-Id: I526f75d95b70754034f0846edfc9d3e468648ced
2021-03-16 15:05:14 +00:00
Zuul
442f9965fb Merge "Remove deprecated cluster init/move commands" 2021-03-16 04:48:32 +00:00
Chris Wedgwood
68b0269088 Add updated Tigera Operator and Project Calico
Change-Id: Ia7304db232416a3687b9048576e3be84c7e8baf6
2021-03-15 23:05:10 +00:00
Zuul
f4552d3ac2 Merge "Fix tag name in release workflow" v2.0.0-beta.6 2021-03-15 20:01:46 +00:00
Sreejith Punnapuzha
2db7d3d85c move ipam from url to local
ipam yaml was getting downloaded in customization file. This will cause
problem behind proxy. So adding the ipam yaml to respective folder

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Idf0f4b13fb6380363d3cabacfeacc7179f09cff9
2021-03-12 17:00:06 -06:00
Zuul
a39d547981 Merge "Updated executor definition to introduce a status interface" 2021-03-11 21:40:43 +00:00
Kostiantyn Kalynovskyi
6207e2c24d Add multiple kubeconifg sources to ClusterMap
Change ClusterMap API object to support multiple kubeconfig sources
for a cluster. If one kubeconfig source fails, kubeconfig builder
will not fail and move on to the next one. This behaviour will allow
to support cases when ephemeral cluster is not accesible anymore or
when target cluster is not yet accessible.

For more information please read issue #460 in airshipctl github

Relates-To: #460
Related-To: #460

Change-Id: I7cd32f78cd7c4ad8814eac357424c24216f40d76
2021-03-10 18:22:30 +00:00
Zuul
1112c8efee Merge "Add utulity to expand tilde in file path" 2021-03-10 18:16:16 +00:00