Add argo-ci helm chart

pull/4/head
Alexander Matyushentsev 2018-01-03 21:15:57 -08:00
parent bfee1f32cf
commit d5634a3af2
12 changed files with 110 additions and 3 deletions

1
charts/argo-ci/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
charts

View File

@ -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

View File

@ -0,0 +1,4 @@
apiVersion: v1
description: A Helm chart for Kubernetes
name: argo-ci
version: 0.1.0

View File

@ -0,0 +1,6 @@
dependencies:
- name: argo
repository: https://argoproj.github.io/argo-helm
version: 0.1.0
digest: sha256:21178ca15d323c4fa0d8c11dd50b025a590578cee0521202badc2b704af4e292
generated: 2018-01-03T12:11:21.170089-08:00

View File

@ -0,0 +1,4 @@
dependencies:
- name: argo
version: 0.1.0
repository: https://argoproj.github.io/argo-helm

View File

View File

@ -0,0 +1,16 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

View File

@ -0,0 +1,28 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Release.Name }}-ci
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
template:
metadata:
labels:
app: {{ .Release.Name }}-ci
release: {{ .Release.Name }}
spec:
containers:
- name: ci
image: "{{ .Values.imageNamespace }}/{{ .Values.ciImage }}:{{ .Values.imageTag }}"
env:
- name: IN_CLUSTER
value: "true"
- name: NAMESPACE
value: 'default'
- name: ARGO_CI_IMAGE
value: {{ .Values.imageNamespace }}/{{ .Values.ciImage }}
ports:
- containerPort: 8001
- containerPort: 8002

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-ci
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8001
selector:
app: {{ .Release.Name }}-ci
sessionAffinity: None
type: LoadBalancer

View File

@ -0,0 +1,10 @@
imageNamespace: argoproj
ciImage: argoci
imageTag: latest
argo-ci:
imagesNamespace: argoproj
imagesTag: v2.0.0-alpha3
enableWebConsole: false
installMinio: true
minioBucketName: argo-artifacts

View File

@ -2,5 +2,5 @@ dependencies:
- name: minio
repository: https://kubernetes-charts.storage.googleapis.com/
version: 0.4.3
digest: sha256:b67924f37f043c1fa76d5eeae48fc89bfb66d4f181bc470e321db4054959e63e
generated: 2018-01-02T13:30:37.422817-08:00
digest: sha256:2282e3be8457161f7fb79fe1a6a871a972146574b365e69b18d9c46e16d6c47d
generated: 2018-01-03T12:09:41.060101-08:00

View File

@ -1,7 +1,7 @@
imagesNamespace: argoproj
controllerImage: workflow-controller
uiImage: argoui
imagesTag: latest
imagesTag: v2.0.0-alpha3
controllerName: workflow-controller
enableWebConsole: false
executorImage: argoexec