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 #59 from matskiv/INTLY-2791
Browse files Browse the repository at this point in the history
INTLY-2791: Add new OPENSHIFT_OAUTH_HOST param
  • Loading branch information
matskiv authored Aug 9, 2019
2 parents 9a0f34b + ee8a670 commit 3cc6b53
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
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.24
TAG=0.0.25
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.24
image: quay.io/integreatly/tutorial-web-app-operator:v0.0.25
ports:
- containerPort: 60000
name: metrics
Expand Down
8 changes: 7 additions & 1 deletion deploy/template/tutorial-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ parameters:
description: The OpenShift master/api host e.g. openshift.example.com:8443. If blank, mock data (and mock service URL params) will be used.
displayName: OpenShift Host
required: false
- name: OPENSHIFT_OAUTH_HOST
description: The OpenShift OAuth host. OpenShift 4 example - https://oauth-openshift.apps.openshift.example.com. On OpenShift it's the same as OPENSHIFT_HOST. If blank, mock data (and mock service URL params) will be used.
displayName: OpenShift Host
required: false
- name: FUSE_URL
description: Mock URL for Fuse. Only used if OPENSHIFT_HOST is empty
required: false
Expand Down Expand Up @@ -72,6 +76,8 @@ objects:
value: ${OPENSHIFT_OAUTHCLIENT_ID}
- name: OPENSHIFT_HOST
value: ${OPENSHIFT_HOST}
- name: OPENSHIFT_OAUTH_HOST
value: ${OPENSHIFT_OAUTH_HOST}
- name: NODE_ENV
value: production
- name: SSO_ROUTE
Expand All @@ -84,7 +90,7 @@ objects:
value: ${CLUSTER_TYPE}
- name: DATABASE_LOCATION
value: ${DATABASE_LOCATION}
image: quay.io/integreatly/tutorial-web-app:2.14.0
image: quay.io/integreatly/tutorial-web-app:2.15.0
imagePullPolicy: Always
name: tutorial-web-app
ports:
Expand Down
2 changes: 1 addition & 1 deletion pkg/handlers/webhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
ClusterTypeDefault = "not set"
)

var webappParams = [...]string{"OPENSHIFT_OAUTHCLIENT_ID", "OPENSHIFT_HOST", "SSO_ROUTE", IntegreatlyVersion, WTLocations, ClusterType}
var webappParams = [...]string{"OPENSHIFT_OAUTHCLIENT_ID", "OPENSHIFT_HOST", "OPENSHIFT_OAUTH_HOST", "SSO_ROUTE", IntegreatlyVersion, WTLocations, ClusterType}

func NewWebHandler(m *metrics.Metrics, osClient openshift.OSClientInterface, factory ClientFactory, cruder SdkCruder) AppHandler {
return AppHandler{
Expand Down
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.24"
Version = "0.0.25"
)

0 comments on commit 3cc6b53

Please sign in to comment.