Skip to content

Commit

Permalink
refactor: convert to management repository
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Nov 9, 2019
1 parent 809de9d commit e0eb961
Show file tree
Hide file tree
Showing 155 changed files with 640 additions and 23,436 deletions.
35 changes: 0 additions & 35 deletions Dockerfile

This file was deleted.

Empty file added docker-compose.yml
Empty file.
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ template "swingletree.fullname" . }}
name: deck
labels:
app: {{ template "swingletree.name" . }}
app: deck
chart: {{ template "swingletree.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "swingletree.name" . }}
app: deck
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "swingletree.name" . }}
app: deck
release: {{ .Release.Name }}
spec:
volumes:
Expand All @@ -28,15 +28,8 @@ spec:
secretName: {{ .Release.Name }}-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{ if .Values.redis.password }}
- name: STORAGE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-config
key: redis-credential
{{ end }}
image: "{{ .Values.registry }}:{{ .Values.images.deck }}"
imagePullPolicy: {{ .Values.pullPolicy }}
volumeMounts:
- name: config
mountPath: /opt/swingletree/swingletree.conf.yaml
Expand All @@ -47,7 +40,7 @@ spec:
subPath: gh-app.pem
ports:
- name: http
containerPort: 3000
containerPort: {{ .Values.swingletree.deck.port }}
protocol: TCP
livenessProbe:
httpGet:
Expand Down
66 changes: 66 additions & 0 deletions helm/swingletree/templates/deployment-gate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: gate
labels:
app: gate
chart: {{ template "swingletree.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: gate
release: {{ .Release.Name }}
template:
metadata:
labels:
app: gate
release: {{ .Release.Name }}
spec:
volumes:
- name: config
secret:
secretName: {{ .Release.Name }}-config
- name: appkey
secret:
secretName: {{ .Release.Name }}-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.registry }}:{{ .Values.images.gate }}"
imagePullPolicy: {{ .Values.pullPolicy }}
env:
- name: SCOTTY_URL
value: "http://scotty.{{ .Release.Namespace }}:{{ .Values.swingletree.scotty.port }}"
volumeMounts:
- name: config
mountPath: /opt/swingletree/swingletree.conf.yaml
subPath: swingletree.conf.yaml
readOnly: true
ports:
- name: http
containerPort: {{ .Values.swingletree.gate.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
66 changes: 66 additions & 0 deletions helm/swingletree/templates/deployment-plugin-nebula.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: plugin-nebula
labels:
app: plugin-nebula
chart: {{ template "swingletree.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: plugin-nebula
release: {{ .Release.Name }}
template:
metadata:
labels:
app: plugin-nebula
release: {{ .Release.Name }}
spec:
volumes:
- name: config
secret:
secretName: {{ .Release.Name }}-config
- name: appkey
secret:
secretName: {{ .Release.Name }}-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.registry }}:{{ .Values.images.plugin.nebula }}"
imagePullPolicy: {{ .Values.pullPolicy }}
env:
- name: SCOTTY_URL
value: "http://scotty.{{ .Release.Namespace }}:{{ .Values.swingletree.scotty.port }}"
volumeMounts:
- name: config
mountPath: /opt/swingletree/swingletree.conf.yaml
subPath: swingletree.conf.yaml
readOnly: true
ports:
- name: http
containerPort: {{ .Values.swingletree.gate.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
66 changes: 66 additions & 0 deletions helm/swingletree/templates/deployment-plugin-sonar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: plugin-sonar
labels:
app: plugin-sonar
chart: {{ template "swingletree.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: plugin-sonar
release: {{ .Release.Name }}
template:
metadata:
labels:
app: plugin-sonar
release: {{ .Release.Name }}
spec:
volumes:
- name: config
secret:
secretName: {{ .Release.Name }}-config
- name: appkey
secret:
secretName: {{ .Release.Name }}-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.registry }}:{{ .Values.images.plugin.sonar }}"
imagePullPolicy: {{ .Values.pullPolicy }}
env:
- name: SCOTTY_URL
value: "http://scotty.{{ .Release.Namespace }}:{{ .Values.swingletree.scotty.port }}"
volumeMounts:
- name: config
mountPath: /opt/swingletree/swingletree.conf.yaml
subPath: swingletree.conf.yaml
readOnly: true
ports:
- name: http
containerPort: {{ .Values.swingletree.gate.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
66 changes: 66 additions & 0 deletions helm/swingletree/templates/deployment-plugin-twistlock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: plugin-twistlock
labels:
app: plugin-twistlock
chart: {{ template "swingletree.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: plugin-twistlock
release: {{ .Release.Name }}
template:
metadata:
labels:
app: plugin-twistlock
release: {{ .Release.Name }}
spec:
volumes:
- name: config
secret:
secretName: {{ .Release.Name }}-config
- name: appkey
secret:
secretName: {{ .Release.Name }}-config
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.registry }}:{{ .Values.images.plugin.twistlock }}"
imagePullPolicy: {{ .Values.pullPolicy }}
env:
- name: SCOTTY_URL
value: "http://scotty.{{ .Release.Namespace }}:{{ .Values.swingletree.scotty.port }}"
volumeMounts:
- name: config
mountPath: /opt/swingletree/swingletree.conf.yaml
subPath: swingletree.conf.yaml
readOnly: true
ports:
- name: http
containerPort: {{ .Values.swingletree.gate.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
Loading

0 comments on commit e0eb961

Please sign in to comment.