Skip to content

Commit

Permalink
last checkin before implementing script installation
Browse files Browse the repository at this point in the history
  • Loading branch information
artntek committed Jun 17, 2024
1 parent ccb643e commit 1dade31
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion helm/config/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# A script that installs MetacatUI

# EXPECTS THESE FOLLOWING ENV VARS TO BE PRE-SET
# EXPECTS THE FOLLOWING ENV VARS TO BE PRE-SET
# REQUIRED:
# * tag - MetacatUI tag/version or branch name - e.g. 2.29.1
# * hostedRepoTheme - boolean
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-metacatui-configjs
name: {{ .Release.Name }}-metacatui-configfiles
labels:
{{- include "metacatui.labels" . | nindent 4 }}
data:
Expand Down
6 changes: 3 additions & 3 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ spec:
- -c
- >
start=$(date +%s);
# # # # # # TODO - RUN THE MOUNTED /TMP/SCRIPT.SH INSTEAD # # # # # #
VERSION={{ .Values.source.package.version | default .Chart.AppVersion }}
echo "Starting at $start";
VERSION={{ .Values.source.package.version | default .Chart.AppVersion }};
FILENAME=$VERSION.zip;
wget -O ./$FILENAME {{ .Values.source.package.location }}/$FILENAME;
unzip $FILENAME -d /tmp/;
Expand Down Expand Up @@ -104,7 +104,7 @@ spec:
{{- if .Values.appConfig.enabled }}
- name: {{ .Release.Name }}-mcui-config-vol
configMap:
name: {{ .Release.Name }}-metacatui-configjs
name: {{ .Release.Name }}-metacatui-configfiles
defaultMode: 0644
{{- end }}
{{- if not .Values.source.pvc }}
Expand Down
25 changes: 14 additions & 11 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ appConfig:

## Probes
##
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
#livenessProbe:
# httpGet:
# path: /
# port: http
#readinessProbe:
# httpGet:
# path: /
# port: http

service:
type: ClusterIP
Expand All @@ -75,11 +75,11 @@ service:
##
ingress:
enabled: false
className: traefik # enable in rancher desktop
className: traefik # enable in rancher desktop
annotations:
kubernetes.io/ingress.class: traefik
hosts:
- host: myMacbookPro.local # example hostname of local machine
- host: myMacbookPro.local # example hostname of local machine
paths:
- path: /
pathType: Prefix
Expand Down Expand Up @@ -109,6 +109,7 @@ source:
## @param source.package (default): Download the official release version defined in Chart.yaml
## Note these settings ignored unless 'source.from:' is set to 'package'
## example:
## source.from: package
## source.package.location: "https://github.com/NCEAS/metacatui/archive"
## source.package.version: "2.26.0"
## ...will download: https://github.com/NCEAS/metacatui/archive/2.26.0.zip
Expand All @@ -121,7 +122,7 @@ source:
## source.package.version override the release version defined in Chart.yaml
## Assumes release is a zipfile named <version>.zip
## LEAVE COMMENTED UNLESS YOU NEED TO OVERRIDE THE CHART SETTING!
# version: "2.29.1"
# version: "2.29.1"

## @param source.git clone a specific branch or tag from the metacatui git repository, and install
## the files in local pod storage (emptyDir{})
Expand All @@ -140,6 +141,8 @@ source:

## volumes: Uncomment and provide values if you want to use a pre-configured PVC instead of doing a
## git checkout
## Note these settings ignored unless 'source.from:' is set to 'pvc'
##
#volumes:
# ## volumes.name substitute your own release name, but do NOT change the '-mcui-source-files' part
# - name: <Your-Release-Name>-mcui-source-files
Expand Down

0 comments on commit 1dade31

Please sign in to comment.