Skip to content

Commit

Permalink
fix up grip service so that it can be passed to sower
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Sep 16, 2024
1 parent 92153ca commit 671e040
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helm/grip/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-grip
name: grip-deployment
labels:
{{- include "grip.labels" . | nindent 4 }}
spec:
Expand Down
6 changes: 6 additions & 0 deletions helm/grip/templates/grip-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: grip-values
data:
"serviceName": {{ .Values.serviceName | quote }}
5 changes: 2 additions & 3 deletions helm/grip/templates/post-install.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: grip-mongo-initdb
name: grip-initdb
spec:
backoffLimit: 10
template:
Expand All @@ -19,6 +19,5 @@ spec:
args:
- "-c"
- |
apk add --no-cache curl && \
curl -X POST http://local-grip:8201/v1/graph/CALIPER
apk add --no-cache curl && sleep 10 && curl -X POST 'http://{{ .Values.serviceName }}:8201/v1/graph/CALIPER'
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion helm/grip/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: local-grip
name: {{ .Values.serviceName}}
labels:
{{- include "grip.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/grip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Declare variables to be passed into your templates.

replicaCount: 1
serviceName: grip-service

image:
repository: quay.io/ohsu-comp-bio/grip-caliper
Expand Down
2 changes: 1 addition & 1 deletion helm/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ global:
nameOverride: ""
## @param fullnameOverride String to fully override mongodb.fullname template
##
fullnameOverride: "mongodb-deployment"
fullnameOverride: "local-mongodb"
## @param namespaceOverride String to fully override common.names.namespace
##
namespaceOverride: ""
Expand Down

0 comments on commit 671e040

Please sign in to comment.