Skip to content

Commit c69d674

Browse files
committed
add aws and kubernetes crossplane providers
Signed-off-by: Carlos Santana <csantana23@gmail.com>
1 parent 8f439fc commit c69d674

21 files changed

+361
-41
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
local/
1+
local/
2+
*.tgz
3+
Chart.lock
4+
.DS_Store

charts/addons/crossplane/aws/resources/templates/aws-controller-config.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

charts/addons/crossplane/aws/resources/templates/aws-provider-config.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

charts/addons/crossplane/aws/resources/templates/aws-provider.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: v2
2+
name: resources
3+
description: A Helm chart for Kubernetes
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 1.0.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "1.0.0"
25+
26+
dependencies:
27+
- name: aws
28+
version: "1.0.0"
29+
repository: "file://aws"
File renamed without changes.

charts/addons/crossplane/aws/resources/Chart.yaml renamed to charts/addons/crossplane/resources/aws/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: resources
2+
name: aws
33
description: A Helm chart for Kubernetes
44

55
# A chart can be either an 'application' or a 'library' chart.

charts/addons/crossplane/aws/resources/templates/_helpers.tpl renamed to charts/addons/crossplane/resources/aws/templates/_helpers.tpl

File renamed without changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{- if and .Values.global.enabled_aws .Values.controllerConfig.enabled }}
2+
{{- with .Values.controllerConfig }}
3+
apiVersion: pkg.crossplane.io/v1alpha1
4+
kind: ControllerConfig
5+
metadata:
6+
name: {{ .metadata.name }}
7+
{{- if .metadata.annotations }}
8+
annotations:
9+
{{- range $key, $value := .metadata.annotations }}
10+
{{ $key }}: {{ $value | quote }}
11+
{{- end }}
12+
{{- end }}
13+
{{- if .metadata.labels }}
14+
labels:
15+
{{- range $key, $value := .metadata.labels }}
16+
{{ $key }}: {{ $value | quote }}
17+
{{- end }}
18+
{{- end }}
19+
spec:
20+
{{- .spec | toYaml | nindent 2 }}
21+
{{- end }}
22+
{{- end }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{- if and .Values.global.enabled_aws .Values.providerConfig.enabled }}
2+
{{- with .Values.providerConfig }}
3+
apiVersion: aws.crossplane.io/v1beta1
4+
kind: ProviderConfig
5+
metadata:
6+
name: {{ .metadata.name }}
7+
{{- if .metadata.annotations }}
8+
annotations:
9+
{{- range $key, $value := .metadata.annotations }}
10+
{{ $key }}: {{ $value | quote }}
11+
{{- end }}
12+
{{- end }}
13+
{{- if .metadata.labels }}
14+
labels:
15+
{{- range $key, $value := .metadata.labels }}
16+
{{ $key }}: {{ $value | quote }}
17+
{{- end }}
18+
{{- end }}
19+
spec:
20+
{{- .spec | toYaml | nindent 2 }}
21+
{{- end }}
22+
{{- end }}

0 commit comments

Comments
 (0)