From a92e2f4c7c0799b4c1ea106537352f1f70e5b281 Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Fri, 10 Jan 2020 15:40:58 -0500 Subject: [PATCH] deprecating forwardauth chart (#117) Signed-off-by: Jeff Billimek --- charts/forwardauth/.helmignore | 25 -------- charts/forwardauth/Chart.yaml | 9 --- charts/forwardauth/templates/NOTES.txt | 19 ------ charts/forwardauth/templates/_helpers.tpl | 32 ---------- charts/forwardauth/templates/configmap.yaml | 12 ---- charts/forwardauth/templates/deployment.yaml | 64 -------------------- charts/forwardauth/templates/ingress.yaml | 36 ----------- charts/forwardauth/templates/service.yaml | 19 ------ charts/forwardauth/values.yaml | 62 ------------------- 9 files changed, 278 deletions(-) delete mode 100644 charts/forwardauth/.helmignore delete mode 100644 charts/forwardauth/Chart.yaml delete mode 100644 charts/forwardauth/templates/NOTES.txt delete mode 100644 charts/forwardauth/templates/_helpers.tpl delete mode 100644 charts/forwardauth/templates/configmap.yaml delete mode 100644 charts/forwardauth/templates/deployment.yaml delete mode 100644 charts/forwardauth/templates/ingress.yaml delete mode 100644 charts/forwardauth/templates/service.yaml delete mode 100644 charts/forwardauth/values.yaml diff --git a/charts/forwardauth/.helmignore b/charts/forwardauth/.helmignore deleted file mode 100644 index b56010b0..00000000 --- a/charts/forwardauth/.helmignore +++ /dev/null @@ -1,25 +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 -config/ -target/ -.mvn -src/ diff --git a/charts/forwardauth/Chart.yaml b/charts/forwardauth/Chart.yaml deleted file mode 100644 index 1c2e14b5..00000000 --- a/charts/forwardauth/Chart.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: A Helm chart for Kubernetes to install Auth0 Authorization application for Traefik forward authentication. -name: forwardauth -version: 0.1.0 -home: https://github.com/billimek/billimek-charts/tree/master/forwardauth -maintainers: - - name: dniel - email: dniel@engfeldt.net diff --git a/charts/forwardauth/templates/NOTES.txt b/charts/forwardauth/templates/NOTES.txt deleted file mode 100644 index 1351c608..00000000 --- a/charts/forwardauth/templates/NOTES.txt +++ /dev/null @@ -1,19 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range .Values.ingress.hosts }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "helm.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 svc -w {{ template "helm.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "helm.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={{ template "helm.name" . }},release={{ .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/charts/forwardauth/templates/_helpers.tpl b/charts/forwardauth/templates/_helpers.tpl deleted file mode 100644 index 466bf927..00000000 --- a/charts/forwardauth/templates/_helpers.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "helm.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 "helm.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 "helm.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} diff --git a/charts/forwardauth/templates/configmap.yaml b/charts/forwardauth/templates/configmap.yaml deleted file mode 100644 index 0e38a23d..00000000 --- a/charts/forwardauth/templates/configmap.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "helm.fullname" . }}-config - labels: - app: {{ template "helm.name" . }} - chart: {{ template "helm.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -data: - application.yaml: | -{{ toYaml .Values.applicationYaml | indent 4 }} diff --git a/charts/forwardauth/templates/deployment.yaml b/charts/forwardauth/templates/deployment.yaml deleted file mode 100644 index 0e602791..00000000 --- a/charts/forwardauth/templates/deployment.yaml +++ /dev/null @@ -1,64 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "helm.fullname" . }} - labels: - app: {{ template "helm.name" . }} - chart: {{ template "helm.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - replicas: {{ .Values.replicaCount }} - selector: - matchLabels: - app: {{ template "helm.name" . }} - release: {{ .Release.Name }} - template: - metadata: - labels: - app: {{ template "helm.name" . }} - release: {{ .Release.Name }} - spec: - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - name: http - containerPort: 8080 - protocol: TCP - volumeMounts: - - name: config-volume - mountPath: /config - env: - - name: JVM_OPTS - value: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 - - name: ENV - value: "{{ .Values.logLevel }}" - livenessProbe: - httpGet: - path: /actuator/health - port: http - readinessProbe: - httpGet: - path: /actuator/health - port: http - resources: -{{ toYaml .Values.resources | indent 12 }} - volumes: - - name: config-volume - configMap: - name: {{ template "helm.fullname" . }}-config - - {{- with .Values.nodeSelector }} - nodeSelector: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: -{{ toYaml . | indent 8 }} - {{- end }} diff --git a/charts/forwardauth/templates/ingress.yaml b/charts/forwardauth/templates/ingress.yaml deleted file mode 100644 index 0a2e30be..00000000 --- a/charts/forwardauth/templates/ingress.yaml +++ /dev/null @@ -1,36 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "helm.fullname" . -}} -{{- $servicePort := .Values.service.port -}} -{{- $ingressPath := .Values.ingress.path -}} -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - app: {{ template "helm.name" . }} - chart: {{ template "helm.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -{{- with .Values.ingress.annotations }} - annotations: -{{ toYaml . | indent 4 }} -{{- end }} -spec: -{{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} -{{- end }} - rules: - - http: - paths: - - backend: - serviceName: {{ $fullName }} - servicePort: http - path: /oauth2 -{{- end }} diff --git a/charts/forwardauth/templates/service.yaml b/charts/forwardauth/templates/service.yaml deleted file mode 100644 index c03c7b14..00000000 --- a/charts/forwardauth/templates/service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "helm.fullname" . }} - labels: - app: {{ template "helm.name" . }} - chart: {{ template "helm.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: 8080 - protocol: TCP - name: http - selector: - app: {{ template "helm.name" . }} - release: {{ .Release.Name }} diff --git a/charts/forwardauth/values.yaml b/charts/forwardauth/values.yaml deleted file mode 100644 index 5c0f8bf7..00000000 --- a/charts/forwardauth/values.yaml +++ /dev/null @@ -1,62 +0,0 @@ -replicaCount: 1 - -image: - repository: index.docker.io/dniel/forwardauth - tag: latest - pullPolicy: Always - -# set logLevel to DEBUG, TEST, or PRODUCTION to control the verbosity of logs -logLevel: DEBUG - -service: - type: ClusterIP - port: 80 - -ingress: - enabled: true - annotations: - kubernetes.io/ingress.class: traefik - traefik.frontend.rule.type: PathPrefixStrip - traefik.ingress.kubernetes.io/priority: "99999" - path: /oauth2 - -## Uncomment and complete the following section to set the configuration -# applicationYaml: -# domain: https://xxxxx.xx.auth0.com/ -# token-endpoint: https://xxx.xx.auth0.com/oauth/token -# authorize-url: https://xxxx.xx.auth0.com/authorize -# default: -# name: www.example.test -# client-id: -# client-secret: -# audience: or blank -# scope: "profile openid email" -# redirect-uri: http://www.example.test/oauth2/signin -# token-cookie-domain: example.test -# apps: -# - name: www.example.test -# client-id: -# client-secret: -# audience: or blank -# scope: "profile openid email" -# redirect-uri: http://www.example.test/oauth2/signin -# token-cookie-domain: example.test -# - name: traefik.example.test -# client-id: -# client-secret: -# audience: or blank -# scope: "profile openid email" -# redirect-uri: http://traefik.example.test/oauth2/signin -# token-cookie-domain: traefik.example.test - -resources: - limits: - memory: 512Mi - requests: - memory: 512Mi - -nodeSelector: {} - -tolerations: [] - -affinity: {}