Skip to content

Commit

Permalink
update-crossplane
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <csantana23@gmail.com>
  • Loading branch information
csantanapr committed Jan 14, 2024
1 parent 3034540 commit c588a83
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 23 deletions.
4 changes: 2 additions & 2 deletions charts/crossplane-aws-upbound/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.1
version: 2.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
appVersion: "v0.47.1"
18 changes: 15 additions & 3 deletions charts/crossplane-aws-upbound/templates/provider-family.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
{{- if .Values.global.enabled_aws_upbound }}

{{- if and .Values.global.enabled_aws_upbound .Values.provider.enabled }}
{{- with .Values.provider }}
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: upbound-provider-family-aws
annotations:
argocd.argoproj.io/sync-wave: "2"
{{- range $key, $value := .metadata.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}

{{- if .metadata.labels }}
labels:
{{- range $key, $value := .metadata.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
package: {{ $.Values.global.aws_upbound_registry }}/provider-family-aws:{{ $.Values.global.aws_upbound_version }}
package: {{ .package.registry }}/provider-family-aws:{{ .package.version }}


{{- end }}
{{- end }}
14 changes: 12 additions & 2 deletions charts/crossplane-aws-upbound/templates/providers.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.global.enabled_aws_upbound }}
{{- if and .Values.global.enabled_aws_upbound .Values.provider.enabled }}

{{- range .Values.providers }}

Expand All @@ -8,8 +8,18 @@ metadata:
name: provider-aws-{{ . }}
annotations:
argocd.argoproj.io/sync-wave: "3"
{{- range $key, $value := $.Values.provider.metadata.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}

{{- if $.Values.provider.metadata.labels }}
labels:
{{- range $key, $value := $.Values.provider.metadata.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
package: {{ $.Values.global.aws_upbound_registry }}/provider-aws-{{ . }}:{{ $.Values.global.aws_upbound_version }}
package: {{ $.Values.provider.package.registry }}/provider-aws-{{ . }}:{{ $.Values.provider.package.version }}
runtimeConfigRef:
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- end }}
{{- end }}
annotations:
eks.amazonaws.com/role-arn: {{ default $.Values.global.iam_role_arn_aws_upbound .metadata.role_arn }}
eks.amazonaws.com/role-arn: "{{ .metadata.role_arn }}"
{{- range $key, $value := .spec.serviceAccountTemplate.metadata.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down
14 changes: 10 additions & 4 deletions charts/crossplane-aws-upbound/values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
global:
iam_role_arn_aws_upbound: null
enabled_aws_upbound: true
aws_upbound_version: v0.46.0
aws_upbound_registry: xpkg.upbound.io/upbound

deploymentRuntimeConfig:
enabled: true
metadata:
name: "upbound-aws-runtime-config"
iam_role_arn: null
role_arn: ""
annotations: {}
labels: {}
spec:
Expand All @@ -29,6 +26,15 @@ deploymentRuntimeConfig:
labels: {}
name: provider-aws

provider:
enabled: true
metadata:
annotations: {}
labels: {}
package:
registry: xpkg.upbound.io/upbound
version: v0.47.1

providerConfig:
enabled: true
metadata:
Expand Down
4 changes: 2 additions & 2 deletions charts/crossplane-aws/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 2.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
appVersion: "v0.45.2"
2 changes: 1 addition & 1 deletion charts/crossplane-aws/templates/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ metadata:
{{- end }}
{{- end }}
spec:
package: {{ .package.registry }}:{{ default .package.version $.Values.global.aws_version }}
package: {{ .package.registry }}:{{ .package.version }}
runtimeConfigRef:
apiVersion: pkg.crossplane.io/v1beta1
kind: DeploymentRuntimeConfig
Expand Down
2 changes: 1 addition & 1 deletion charts/crossplane-aws/templates/runtime-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- end }}
{{- end }}
annotations:
eks.amazonaws.com/role-arn: {{ default $.Values.global.iam_role_arn_aws .metadata.role_arn }}
eks.amazonaws.com/role-arn: "{{ .metadata.role_arn }}"
{{- range $key, $value := .spec.serviceAccountTemplate.metadata.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down
3 changes: 1 addition & 2 deletions charts/crossplane-aws/values.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
global:
iam_role_arn_aws: null
enabled_aws: true

deploymentRuntimeConfig:
enabled: true
metadata:
name: "aws-runtime-config"
role_arn: null
annotations: {}
labels: {}
spec:
Expand All @@ -30,7 +30,6 @@ provider:
enabled: true
metadata:
name: "provider-aws"
iam_role_arn: null
annotations: {}
labels: {}
package:
Expand Down
4 changes: 2 additions & 2 deletions charts/crossplane-helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
appVersion: "v0.16.0"
4 changes: 2 additions & 2 deletions charts/crossplane-kubernetes/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.0"
appVersion: "v0.10.0"
2 changes: 1 addition & 1 deletion charts/crossplane-kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ provider:
labels: {}
package:
registry: xpkg.upbound.io/crossplane-contrib/provider-kubernetes
version: "v0.9.0"
version: "v0.10.0"

providerConfig:
enabled: true
Expand Down

0 comments on commit c588a83

Please sign in to comment.