From 25d84d1139587e2e6f972a28639645ba432b3e28 Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:04 +0100 Subject: [PATCH 1/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/edc-logo.png for pull request submission --- .../edc-logo.png | Bin 0 -> 1686 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/edc-logo.png diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/edc-logo.png b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/edc-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1698669061eaac906d8f7873ee51f5fc306771c6 GIT binary patch literal 1686 zcmZ{iX*8Q@8^@nE3=L*#nb)+nq+@K=qL%8UI#VPiB9>6Qd7Ij*!<6*Vq!}u$(r7KC zs16aPL`&^Vsih1KDpDFzOR1!>#V&|gJC84O&O7J4_qp$D`CsS%;l9ok=7B;cl`#;VtuhsVqbq?^}^Ja=$ zdaF9PZJe>~on5|gv7n&`%&hc_FSta_^MCl9La!N{nm>6ZA+Df7<|2p;O-(6j5iYI% z*)?#$I^s-7@{5+fy}dnITkvXf@q%dGDT;1S{{4vC?UugL@#zIEpL^eW$IdK@7Dej_ zue;iQaroPeprj(#m|PvdIFq2n&F!7?HqP$e-p1zk)cnfZk%`2jX1LwWzR^kdJ9+2A zQrRN{n;Va5g^d;M{Rz*S4q8X({uD3S+V;Np)Pa(%fF-T0Z{*jrV)I{F6Eh45w5{zO z!R%6Q?Hff$%G$=}=;R#sR@TJaGR%gURNSnJkKWncrT^J^)Gfv{_K%Xmtv zM?OrQdTvF^!vN9Njc2TAFii)-2DR$X5M}J zN*aCRD+h92_u%CGvT1MFJuBy;V_JcEQ z@%gY`aaHuD)+&RKBn@f2miJ}cUeb-3X57dnk;9)H;X+9M>rg+#^A|51<^1O8h-4MW zdDYuzgF|F_<$~i1A$B&99&c7~JjYV`8)Z`mZzlvKVuAhHp*|c1Z#K+l(%%qzT!}=% z(&aa-TyN*I>;PO2nAk~2^R=^`t5wexcG8XX4JXf=1|cUOX|$QM)Xf(dr6KzL8c(D+ z7X@??jsKvVmi+1x2Xo9Xh#k6a$@FzS*Zj*Jk)Rc=pH{X(TP77IXd;1W>$nDQ z4f98cn$k;fdjnUUrV~?-a8biIvfZoeI?Bs3`$MaB)z1Iy65PK4MTXZgGo4LMHND-oz44b_Pl(l7pTmKwFyHChPy`G5>RBIX#E38$Ww!MhojrhQYFz#rn)Q>s1o&@oGk1gKu42Fbrzi5-DRII0l z%dN4)MG3E6J6kAa5O-0?+~xMYxF=9)Oc2L|>1zpTC!T%6HWY2vC~fIUIJ!9#!}&Q` zy?Xr6`WVHu^dD^5e7W7jajP7xMP;ir!>|g(P=p8r->ITp=79(vJUa0!d+jmX%t()0 z^8{fQ*$AuZFgS2B*38dnOm>CrYMFUBvZT)_W9`(nrqZ%;!e-eP-e*RK$3SruHiT@K zBltnhzIhuBSc)fj=)Xv&2POP@h9N4c?bH2))zbqEPrXeBo}yzmW3W4FD6&p}Z@hyy z-7bDu%+zAT$}?h3l4UJk>qjpVQgnBx!rGVn8oK0E*;+b>3dW~nXjyv_Oh5iZsTZzx zZJKu#Te8xUSuQvq)};8bD2mH+YWjNo?67?FIru(${~{Owx&rnNJR69?h_9qCK|^g2?Fj}D zz(AxwF%U|CiSg<0PZ>kk-0idp(%1}XYGGgu6~=+7o`L^k2)iB-5_IeT8&rCD!;ry) z;^qnB2_!@~@p@25XdnW-6&{EP2?zZFfJ_&N6i% zslb#GD5_ao08Fde4Z#}XcD47ktF_CpsCIewhQO? Date: Tue, 15 Nov 2022 10:30:04 +0100 Subject: [PATCH 2/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md for pull request submission --- contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/README.md @@ -0,0 +1 @@ +test \ No newline at end of file From 73b68ea1cfb85c62c59d5add5ab08ebda51acc83 Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:05 +0100 Subject: [PATCH 3/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml for pull request submission --- .../Chart.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml new file mode 100644 index 0000000..8c3892c --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/Chart.yaml @@ -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 From b46a46167c00d00dda841f2e3cdee3bb423ea9ad Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:06 +0100 Subject: [PATCH 4/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/_helpers.tpl for pull request submission --- .../templates/_helpers.tpl | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/_helpers.tpl diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/_helpers.tpl b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/_helpers.tpl new file mode 100644 index 0000000..870e2c2 --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/_helpers.tpl @@ -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 -}} From 8e4e9d54ee699d5d6706dfae989c3d905d781ab3 Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:07 +0100 Subject: [PATCH 5/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/deployment.yaml for pull request submission --- .../templates/deployment.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/deployment.yaml diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/deployment.yaml b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/deployment.yaml new file mode 100644 index 0000000..38cf5b9 --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/deployment.yaml @@ -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: [] \ No newline at end of file From d281b250ae0f57ba5c314f7082f61f52c0a5fb4c Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:07 +0100 Subject: [PATCH 6/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/ingress.yaml for pull request submission --- .../templates/ingress.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/ingress.yaml diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/ingress.yaml b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/ingress.yaml new file mode 100644 index 0000000..572c3a8 --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/ingress.yaml @@ -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 From ed5edf0aa8521e6256ddf3482b9583ffb9ea50cf Mon Sep 17 00:00:00 2001 From: eurodatacube-submissions <61697821+eurodatacube-submissions@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:30:08 +0100 Subject: [PATCH 7/7] Add contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/service.yaml for pull request submission --- .../templates/service.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/service.yaml diff --git a/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/service.yaml b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/service.yaml new file mode 100644 index 0000000..61908ff --- /dev/null +++ b/contributions/bb254f9b-d4d2-49c6-b9e6-156a75856bab/templates/service.yaml @@ -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 }}