From 430053202b7fc93768a1f81606d08af2fd2d7e9d Mon Sep 17 00:00:00 2001 From: armab Date: Tue, 20 Nov 2018 18:20:33 +0000 Subject: [PATCH 1/2] Fix LoadBalancer templating to utilize correct service endpoints in NOTES --- Chart.yaml | 2 +- templates/NOTES.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index 3aed51b4..22f6c01c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 # Update StackStorm version here to rely on other Docker images tags appVersion: 3.0dev name: stackstorm-ha -version: 0.8.1 +version: 0.8.2 description: StackStorm K8s Helm Chart, optimized for running StackStorm in HA environment. home: https://stackstorm.com/#product icon: https://avatars1.githubusercontent.com/u/4969009 diff --git a/templates/NOTES.txt b/templates/NOTES.txt index 26b1342b..fd808433 100644 --- a/templates/NOTES.txt +++ b/templates/NOTES.txt @@ -11,15 +11,15 @@ Congratulations! You have just deployed StackStorm {{ if .Values.enterprise.enab {{- if contains "LoadBalancer" .Values.st2web.service.type }} NOTE: It may take a few minutes for the LoadBalancer IP to be available. - Watch the status with "kubectl get service st2cicd-st2web-enterprise -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'" + Watch the status with "kubectl get service {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'" -export ST2WEB_IP=$(kubectl get service st2cicd-st2web-enterprise -o jsonpath='{.status.loadBalancer.ingress[0].hostname}') +export ST2WEB_IP=$(kubectl get service {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}') echo https://${ST2WEB_IP}/ {{- else if contains "ClusterIP" .Values.st2web.service.type }} echo https://127.0.0.1:8443 -kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ .Release.Name }}-st2web-{{ if .Values.enterprise.enabled }}-enterprise {{ end }} 8443:443 +kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} 8443:443 {{- end }} {{- if contains "NodePort" .Values.st2web.service.type }} From 4942c126bb01ce2c18ce3cfa8b2b5434b07a6ac0 Mon Sep 17 00:00:00 2001 From: armab Date: Tue, 20 Nov 2018 18:27:14 +0000 Subject: [PATCH 2/2] Add a CHANGELOG for v0.8.2 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff6792c6..88dbf50a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## In Development +## v0.8.2 +* Fix LoadBalancer templating to utilize correct service endpoints in NOTES (#39) + ## v0.8.1 * Ensure st2sensorcontainer is re-deployed on `st2.packs.configs` change (#37)