Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for specifying the hostname when using OpenShift. #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion kubernetes/blackduck/README.md
Expand Up @@ -128,7 +128,11 @@ You can access the Black Duck UI by https://${EXTERNAL_IP}

```bash
$ export SERVICE_TYPE=OpenShift
$ helm upgrade ${BD_NAME} synopsys/blackduck --namespace ${BD_NAME} --set exposedServiceType=${SERVICE_TYPE} --reuse-values
$ export HOST_NAME=blackduck.example.com
$ helm upgrade ${BD_NAME} synopsys/blackduck --namespace ${BD_NAME} \
--set exposedServiceType=${SERVICE_TYPE} \
--set route.hostname=${HOST_NAME} \
--reuse-values
```

you can use the following command to get the OpenShift routes
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/blackduck/templates/webserver.yaml
Expand Up @@ -28,7 +28,7 @@ metadata:
name: {{ .Release.Name }}-blackduck
namespace: {{ .Release.Namespace }}
spec:
host: ""
host: "{{ .Values.route.hostname }}"
port:
targetPort: port-443
tls:
Expand Down
4 changes: 4 additions & 0 deletions kubernetes/blackduck/values.yaml
Expand Up @@ -27,6 +27,10 @@ exposedServiceType: NodePort
# custom port to expose the NodePort service on
exposedNodePort: ""

# The hostname for the OpenShift route. An empty hostname lets OpenShift autogenerate the hostname.
route:
hostname: ""

# enable Persistent Storage for containers
enablePersistentStorage: true
# it will apply to all PVC's storage class but it can be override at container level
Expand Down