Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #52 from integr8ly/INTLY-1993
Browse files Browse the repository at this point in the history
Intly 1993
  • Loading branch information
pb82 authored Jun 4, 2019
2 parents 7faa7a4 + d7018a5 commit 5abdc24
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 73 deletions.
2 changes: 2 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SHELL=/bin/bash
REG=quay.io
ORG=integreatly
IMAGE=tutorial-web-app-operator
TAG=0.0.18
TAG=0.0.19
KUBE_CMD=oc apply -f
DEPLOY_DIR=deploy
OUT_STATIC_DIR=tmp/_output
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: tutorial-web-app-operator
containers:
- name: tutorial-web-app-operator
image: quay.io/integreatly/tutorial-web-app-operator:v0.0.18
image: quay.io/integreatly/tutorial-web-app-operator:v0.0.19
ports:
- containerPort: 60000
name: metrics
Expand Down
163 changes: 93 additions & 70 deletions deploy/template/tutorial-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,75 +31,98 @@ parameters:
description: A comma separated list of git repositories or paths to walkthrough directories
value: https://github.com/integr8ly/tutorial-web-app-walkthroughs.git#v1.6.4
required: true
- name: DATABASE_LOCATION
description: The location of the user walkthroughs database in the filesystem
value: /opt/user-walkthroughs
required: true
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
app: tutorial-web-app
strategy:
rollingParams:
timeoutSeconds: 3600
type: Rolling
template:
metadata:
labels:
app: tutorial-web-app
spec:
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: OPENSHIFT_OAUTHCLIENT_ID
value: ${OPENSHIFT_OAUTHCLIENT_ID}
- name: OPENSHIFT_HOST
value: ${OPENSHIFT_HOST}
- name: NODE_ENV
value: production
- name: SSO_ROUTE
value: ${SSO_ROUTE}
- name: WALKTHROUGH_LOCATIONS
value: ${WALKTHROUGH_LOCATIONS}
- name: INTEGREATLY_VERSION
value: ${INTEGREATLY_VERSION}
image: quay.io/integreatly/tutorial-web-app:2.10.3
imagePullPolicy: Always
name: tutorial-web-app
ports:
- containerPort: 5001
name: http
protocol: TCP
triggers:
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
ports:
- name: http
port: 5001
selector:
app: tutorial-web-app
- apiVersion: v1
kind: Route
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
tls:
termination: edge
to:
kind: Service
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
app: tutorial-web-app
strategy:
rollingParams:
timeoutSeconds: 3600
type: Rolling
template:
metadata:
labels:
app: tutorial-web-app
spec:
volumes:
- name: user-walkthroughs
persistentVolumeClaim:
claimName: user-walkthroughs
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: OPENSHIFT_OAUTHCLIENT_ID
value: ${OPENSHIFT_OAUTHCLIENT_ID}
- name: OPENSHIFT_HOST
value: ${OPENSHIFT_HOST}
- name: NODE_ENV
value: production
- name: SSO_ROUTE
value: ${SSO_ROUTE}
- name: WALKTHROUGH_LOCATIONS
value: ${WALKTHROUGH_LOCATIONS}
- name: INTEGREATLY_VERSION
value: ${INTEGREATLY_VERSION}
- name: DATABASE_LOCATION
value: ${DATABASE_LOCATION}
image: quay.io/integreatly/tutorial-web-app:2.10.4
imagePullPolicy: Always
name: tutorial-web-app
ports:
- containerPort: 5001
name: http
protocol: TCP
volumeMounts:
- mountPath: ${DATABASE_LOCATION}
name: user-walkthroughs
triggers:
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
ports:
- name: http
port: 5001
selector:
app: tutorial-web-app
- apiVersion: v1
kind: Route
metadata:
labels:
app: tutorial-web-app
name: tutorial-web-app
spec:
tls:
termination: edge
to:
kind: Service
name: tutorial-web-app
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: user-walkthroughs
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "100Mi"
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

var (
Version = "0.0.18"
Version = "0.0.19"
)

0 comments on commit 5abdc24

Please sign in to comment.