Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
refactor efs component
Browse files Browse the repository at this point in the history
  • Loading branch information
mithie committed Aug 5, 2022
1 parent 1029ed6 commit a812ac6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/crossplane-efs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.1"
description: "Helm Chart for installing a Custom Crossplane API, allowing to create an EFS Filesystem."
name: crossplane-efs
version: 0.3.0
version: 0.4.0
home: https://github.com/dvpe-cloud/dvpe-helm
keywords:
- dvpe-helm
Expand Down
2 changes: 1 addition & 1 deletion charts/crossplane-efs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# crossplane-efs

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![AppVersion: 1.1](https://img.shields.io/badge/AppVersion-1.1-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![AppVersion: 1.1](https://img.shields.io/badge/AppVersion-1.1-informational?style=flat-square)

Helm Chart for installing a Custom Crossplane API, allowing to create an EFS Filesystem.

Expand Down
9 changes: 6 additions & 3 deletions charts/crossplane-efs/templates/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: {{ .Values.composition.efs.name }}.{{ .Values.xrd.version }}
name: {{ .Values.composition.efs.name }}
labels:
crossplane.io/xrd: elasticfilesystems.{{ .Values.xrd.apiGroup }}.{{ .Values.xrd.version }}
crossplane.io/xrd: elasticfilesystems.{{ .Values.xrd.apiGroup }}
spec:
writeConnectionSecretsToNamespace: crossplane-system
compositeTypeRef:
Expand Down Expand Up @@ -159,7 +159,8 @@ spec:
kind: StorageClass
metadata:
annotations:
restrictedNamespaces: ""
"restrictedNamespaces": ""
"wadtfy.bmwgroup.net/restricted-namespaces": ""
labels:
"crossplane-efs/created-by": crossplane
"crossplane-efs/project-id":
Expand All @@ -184,6 +185,8 @@ spec:
patches:
- fromFieldPath: "metadata.labels[crossplane.io/claim-namespace]"
toFieldPath: "spec.forProvider.manifest.metadata.annotations[restrictedNamespaces]"
- fromFieldPath: "metadata.labels[crossplane.io/claim-namespace]"
toFieldPath: "spec.forProvider.manifest.metadata.annotations[wadtfy.bmwgroup.net/restricted-namespaces]"
- fromFieldPath: "spec.id"
toFieldPath: "spec.forProvider.manifest.metadata.labels[crossplane-efs/project-id]"
- fromFieldPath: "status.fileSystemID"
Expand Down
4 changes: 2 additions & 2 deletions charts/crossplane-efs/templates/network/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: {{ .Values.composition.efs.network.name }}.{{ .Values.xrd.version }}
name: {{ .Values.composition.efs.network.name }}
labels:
crossplane.io/xrd: efsnetworks.{{ .Values.xrd.apiGroup }}.{{ .Values.xrd.version }}
crossplane.io/xrd: efsnetworks.{{ .Values.xrd.apiGroup }}
spec:
writeConnectionSecretsToNamespace: crossplane-system
compositeTypeRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/crossplane-efs/templates/network/xrd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: efsnetworks.{{ .Values.xrd.apiGroup }}.{{ .Values.xrd.version }}
name: efsnetworks.{{ .Values.xrd.apiGroup }}
spec:
group: {{ .Values.xrd.apiGroup }}
names:
Expand Down
2 changes: 1 addition & 1 deletion charts/crossplane-efs/templates/xrd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: elasticfilesystems.{{ .Values.xrd.apiGroup }}.{{ .Values.xrd.version }}
name: elasticfilesystems.{{ .Values.xrd.apiGroup }}
spec:
group: {{ .Values.xrd.apiGroup }}
names:
Expand Down

0 comments on commit a812ac6

Please sign in to comment.