aboutsummaryrefslogtreecommitdiff
path: root/grumpy/znc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--grumpy/znc/.helmignore22
-rw-r--r--grumpy/znc/Chart.yaml5
-rw-r--r--grumpy/znc/templates/NOTES.txt21
-rw-r--r--grumpy/znc/templates/_helpers.tpl56
-rw-r--r--grumpy/znc/templates/deployment.yaml56
-rw-r--r--grumpy/znc/templates/ingress.yaml37
-rw-r--r--grumpy/znc/templates/secrets.yaml14
-rw-r--r--grumpy/znc/templates/service.yaml16
-rw-r--r--grumpy/znc/templates/serviceaccount.yaml8
-rw-r--r--grumpy/znc/templates/tests/test-connection.yaml15
-rw-r--r--grumpy/znc/values.yaml56
11 files changed, 0 insertions, 306 deletions
diff --git a/grumpy/znc/.helmignore b/grumpy/znc/.helmignore
deleted file mode 100644
index 50af031..0000000
--- a/grumpy/znc/.helmignore
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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
-.vscode/
diff --git a/grumpy/znc/Chart.yaml b/grumpy/znc/Chart.yaml
deleted file mode 100644
index ae14e7c..0000000
--- a/grumpy/znc/Chart.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-apiVersion: v1
-appVersion: "0.0.1"
-description: A Helm chart for Kubernetes
-name: znc
-version: 0.1.0
diff --git a/grumpy/znc/templates/NOTES.txt b/grumpy/znc/templates/NOTES.txt
deleted file mode 100644
index 0d8515f..0000000
--- a/grumpy/znc/templates/NOTES.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-1. Get the application URL by running these commands:
-{{- if .Values.ingress.enabled }}
-{{- range $host := .Values.ingress.hosts }}
- {{- range .paths }}
- http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }}
- {{- end }}
-{{- end }}
-{{- else if contains "NodePort" .Values.service.type }}
- export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "znc.fullname" . }})
- export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
- echo http://$NODE_IP:$NODE_PORT
-{{- else if contains "LoadBalancer" .Values.service.type }}
- NOTE: It may take a few minutes for the LoadBalancer IP to be available.
- You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "znc.fullname" . }}'
- export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "znc.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
- echo http://$SERVICE_IP:{{ .Values.service.port }}
-{{- else if contains "ClusterIP" .Values.service.type }}
- export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "znc.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
- echo "Visit http://127.0.0.1:8080 to use your application"
- kubectl port-forward $POD_NAME 8080:80
-{{- end }}
diff --git a/grumpy/znc/templates/_helpers.tpl b/grumpy/znc/templates/_helpers.tpl
deleted file mode 100644
index c1801c6..0000000
--- a/grumpy/znc/templates/_helpers.tpl
+++ /dev/null
@@ -1,56 +0,0 @@
-{{/* vim: set filetype=mustache: */}}
-{{/*
-Expand the name of the chart.
-*/}}
-{{- define "znc.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).
-If release name contains chart name it will be used as a full name.
-*/}}
-{{- define "znc.fullname" -}}
-{{- if .Values.fullnameOverride -}}
-{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
-{{- else -}}
-{{- $name := default .Chart.Name .Values.nameOverride -}}
-{{- if contains $name .Release.Name -}}
-{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
-{{- else -}}
-{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Create chart name and version as used by the chart label.
-*/}}
-{{- define "znc.chart" -}}
-{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
-{{- end -}}
-
-{{/*
-Common labels
-*/}}
-{{- define "znc.labels" -}}
-app.kubernetes.io/name: {{ include "znc.name" . }}
-helm.sh/chart: {{ include "znc.chart" . }}
-app.kubernetes.io/instance: {{ .Release.Name }}
-{{- if .Chart.AppVersion }}
-app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
-{{- end }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Create the name of the service account to use
-*/}}
-{{- define "znc.serviceAccountName" -}}
-{{- if .Values.serviceAccount.create -}}
- {{ default (include "znc.fullname" .) .Values.serviceAccount.name }}
-{{- else -}}
- {{ default "default" .Values.serviceAccount.name }}
-{{- end -}}
-{{- end -}}
diff --git a/grumpy/znc/templates/deployment.yaml b/grumpy/znc/templates/deployment.yaml
deleted file mode 100644
index e33b6ac..0000000
--- a/grumpy/znc/templates/deployment.yaml
+++ /dev/null
@@ -1,56 +0,0 @@
-{{- $fullName := include "znc.fullname" . -}}
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: {{ $fullName }}
- labels:
-{{ include "znc.labels" . | indent 4 }}
-spec:
- replicas: {{ .Values.replicaCount }}
- selector:
- matchLabels:
- app.kubernetes.io/name: {{ include "znc.name" . }}
- app.kubernetes.io/instance: {{ .Release.Name }}
- template:
- metadata:
- labels:
- app.kubernetes.io/name: {{ include "znc.name" . }}
- app.kubernetes.io/instance: {{ .Release.Name }}
- spec:
- {{- with .Values.imagePullSecrets }}
- imagePullSecrets:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- serviceAccountName: {{ template "znc.serviceAccountName" . }}
- securityContext:
- runAsUser: 1000
- runAsGroup: 1000
- fsGroup: 1000
- containers:
- - name: {{ .Chart.Name }}
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- resources:
- {{- toYaml .Values.resources | nindent 12 }}
- volumeMounts:
- - name: zncconf
- mountPath: "/mnt/config"
- volumes:
- - name: zncconf
- secret:
- secretName: {{ $fullName }}-confs
- items:
- - key: znc
- path: znc.tar.gz
- {{- with .Values.nodeSelector }}
- nodeSelector:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.affinity }}
- affinity:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.tolerations }}
- tolerations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
diff --git a/grumpy/znc/templates/ingress.yaml b/grumpy/znc/templates/ingress.yaml
deleted file mode 100644
index d307bf1..0000000
--- a/grumpy/znc/templates/ingress.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-{{- if .Values.ingress.enabled -}}
-{{- $fullName := include "znc.fullname" . -}}
-{{- $svcPort := .Values.service.port -}}
-apiVersion: extensions/v1beta1
-kind: Ingress
-metadata:
- name: {{ $fullName }}
- labels:
-{{ include "znc.labels" . | indent 4 }}
- {{- with .Values.ingress.annotations }}
- annotations:
- {{- toYaml . | nindent 4 }}
- {{- end }}
-spec:
-{{- if .Values.ingress.tls }}
- tls:
- {{- range .Values.ingress.tls }}
- - hosts:
- {{- range .hosts }}
- - {{ . | quote }}
- {{- end }}
- secretName: {{ .secretName }}
- {{- end }}
-{{- end }}
- rules:
- {{- range .Values.ingress.hosts }}
- - host: {{ .host | quote }}
- http:
- paths:
- {{- range .paths }}
- - path: {{ . }}
- backend:
- serviceName: {{ $fullName }}
- servicePort: {{ $svcPort }}
- {{- end }}
- {{- end }}
-{{- end }}
diff --git a/grumpy/znc/templates/secrets.yaml b/grumpy/znc/templates/secrets.yaml
deleted file mode 100644
index 22b9e9a..0000000
--- a/grumpy/znc/templates/secrets.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-{{- $fullName := include "znc.fullname" . -}}
-apiVersion: v1
-kind: Secret
-metadata:
- name: {{ $fullName }}-confs
- type: Opaque
- labels:
-{{ include "znc.labels" . | indent 4 }}
-data:
-{{- range $path, $value := .Values.confs }}
-{{ $path | indent 2 }}: |-
-{{ $value | indent 4 }}
-{{- end }}
-
diff --git a/grumpy/znc/templates/service.yaml b/grumpy/znc/templates/service.yaml
deleted file mode 100644
index 77b7f45..0000000
--- a/grumpy/znc/templates/service.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: {{ include "znc.fullname" . }}
- labels:
-{{ include "znc.labels" . | indent 4 }}
-spec:
- type: {{ .Values.service.type }}
- ports:
- - port: {{ .Values.service.port }}
- targetPort: 6555
- protocol: TCP
- name: http
- selector:
- app.kubernetes.io/name: {{ include "znc.name" . }}
- app.kubernetes.io/instance: {{ .Release.Name }}
diff --git a/grumpy/znc/templates/serviceaccount.yaml b/grumpy/znc/templates/serviceaccount.yaml
deleted file mode 100644
index f21c536..0000000
--- a/grumpy/znc/templates/serviceaccount.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-{{- if .Values.serviceAccount.create -}}
-apiVersion: v1
-kind: ServiceAccount
-metadata:
- name: {{ template "znc.serviceAccountName" . }}
- labels:
-{{ include "znc.labels" . | indent 4 }}
-{{- end -}}
diff --git a/grumpy/znc/templates/tests/test-connection.yaml b/grumpy/znc/templates/tests/test-connection.yaml
deleted file mode 100644
index 4abc720..0000000
--- a/grumpy/znc/templates/tests/test-connection.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-apiVersion: v1
-kind: Pod
-metadata:
- name: "{{ include "znc.fullname" . }}-test-connection"
- labels:
-{{ include "znc.labels" . | indent 4 }}
- annotations:
- "helm.sh/hook": test-success
-spec:
- containers:
- - name: wget
- image: busybox
- command: ['wget']
- args: ['{{ include "znc.fullname" . }}:{{ .Values.service.port }}']
- restartPolicy: Never
diff --git a/grumpy/znc/values.yaml b/grumpy/znc/values.yaml
deleted file mode 100644
index 595cfc8..0000000
--- a/grumpy/znc/values.yaml
+++ /dev/null
@@ -1,56 +0,0 @@
-# Default values for znc.
-# This is a YAML-formatted file.
-# Declare variables to be passed into your templates.
-
-replicaCount: 1
-
-image:
- repository: registry.gitlab.com/grumps/grumpy-containers/znc
- tag: v0.0.1
- pullPolicy: IfNotPresent
-
-nameOverride: ""
-fullnameOverride: ""
-
-serviceAccount:
- # Specifies whether a service account should be created
- create: false
- # The name of the service account to use.
- # If not set and create is true, a name is generated using the fullname template
- name:
-
-service:
- type: LoadBalancer
- port: 6555
-
-ingress:
- enabled: false
- annotations: {}
- # kubernetes.io/ingress.class: nginx
- # kubernetes.io/tls-acme: "true"
- hosts:
- - host: znc.ofmax.li
- paths: []
-
- tls: []
- # - secretName: chart-example-tls
- # hosts:
- # - chart-example.local
-
-resources: {}
- # We usually recommend not to specify default resources and to leave this as a conscious
- # choice for the user. This also increases chances charts run on environments with little
- # resources, such as Minikube. If you do want to specify resources, uncomment the following
- # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
- # limits:
- # cpu: 100m
- # memory: 128Mi
- # requests:
- # cpu: 100m
- # memory: 128Mi
-
-nodeSelector: {}
-
-tolerations: []
-
-affinity: {}