Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test (ID: bb254f9b-d4d2-49c6-b9e6-156a75856bab) #59

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
17 changes: 17 additions & 0 deletions contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
appVersion: v1.0
description: test
icon: https://raw.githubusercontent.com/eurodatacube/charts/master/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/edc-logo.png?sanitize=true
keywords:
- license:null
- 'license_notes:'
- 'license_price:'
- requirement:eoxhub
- requirement:eurodatacube-geodb
- tag:EO Data
maintainers:
- name: eoxhub_20a41cef-8d63-4030-9e37-aa3412866cee
name: bb254f9b-d4d2-49c6-b9e6-156a75856bab
sources:
- totycro/docker-s3fs-client
version: 0.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "base.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 "base.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "base.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Common labels
*/}}
{{- define "base.labels" -}}
app.kubernetes.io/name: {{ include "base.name" . }}
helm.sh/chart: {{ include "base.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 -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "base.fullname" . }}
labels:
{{ include "base.labels" . | indent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
# force k8s to restart pod to apply config changes
# https://v3.helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: {{ include "base.name" . }}
image: eurodatacube/bb254f9b-d4d2-49c6-b9e6-156a75856bab:{{ .Chart.Version }}
ports:
- name: http
containerPort: 5000
protocol: TCP
env:
- name: GEODB_AUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_client_id
- name: GEODB_AUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_client_secret
- name: GEODB_AUTH_AUD
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_aud
- name: GEODB_AUTH_DOMAIN
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: auth_domain
- name: GEODB_API_SERVER_PORT
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: api_server_port
- name: GEODB_API_SERVER_URL
valueFrom:
secretKeyRef:
name: eurodatacube-geodb-default
key: api_server_url
{{- range $name, $value := .Values.env }}
{{- if not (empty $value) }}
- name: {{ $name | quote }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
resources:
limits:
cpu: "200m"
memory: "800M"
requests:
cpu: "100m"
memory: "400M"
nodeSelector: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: hub.jupyter.org/node-purpose
operator: In
values:
- user
tolerations: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- $fullName := include "base.fullname" . -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{ include "base.labels" . | indent 4 }}
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-read-timeout: '600'
nginx.ingress.kubernetes.io/enable-cors: 'true'
spec:
rules:
- host: {{ .Release.Name }}.{{ .Release.Namespace }}.hub.eox.at
http:
paths:
- backend:
serviceName: {{ $fullName }}
servicePort: http
path: /
tls:
- hosts:
- {{ .Release.Name }}.{{ .Release.Namespace }}.hub.eox.at
secretName: wildcard-tls
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "base.fullname" . }}
labels:
{{ include "base.labels" . | indent 4 }}
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "base.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}