Skip to content

Commit

Permalink
Apps: Use catalog from Release CR. (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko authored Aug 29, 2024
1 parent 8f8cefe commit 5462906
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 24 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Do not allow additional properties in most values in order to avoid unnoticed typos.
- Validate that machine pool availability zones belong to the selected region.
- CI: Bump release version. ([#792](https://github.com/giantswarm/cluster-aws/pull/792))
- CI: Bump release version.
- Apps: Use `catalog` from Release CR.

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ spec:
spec:
chart: aws-ebs-csi-driver-app
{{- $_ := set $ "appName" "aws-ebs-csi-driver" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
version: {{ include "cluster.app.version" $ }}
sourceRef:
kind: HelmRepository
name: {{ include "resource.default.name" $ }}-default
name: {{ include "resource.default.name" $ }}-{{ include "cluster.app.catalog" $ }}
dependsOn:
- name: {{ include "resource.default.name" $ }}-cloud-provider-aws
namespace: {{ $.Release.Namespace }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ metadata:
annotations:
app-operator.giantswarm.io/depends-on: {{ include "resource.default.name" . }}-prometheus-operator-crd
spec:
catalog: default
name: aws-ebs-csi-driver-servicemonitors
{{- $_ := set $ "appName" "aws-ebs-csi-driver-servicemonitors" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
catalog: {{ include "cluster.app.catalog" $ }}
name: aws-ebs-csi-driver-servicemonitors
version: {{ include "cluster.app.version" $ }}
namespace: kube-system
config:
configMap:
Expand Down
7 changes: 3 additions & 4 deletions helm/cluster-aws/templates/aws-pod-identity-webhook-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ metadata:
annotations:
app-operator.giantswarm.io/depends-on: {{ include "resource.default.name" . }}-cert-manager
spec:
catalog: default
name: aws-pod-identity-webhook
{{- $_ := set $ "appName" "aws-pod-identity-webhook" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
catalog: {{ include "cluster.app.catalog" $ }}
name: aws-pod-identity-webhook
version: {{ include "cluster.app.version" $ }}
namespace: kube-system
config:
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ metadata:
name: {{ printf "%s-cilium-crossplane-resources" (include "resource.default.name" $) | quote }}
namespace: {{ $.Release.Namespace | quote }}
spec:
catalog: cluster
{{- $_ := set $ "appName" "cilium-crossplane-resources" }}
catalog: {{ include "cluster.app.catalog" $ }}
name: cilium-crossplane-resources
version: {{ include "cluster.app.version" $ }}
install:
timeout: "10m"
upgrade:
timeout: "10m"
kubeConfig:
inCluster: true # in management cluster context
name: cilium-crossplane-resources
namespace: {{ $.Release.Namespace | quote }}
{{- $_ := set $ "appName" "cilium-crossplane-resources" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
extraConfigs:
# See above
- kind: configMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ spec:
spec:
chart: aws-cloud-controller-manager-app
{{- $_ := set $ "appName" "cloud-provider-aws" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
version: {{ include "cluster.app.version" $ }}
sourceRef:
kind: HelmRepository
name: {{ include "resource.default.name" $ }}-default
name: {{ include "resource.default.name" $ }}-{{ include "cluster.app.catalog" $ }}
dependsOn:
- name: {{ include "resource.default.name" $ }}-vertical-pod-autoscaler-crd
namespace: {{ $.Release.Namespace }}
Expand Down
7 changes: 3 additions & 4 deletions helm/cluster-aws/templates/irsa-servicemonitors-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ metadata:
annotations:
app-operator.giantswarm.io/depends-on: {{ include "resource.default.name" . }}-prometheus-operator-crd
spec:
catalog: default
name: irsa-servicemonitors
{{- $_ := set $ "appName" "irsa-servicemonitors" }}
{{- $appVersion := include "cluster.app.version" $ }}
version: {{ $appVersion }}
catalog: {{ include "cluster.app.catalog" $ }}
name: irsa-servicemonitors
version: {{ include "cluster.app.version" $ }}
namespace: kube-system
config:
configMap:
Expand Down

0 comments on commit 5462906

Please sign in to comment.