[uplift] - Uplift airshipctl to stable version
Airshipctl reference commits: => https://review.opendev.org/c/airship/airshipctl/+/792060 Update metadata.yaml to kubernetes style => https://review.opendev.org/c/airship/airshipctl/+/793502 Move CAPI resources to target-infra namespace => https://review.opendev.org/c/airship/airshipctl/+/789398 Embed validation cfg into phase and plan definition => https://review.opendev.org/c/airship/airshipctl/+/794701 Enable static validation for all available plans per site => https://review.opendev.org/c/airship/airshipctl/+/796574 Decouple secret from other replacements in workers-capm3 => https://review.opendev.org/c/airship/airshipctl/+/795167 Added replacements for composite/infra Change-Id: I2c107b3d2b94acda540b09792640dbafd55b23eb
This commit is contained in:
parent
fdcb0ca27d
commit
e9310cf390
@ -8,6 +8,8 @@ resources:
|
||||
patchesStrategicMerge:
|
||||
- oidc-apiserver-extra-args.yaml
|
||||
|
||||
namespace: target-infra
|
||||
|
||||
patchesJson6902:
|
||||
- target:
|
||||
group: controlplane.cluster.x-k8s.io
|
||||
|
@ -1,4 +1,7 @@
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- kubeadmconfigtemplate.yaml
|
||||
- machinedeployment.yaml
|
||||
- metal3machinetemplate.yaml
|
||||
|
||||
namespace: target-infra
|
||||
|
5
manifests/function/workers-capm3/namespace.yaml
Normal file
5
manifests/function/workers-capm3/namespace.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: target-infra
|
@ -1,3 +1,8 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ManifestMetadata
|
||||
metadata:
|
||||
name: manifest-metadata
|
||||
spec:
|
||||
phase:
|
||||
docEntryPointPrefix: manifests/site/reference-airship-core
|
||||
path: manifests/site/reference-airship-core/phases
|
||||
|
@ -1,3 +1,8 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ManifestMetadata
|
||||
metadata:
|
||||
name: manifest-metadata
|
||||
spec:
|
||||
phase:
|
||||
docEntryPointPrefix: manifests/site/reference-multi-tenant
|
||||
path: manifests/site/reference-multi-tenant/phases
|
||||
|
@ -18,3 +18,9 @@ status:
|
||||
# when we have more flexible labeling system in place, we will not
|
||||
# deliver this document to ephemeral cluster
|
||||
state: externally provisioned
|
||||
ID: ""
|
||||
operationHistory: {}
|
||||
errorMessage: ""
|
||||
hardwareProfile: ""
|
||||
operationalStatus: ""
|
||||
poweredOn: false
|
||||
|
@ -1,9 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- ../../../../type/airship-core/ephemeral/bootstrap
|
||||
- ../catalogues
|
||||
|
||||
namespace: target-infra
|
||||
generators:
|
||||
- hostgenerator
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: target-infra
|
@ -6,5 +6,8 @@ resources:
|
||||
# TODO (dukov) It's recocommended to upload BareMetalHost objects separately
|
||||
# otherwise nodes will hang in 'registering' state for quite a long time
|
||||
- nodes
|
||||
|
||||
namespace: target-infra
|
||||
|
||||
transformers:
|
||||
- ../../../../type/airship-core/ephemeral/controlplane/replacements
|
||||
|
@ -1,2 +1,5 @@
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../type/airship-core/ephemeral/initinfra-networking
|
||||
transformers:
|
||||
- ../../../../type/airship-core/ephemeral/initinfra-networking/replacements
|
||||
|
@ -1,3 +1,8 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ManifestMetadata
|
||||
metadata:
|
||||
name: manifest-metadata
|
||||
spec:
|
||||
phase:
|
||||
docEntryPointPrefix: manifests/site/test-site
|
||||
path: manifests/site/test-site/phases
|
||||
|
@ -1,6 +1,10 @@
|
||||
resources:
|
||||
- ../kubeconfig
|
||||
- ../../../type/airship-core/phases
|
||||
- ../target/catalogues
|
||||
|
||||
transformers:
|
||||
- ../../../../../airshipctl/manifests/function/clusterctl/replacements
|
||||
## TODO Consider making a catalogue combined with variable substitution instead
|
||||
patchesStrategicMerge:
|
||||
- phase-patch.yaml
|
||||
|
@ -1,2 +1,7 @@
|
||||
resources:
|
||||
- ../catalogues
|
||||
- ../../../../type/airship-core/target/initinfra-networking
|
||||
- namespace.yaml
|
||||
|
||||
transformers:
|
||||
- ../../../../type/airship-core/target/initinfra-networking/replacements
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: target-infra
|
@ -4,5 +4,8 @@ resources:
|
||||
- ../../../../type/airship-core/target/workers
|
||||
- ../catalogues
|
||||
- nodes
|
||||
|
||||
namespace: target-infra
|
||||
|
||||
transformers:
|
||||
- ../../../../type/airship-core/target/workers/replacements
|
||||
|
@ -1,3 +1,8 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ManifestMetadata
|
||||
metadata:
|
||||
name: manifest-metadata
|
||||
spec:
|
||||
phase:
|
||||
docEntryPointPrefix: manifests/site/virtual-network-cloud
|
||||
path: manifests/site/virtual-network-cloud/phases
|
||||
|
@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- ../../../../../../../airshipctl/manifests/composite/infra/replacements
|
@ -1,3 +1,10 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: ManifestMetadata
|
||||
metadata:
|
||||
name: manifest-metadata
|
||||
spec:
|
||||
phase:
|
||||
docEntryPointPrefix: manifests/type/airship-core
|
||||
path: manifests/type/airship-core/phases
|
||||
inventory:
|
||||
path: ""
|
||||
|
@ -1,10 +1,11 @@
|
||||
resources:
|
||||
- ../../../../../airshipctl/manifests/phases/
|
||||
- lma-infra-target.yaml
|
||||
- validation-config.yaml
|
||||
- ../../../function/phase-helper/
|
||||
- executors.yaml
|
||||
- phases.yaml
|
||||
- plan.yaml
|
||||
transformers:
|
||||
- ../../../../../airshipctl/manifests/function/validator
|
||||
|
||||
patchesStrategicMerge:
|
||||
- patches/delete-deploy-gating.yaml
|
||||
- plan-patch.yaml
|
||||
|
@ -0,0 +1,5 @@
|
||||
$patch: delete
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: PhasePlan
|
||||
metadata:
|
||||
name: deploy-gating
|
10
manifests/type/airship-core/phases/plan-patch.yaml
Normal file
10
manifests/type/airship-core/phases/plan-patch.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
apiVersion: airshipit.org/v1alpha1
|
||||
kind: PhasePlan
|
||||
metadata:
|
||||
name: iso
|
||||
validation:
|
||||
kindsToSkip:
|
||||
- RemoteDirectConfiguration
|
||||
- VariableCatalogue
|
||||
- StorageCatalogue
|
||||
- BareMetalHost
|
@ -147,3 +147,10 @@ phases:
|
||||
# - name: lma-stack
|
||||
# - name: lma-configs
|
||||
# - name: deliver-network-policy
|
||||
validation:
|
||||
kindsToSkip:
|
||||
- Clusterctl
|
||||
- VariableCatalogue
|
||||
- StorageCatalogue
|
||||
crdList:
|
||||
- airshipctl/manifests/function/airshipctl-schemas
|
||||
|
@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- ../../../../../../../airshipctl/manifests/composite/infra/replacements
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../../../../../airshipctl/manifests/function/workers-capm3/replacements
|
||||
- ../../../../../../../airshipctl/manifests/function/workers-capm3/replacements-secrets
|
||||
|
@ -6,8 +6,5 @@ resources:
|
||||
- phases.yaml
|
||||
- executors.yaml
|
||||
- ../../../function/phase-helper
|
||||
- validation-config.yaml
|
||||
patchesStrategicMerge:
|
||||
- cluster_map_patch.yaml
|
||||
transformers:
|
||||
- ../../../../../airshipctl/manifests/function/validator
|
||||
|
@ -25,5 +25,12 @@ export SITE_ROOTS=$SITE_ROOTS
|
||||
export MANIFEST_REPO_URL=$MANIFEST_REPO_URL
|
||||
|
||||
cd ${AIRSHIPCTL_PROJECT}
|
||||
./tools/validate_docs
|
||||
|
||||
# Validate only specific site if set
|
||||
if [ ! -z "$1" ]; then
|
||||
./tools/validate_docs $1
|
||||
else
|
||||
./tools/validate_docs
|
||||
fi
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
- ./tools/deployment/common/21_systemwide_executable.sh
|
||||
- ./tools/deployment/common/22_test_configs.sh
|
||||
- ./tools/deployment/common/23_pull_documents.sh
|
||||
- ./tools/validate_docs
|
||||
- ./tools/validate_docs test-site # validate only test-site till we get other site specific plans to work with document validation
|
||||
|
||||
- job:
|
||||
name: treasuremap-upload-git-mirror
|
||||
|
@ -14,7 +14,7 @@
|
||||
vars:
|
||||
# NOTE(drewwalters96): Set AIRSHIPCTL_REF to a commit SHA in order to pin
|
||||
# the cloned version of airshipctl to a known/compatible reference.
|
||||
AIRSHIPCTL_REF: "16da661959b69ae54be83266cf7db0920083a2d4"
|
||||
AIRSHIPCTL_REF: "1e8f31a160016a71c454507e529620e837efea78"
|
||||
sphinx_build_dir: docs/build
|
||||
check:
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user