Merge "Switching to the approach with cleanup by selector"
This commit is contained in:
commit
409276c04a
@ -6,7 +6,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
container:
|
container:
|
||||||
image: quay.io/airshipit/replacement-transformer:v2.0.2
|
image: quay.io/airshipit/replacement-transformer:v2
|
||||||
replacements:
|
replacements:
|
||||||
- source:
|
- source:
|
||||||
objref:
|
objref:
|
||||||
|
@ -5,7 +5,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
container:
|
container:
|
||||||
image: quay.io/airshipit/replacement-transformer:latest
|
image: quay.io/airshipit/replacement-transformer:v2
|
||||||
replacements:
|
replacements:
|
||||||
- source:
|
- source:
|
||||||
objref:
|
objref:
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
resources:
|
||||||
|
- ../../../../airshipctl/manifests/function/airshipctl-cleanup/
|
||||||
|
# place here more treasuremap specific catalogue kinds
|
@ -9,6 +9,4 @@ resources:
|
|||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/replacements
|
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/cleanup
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
resources:
|
|
||||||
- smp.yaml
|
|
||||||
- ../../../target/generator/results/cleanup/
|
|
@ -1,41 +0,0 @@
|
|||||||
apiVersion: builtin
|
|
||||||
kind: PatchStrategicMergeTransformer
|
|
||||||
metadata:
|
|
||||||
name: smp
|
|
||||||
patches: |-
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: host-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: NetworkCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: env-vars-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VersionsCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-airshipctl
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-treasuremap
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking-ha
|
|
||||||
$patch: delete
|
|
@ -9,6 +9,4 @@ resources:
|
|||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/replacements
|
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
- ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/cleanup
|
|
||||||
|
@ -7,5 +7,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../function/treasuremap-cleanup
|
||||||
- ../../target/catalogues/cleanup
|
|
||||||
|
@ -4,4 +4,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- update-target.yaml
|
- update-target.yaml
|
||||||
- ../target/catalogues/cleanup
|
- ../../../function/treasuremap-cleanup
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
resources:
|
|
||||||
- smp.yaml
|
|
||||||
- ../../generator/results/cleanup/
|
|
@ -1,41 +0,0 @@
|
|||||||
apiVersion: builtin
|
|
||||||
kind: PatchStrategicMergeTransformer
|
|
||||||
metadata:
|
|
||||||
name: smp
|
|
||||||
patches: |-
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: host-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: NetworkCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: env-vars-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VersionsCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-airshipctl
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-treasuremap
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking-ha
|
|
||||||
$patch: delete
|
|
@ -1,2 +0,0 @@
|
|||||||
resources:
|
|
||||||
- override
|
|
@ -1,2 +0,0 @@
|
|||||||
resources:
|
|
||||||
- ../../../../../../../type/airship-core/target/generator/cleanup/
|
|
@ -7,6 +7,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
|
|
||||||
|
@ -7,6 +7,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
# - ../../../../../../../airshipctl/manifests/function/hardwareprofile-example/cleanup
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
resources:
|
|
||||||
- smp.yaml
|
|
||||||
- ../../../target/generator/results/cleanup/
|
|
@ -1,47 +0,0 @@
|
|||||||
apiVersion: builtin
|
|
||||||
kind: PatchStrategicMergeTransformer
|
|
||||||
metadata:
|
|
||||||
name: smp
|
|
||||||
patches: |-
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: host-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: NetworkCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: env-vars-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VersionsCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-airshipctl
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-treasuremap
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking-ha
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: subcluster-networking
|
|
||||||
$patch: delete
|
|
@ -7,5 +7,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
resources:
|
|
||||||
- smp.yaml
|
|
||||||
- ../../generator/results/cleanup/
|
|
@ -1,48 +0,0 @@
|
|||||||
apiVersion: builtin
|
|
||||||
kind: PatchStrategicMergeTransformer
|
|
||||||
metadata:
|
|
||||||
name: smp
|
|
||||||
patches: |-
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: host-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: NetworkCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: env-vars-catalogue
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VersionsCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-airshipctl
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: versions-treasuremap
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: networking-ha
|
|
||||||
$patch: delete
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: subcluster-networking
|
|
||||||
$patch: delete
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
resources:
|
|
||||||
- override
|
|
@ -1,2 +0,0 @@
|
|||||||
resources:
|
|
||||||
- ../../../../../../../type/airship-core/target/generator/cleanup/
|
|
@ -7,6 +7,4 @@ resources:
|
|||||||
|
|
||||||
transformers:
|
transformers:
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/replacements
|
||||||
- ../../../../../../../airshipctl/manifests/function/hostgenerator-m3/cleanup
|
- ../../../../../function/treasuremap-cleanup
|
||||||
- ../../catalogues/cleanup
|
|
||||||
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
resources:
|
|
||||||
- secret-cleanup.yaml
|
|
@ -1,11 +0,0 @@
|
|||||||
apiVersion: builtin
|
|
||||||
kind: PatchStrategicMergeTransformer
|
|
||||||
metadata:
|
|
||||||
name: smp_cleanup
|
|
||||||
patches: |-
|
|
||||||
---
|
|
||||||
apiVersion: airshipit.org/v1alpha1
|
|
||||||
kind: VariableCatalogue
|
|
||||||
metadata:
|
|
||||||
name: generated-secrets
|
|
||||||
$patch: delete
|
|
@ -8,7 +8,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
container:
|
container:
|
||||||
image: quay.io/airshipit/replacement-transformer:latest
|
image: quay.io/airshipit/replacement-transformer:v2
|
||||||
replacements:
|
replacements:
|
||||||
# Replace Kubernetes networking info
|
# Replace Kubernetes networking info
|
||||||
- source:
|
- source:
|
||||||
@ -30,4 +30,4 @@ replacements:
|
|||||||
objref:
|
objref:
|
||||||
kind: NetworkCatalogue
|
kind: NetworkCatalogue
|
||||||
name: networking
|
name: networking
|
||||||
fieldrefs: ["{.spec.port_range}"]
|
fieldrefs: ["{.spec.port_range}"]
|
||||||
|
@ -5,7 +5,7 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
container:
|
container:
|
||||||
image: quay.io/airshipit/replacement-transformer:latest
|
image: quay.io/airshipit/replacement-transformer:v2
|
||||||
replacements:
|
replacements:
|
||||||
# Replace Kubernetes networking info
|
# Replace Kubernetes networking info
|
||||||
- source:
|
- source:
|
||||||
@ -27,4 +27,4 @@ replacements:
|
|||||||
objref:
|
objref:
|
||||||
kind: NetworkCatalogue
|
kind: NetworkCatalogue
|
||||||
name: networking
|
name: networking
|
||||||
fieldrefs: ["{.spec.port_range}"]
|
fieldrefs: ["{.spec.port_range}"]
|
||||||
|
@ -24,7 +24,7 @@ export WORKER_NODE=${WORKER_NODE:-"$(airshipctl phase render workers-target \
|
|||||||
sed 's/"//g')"}
|
sed 's/"//g')"}
|
||||||
|
|
||||||
# Annotate node for hostconfig-operator
|
# Annotate node for hostconfig-operator
|
||||||
hosts=(kubectl \
|
hosts=$(kubectl \
|
||||||
--kubeconfig $KUBECONFIG \
|
--kubeconfig $KUBECONFIG \
|
||||||
--context $KUBECONFIG_TARGET_CONTEXT \
|
--context $KUBECONFIG_TARGET_CONTEXT \
|
||||||
--request-timeout 10s get nodes -o name)
|
--request-timeout 10s get nodes -o name)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
vars:
|
vars:
|
||||||
# NOTE(drewwalters96): Set AIRSHIPCTL_REF to a commit SHA in order to pin
|
# NOTE(drewwalters96): Set AIRSHIPCTL_REF to a commit SHA in order to pin
|
||||||
# the cloned version of airshipctl to a known/compatible reference.
|
# the cloned version of airshipctl to a known/compatible reference.
|
||||||
AIRSHIPCTL_REF: "63c1faf718fd3341fc5bd975e575e3cf41647206"
|
AIRSHIPCTL_REF: "fcfad3533a73355c55d0aacb135dac0d1acd6a4f"
|
||||||
sphinx_build_dir: docs/build
|
sphinx_build_dir: docs/build
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user