Skip to content

Commit

Permalink
chore: add tce-tmp-storage 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
foo0x29a committed May 31, 2023
1 parent 802844c commit 1b34235
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/tce-tmp-storage/.helmignore
Original file line number Diff line number Diff line change
@@ -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/
24 changes: 24 additions & 0 deletions charts/tce-tmp-storage/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
25 changes: 25 additions & 0 deletions charts/tce-tmp-storage/templates/00-remote-cluster.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 12 additions & 0 deletions charts/tce-tmp-storage/templates/01-local-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{ if not .Values.remoteCluster }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: shared
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
{{ end }}
5 changes: 5 additions & 0 deletions charts/tce-tmp-storage/values.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1b34235

Please sign in to comment.