diff --git a/charts/tce-tmp-storage/.helmignore b/charts/tce-tmp-storage/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/tce-tmp-storage/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/tce-tmp-storage/Chart.yaml b/charts/tce-tmp-storage/Chart.yaml new file mode 100644 index 0000000..b590173 --- /dev/null +++ b/charts/tce-tmp-storage/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: tce-tmp-storage +description: A Helm chart for TCE + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +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: 0.1.3 + +# 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.16.0" diff --git a/charts/tce-tmp-storage/templates/00-remote-cluster.yaml b/charts/tce-tmp-storage/templates/00-remote-cluster.yaml new file mode 100644 index 0000000..018384d --- /dev/null +++ b/charts/tce-tmp-storage/templates/00-remote-cluster.yaml @@ -0,0 +1,25 @@ +{{ if .Values.remoteCluster }} +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: efs-sc +provisioner: efs.csi.aws.com +parameters: + provisioningMode: efs-ap + fileSystemId: {{ .Values.fileSystemId }} + directoryPerms: "700" + gidRangeStart: "1000" # optional + gidRangeEnd: "2000" # optional +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: shared +spec: + storageClassName: efs-sc + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi +{{ end }} diff --git a/charts/tce-tmp-storage/templates/01-local-cluster.yaml b/charts/tce-tmp-storage/templates/01-local-cluster.yaml new file mode 100644 index 0000000..9d598cf --- /dev/null +++ b/charts/tce-tmp-storage/templates/01-local-cluster.yaml @@ -0,0 +1,12 @@ +{{ if not .Values.remoteCluster }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: shared +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi +{{ end }} diff --git a/charts/tce-tmp-storage/values.yaml b/charts/tce-tmp-storage/values.yaml new file mode 100644 index 0000000..01ed86e --- /dev/null +++ b/charts/tce-tmp-storage/values.yaml @@ -0,0 +1,5 @@ +# Default values for tce-tmp-storage. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. +fileSystemId: 0 +remoteCluster: true