Skip to content

Commit

Permalink
Set helm resource policy "keep" for templates
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed Oct 1, 2024
1 parent d57cb59 commit 05edc46
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ EOF
cat <<EOF >> $TEMPLATES_OUTPUT_DIR/$name.yaml
metadata:
name: $name
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: $name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: aws-hosted-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: aws-hosted-cp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: aws-standalone-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: aws-standalone-cp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: azure-hosted-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: azure-hosted-cp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: azure-standalone-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: azure-standalone-cp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: cluster-api-provider-aws
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: cluster-api-provider-aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: cluster-api-provider-azure
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: cluster-api-provider-azure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: cluster-api-provider-vsphere
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: cluster-api-provider-vsphere
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: cluster-api
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: cluster-api
Expand Down
2 changes: 2 additions & 0 deletions templates/provider/hmc-templates/files/templates/hmc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: hmc
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: hmc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ServiceTemplate
metadata:
name: ingress-nginx
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: ingress-nginx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: k0smotron
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: k0smotron
Expand Down
2 changes: 2 additions & 0 deletions templates/provider/hmc-templates/files/templates/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ServiceTemplate
metadata:
name: kyverno
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: kyverno
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ProviderTemplate
metadata:
name: projectsveltos
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: projectsveltos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: vsphere-hosted-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: vsphere-hosted-cp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: hmc.mirantis.com/v1alpha1
kind: ClusterTemplate
metadata:
name: vsphere-standalone-cp
annotations:
helm.sh/resource-policy: keep
spec:
helm:
chartName: vsphere-standalone-cp
Expand Down

0 comments on commit 05edc46

Please sign in to comment.