From a361e6d7d16561d948efe8b95e4d520b57ef1dc7 Mon Sep 17 00:00:00 2001 From: Josh Dolitsky Date: Thu, 28 Sep 2017 12:09:49 -0500 Subject: [PATCH] add chartmuseum 0.1.0 to incubator (#2302) --- incubator/chartmuseum/.helmignore | 21 ++++++++++ incubator/chartmuseum/Chart.yaml | 10 +++++ incubator/chartmuseum/README.md | 5 +++ incubator/chartmuseum/requirements.lock | 11 +++++ incubator/chartmuseum/requirements.yaml | 4 ++ .../chartmuseum/templates/deployment.yaml | 42 +++++++++++++++++++ incubator/chartmuseum/templates/service.yaml | 16 +++++++ incubator/chartmuseum/values.yaml | 16 +++++++ 8 files changed, 125 insertions(+) create mode 100644 incubator/chartmuseum/.helmignore create mode 100644 incubator/chartmuseum/Chart.yaml create mode 100644 incubator/chartmuseum/README.md create mode 100644 incubator/chartmuseum/requirements.lock create mode 100644 incubator/chartmuseum/requirements.yaml create mode 100644 incubator/chartmuseum/templates/deployment.yaml create mode 100644 incubator/chartmuseum/templates/service.yaml create mode 100644 incubator/chartmuseum/values.yaml diff --git a/incubator/chartmuseum/.helmignore b/incubator/chartmuseum/.helmignore new file mode 100644 index 0000000000..f0c1319444 --- /dev/null +++ b/incubator/chartmuseum/.helmignore @@ -0,0 +1,21 @@ +# 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 +*~ +# Various IDEs +.project +.idea/ +*.tmproj diff --git a/incubator/chartmuseum/Chart.yaml b/incubator/chartmuseum/Chart.yaml new file mode 100644 index 0000000000..e07f733bc5 --- /dev/null +++ b/incubator/chartmuseum/Chart.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +description: Helm Chart Repository with support for Amazon S3 and Google Cloud Storage +name: chartmuseum +version: 0.1.0 +appVersion: 0.1.0 +home: https://github.com/chartmuseum/chartmuseum +icon: https://raw.githubusercontent.com/chartmuseum/chartmuseum/master/logo.png +maintainers: +- name: ChartMuseum + email: chartmuseum@gmail.com diff --git a/incubator/chartmuseum/README.md b/incubator/chartmuseum/README.md new file mode 100644 index 0000000000..4a978b90e3 --- /dev/null +++ b/incubator/chartmuseum/README.md @@ -0,0 +1,5 @@ +# ChartMuseum Helm Chart + +Work in progress... + +Please see https://github.com/chartmuseum/chartmuseum \ No newline at end of file diff --git a/incubator/chartmuseum/requirements.lock b/incubator/chartmuseum/requirements.lock new file mode 100644 index 0000000000..89c7c23cae --- /dev/null +++ b/incubator/chartmuseum/requirements.lock @@ -0,0 +1,11 @@ +dependencies: +- alias: "" + condition: "" + enabled: false + import-values: null + name: common + repository: https://kubernetes-charts-incubator.storage.googleapis.com/ + tags: null + version: 0.0.1 +digest: sha256:321cd050dce9ef5f3665adff9323163820ac4c7d18b91876a520e6f0e8b49d46 +generated: 2017-09-20T00:29:42.620906219-05:00 diff --git a/incubator/chartmuseum/requirements.yaml b/incubator/chartmuseum/requirements.yaml new file mode 100644 index 0000000000..31bd631df6 --- /dev/null +++ b/incubator/chartmuseum/requirements.yaml @@ -0,0 +1,4 @@ +dependencies: +- name: common + version: 0.0.1 + repository: https://kubernetes-charts-incubator.storage.googleapis.com/ diff --git a/incubator/chartmuseum/templates/deployment.yaml b/incubator/chartmuseum/templates/deployment.yaml new file mode 100644 index 0000000000..d0feb6ea80 --- /dev/null +++ b/incubator/chartmuseum/templates/deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: {{ include "common.fullname" . }} + labels: +{{ include "common.labels.standard" . | indent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + template: + metadata: + name: {{ include "common.fullname" . }} + labels: + app: {{ template "common.name" . }} + release: {{ .Release.Name | quote }} + spec: + volumes: + - name: storage-volume + emptyDir: {} + containers: + - name: {{ .Chart.Name }} + image: {{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - --port={{ .Values.service.internalPort }} + - --debug + - --storage=local + - --storage-local-rootdir=/storage + ports: + - containerPort: {{ .Values.service.internalPort }} + livenessProbe: + httpGet: + path: /index.yaml + port: {{ .Values.service.internalPort }} + readinessProbe: + httpGet: + path: /index.yaml + port: {{ .Values.service.internalPort }} + volumeMounts: + - mountPath: /storage + name: storage-volume + resources: +{{ toYaml .Values.resources | indent 10 }} diff --git a/incubator/chartmuseum/templates/service.yaml b/incubator/chartmuseum/templates/service.yaml new file mode 100644 index 0000000000..3a90e53326 --- /dev/null +++ b/incubator/chartmuseum/templates/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.fullname" . }} + labels: +{{ include "common.labels.standard" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.externalPort }} + targetPort: {{ .Values.service.internalPort }} + protocol: TCP + name: {{ .Release.Name }} + selector: + app: {{ template "common.name" . }} + release: {{ .Release.Name | quote }} diff --git a/incubator/chartmuseum/values.yaml b/incubator/chartmuseum/values.yaml new file mode 100644 index 0000000000..dc883e81c9 --- /dev/null +++ b/incubator/chartmuseum/values.yaml @@ -0,0 +1,16 @@ +replicaCount: 1 +image: + repository: chartmuseum/chartmuseum + tag: v0.1.0 + pullPolicy: IfNotPresent +service: + type: ClusterIP + externalPort: 8080 + internalPort: 8080 +resources: + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 80m + memory: 64Mi