This adds the following vairables to be used with the 22_test_configs.sh
script, so that it can generate configs which have access to private
repos.
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_TYPE
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_KEY_PASSWORD
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_KEY_PATH
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_HTTP_PASSWORD
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_SSH_PASSWORD
* AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_USERNAME
Relates-To: #627
Change-Id: I791e45eb6747e76f0e69a7cdcfde90db570fa1d1
This commit adds the `fetch` and `fetch.remoteRefSpec` fields to the
configuration for repositories, allowing the capability to fetch
references from a remote. This is useful for pulling specific gerrit
patchsets.
This also changes `checkout.remoteRefSpec` to `checkout.refSpec`, and
implements the logic required to checkout to an arbitrary ref.
Closes: #616
Change-Id: Ie21a6c2a7a7ac92ed3c05fef7e5683203cd62e45
Unit test should follow black-box approach.
Change-Id: I98c46c613a73b539f79d8dfe99cd73592792536d
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #561
Add ValidateClusterMap() method to confirm there are no parent-child
dependancy issues for any clustermaps.
Closes: #481
Change-Id: Ifb57b026933909a4350d71353adca23a42440a48
* modified image_repositories section schema in version catalogue.
new type : type map[string]ImageRepositorySpec
old type : string.
* replaced registry attribute in Installation resource from
version-catalogue image_repositories section.
* updated old attributes from image_repositories section as per new
schema.
Closes: #590
Change-Id: I2159e23b8a63b5f48d2f4e79b56c2bc021646c77
Currently zero timeout won't be applied if specified via CLI
options of commands plan run and plan run. This patch fixes it.
Change-Id: Icad06ae8c71d78dc81821e2c5b0adb486d547fda
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #566
Closes: #566
This command is obsolete and can be safely removed. All the secrets
functionality now is part of SOPS krm function and phases.
Change-Id: Ia8244e51aa8c28f1ac07734e4f4afc6ee59e4021
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #588
This command is outdated and no longer needed, according to the
design call it should be removed.
Change-Id: I7c96fdd8cbc21c56ad9d0d6291ea9b6c6626735d
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #588
This command is outdated and no longer used, according to the design call
it should be removed.
Change-Id: I5953f0c66e9cee40c070afe148aa98c9d07113f7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #588
'make manifests' attempts to generate all airshipctl API types,
but several types throw errors and the resulting CRDs can't be
properly generated. This change:
- updates the controller-gen version to pull in a bug fix for the
error 'map values must be a named type, not *ast.StarExpr'
- modifies the Templater type's Values member to be of type JSON
since controller-gen does not support map[string]interface{},
and unmarshals it separately in the templater itself
- adds 'image_repositories' to the VersionsCatalogueSpec struct
to ensure it doesn't get deleted from the schema when manifests
get regenerated
- checks in generated copies of all CRDs from airshipctl's API
types, not just catalogues, to be used for validation
Closes: #574
Change-Id: I89a12cfd307a08da9aaec9773eac01169ea43ace
This commit allows to tolerate up to three timeout errors that
came from poll requests before interruption of apply process.
Change-Id: I6cb95eba908e62ee44be3338c263b20c7dffc34b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #579
Closes: #579
This PS replaces cluster-api implementation with our own since
it allows to configure timeout.
Change-Id: I5cbba24dd7c6a279fcd2325e904ac7d18348eabf
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #548
Closes: #548
* validation config is now part of airshipctl api
* additional CRD locations can be only kustomize entrypoints
* changed mechanism to call document-validation executor to allow
to pass validation config from phase or plan
* kubeval version pinned to the latest 0.16.1
* default k8s version to validate against uplifted to 1.18.6
* default URL with k8s schemas changed to more updated and reliable
Change-Id: Ifb24be224d5f0860d323a671b94e28a86debc65b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #563
Transform stringData into base64-enc data manually so the
annotation won't remain from the stringData.
Closes: #424
Change-Id: I4bcfd57601d9199307c749e8e6deb5ee5445d821
* Define GVK for metadata.yaml
* Added supoorting type and registered the kind 'AirshipMetadata' to
runtime scheme
* Used document object to read metadata instead of reading it as config
Relates-To: #530
Change-Id: I748cd0921ba7bb04ca6fb2999294776e6803ed3e
Moves CAPI resources in ephemeral cluster from the 'default'
namespace to a new 'target-infra' namespace.
Closes: #551
Change-Id: I419a71baa8e05e7b57b38234d15b955b36951b40
It would be helpful to have a possibility to configure Timeout
field, as well as others allowed.
Change-Id: I1e0e895b7ca6a17e86a6ad36f405e2538775cbbb
Closes: #553
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
MatchVersionFalgs object should be used instead as cli-utils
library suggests, particularly it will allow us to avoid the
issue when airshipctl apply process stuck after Unknown state.
Change-Id: Id6d6ca69a67cb4a500b150a00df538ffffa11eb3
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #552
Adds an ntp object to the NetworkCatalogue schema
and populates default ntp servers into the networking
base catalogue. Also adds replacement rules in:
* function/k8scontrol/replacements
* function/workers-capm3/replacements
Change-Id: I5dedda563c8825c283e7ba846bedb0b282459d41
Removed the namespace condition check from the validation of 'Move'.
This is to allow validation of docker and cloud provider test site
manifests that do not use namespace.
Relates-To: #503
Change-Id: I39544ba9c9c13ff5a6519b7afd8844629e60087e
The command "airshipctl config get-context" will display the name of the contexts as well as the current context name.
Relates-To: #475
Change-Id: I8234d74f6b98869e27e4974a54b68230d8be8565