Skip to content

Commit

Permalink
Helm chat and CI changes for upstreaming (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac authored Oct 5, 2020
1 parent f511c5f commit a9d8639
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 44 deletions.
43 changes: 36 additions & 7 deletions deploy/ci/console-dev-releases.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This pipeline creates an Alpha, Beta or RC release
---
resource_types:
- name: docker-image
Expand Down Expand Up @@ -46,7 +47,19 @@ resources:
username: ((docker-username))
password: ((docker-password))
repository: ((docker-repository))/stratos-console

- name: kube-terminal-image
type: docker-image
source:
username: ((docker-username))
password: ((docker-password))
repository: ((docker-repository))/stratos-kube-terminal
- name: analyzers-image
type: docker-image
source:
username: ((docker-username))
password: ((docker-password))
repository: ((docker-repository))/stratos-analyzers

# Artifacts
- name: image-tag
type: s3
Expand Down Expand Up @@ -129,23 +142,39 @@ jobs:
tag: image-tag/v2-alpha-tag
patch_base_reg: ((patch-base-reg))
patch_base_tag: ((patch-base-tag))
- do:
- do:
- put: ui-image
params:
dockerfile: stratos/deploy/Dockerfile.ui
build: stratos/
target_name: prod-build
tag: image-tag/v2-alpha-tag
build_args_file: image-tag/ui-build-args
patch_base_reg: ((patch-base-reg))
patch_base_tag: ((patch-base-tag))
- put: config-init-image
params:
dockerfile: stratos/deploy/Dockerfile.init
build: stratos/
tag: image-tag/v2-alpha-tag
patch_base_reg: ((patch-base-reg))
patch_base_tag: ((patch-base-tag))
- put: ui-image
- do:
- put: analyzers-image
params:
dockerfile: stratos/deploy/Dockerfile.ui
build: stratos/
target_name: prod-build
dockerfile: stratos/src/jetstream/plugins/analysis/container/Dockerfile
build: stratos/src/jetstream/plugins/analysis/container/
tag: image-tag/v2-alpha-tag
build_args_file: image-tag/ui-build-args
patch_base_reg: ((patch-base-reg))
patch_base_tag: ((patch-base-tag))
- put: kube-terminal-image
params:
dockerfile: stratos/deploy/containers/kube-terminal/Dockerfile.kubeterminal
build: stratos/deploy/containers/kube-terminal
tag: image-tag/v2-alpha-tag
patch_base_reg: ((patch-base-reg))
patch_base_tag: ((patch-base-tag))

- name: create-chart
plan:
- get: stratos
Expand Down
8 changes: 8 additions & 0 deletions deploy/kubernetes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ if [ "${CHART_ONLY}" == "false" ]; then
log "-- Building/publishing the runtime container image for the Console web server (frontend)"
patchAndPushImage stratos-console deploy/Dockerfile.ui "${STRATOS_PATH}" prod-build

# Build and push an image for the Kubernetes Terminal
log "-- Building/publishing Kubernetes Terminal"
patchAndPushImage stratos-kube-terminal Dockerfile.kubeterminal "${STRATOS_PATH}/deploy/containers/kube-terminal"

# Analzyers container
log "-- Building/publishing Stratos Analyzers"
patchAndPushImage stratos-analyzers Dockerfile "${STRATOS_PATH}/src/jetstream/plugins/analysis/container"

# Build any custom images added by a fork
if [ "${HAS_CUSTOM_BUILD}" == "true" ]; then
custom_image_build
Expand Down
8 changes: 8 additions & 0 deletions deploy/kubernetes/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ spec:
- name: UI_LIST_ALLOW_LOAD_MAXED
value: {{ default "false" .Values.console.ui.listAllowLoadMaxed | quote }}
{{- end }}
- name: ANALYSIS_SERVICES_API
value: "http://{{ .Release.Name }}-analyzers:8090"
- name: STRATOS_KUBERNETES_NAMESPACE
value: "{{ .Release.Namespace }}"
- name: STRATOS_KUBERNETES_TERMINAL_IMAGE
value: "{{.Values.kube.registry.hostname}}/{{.Values.kube.organization}}/stratos-kube-terminal:{{.Values.consoleVersion}}"
- name: STRATOS_KUBERNETES_DASHBOARD_IMAGE
value: "{{.Values.console.kubeDashboardImage}}"
{{- include "stratosJetstreamEnv" . | indent 8 }}
readinessProbe:
httpGet:
Expand Down
13 changes: 0 additions & 13 deletions deploy/kubernetes/custom/__stratos.tpl

This file was deleted.

23 changes: 0 additions & 23 deletions deploy/kubernetes/custom/custom-build.sh

This file was deleted.

3 changes: 2 additions & 1 deletion deploy/kubernetes/custom/customize-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ echo "Customizations folder: ${DIR}"
echo "Chart folder : ${CHART_PATH}"
echo ""

# Kubernetes has been upstreamed, so no customizations at this time
# ===========================================================================================
# Copy our customization helper over the default, empty one
# ===========================================================================================
cp "${DIR}/__stratos.tpl" "${CHART_PATH}/templates/__stratos.tpl"
#cp "${DIR}/__stratos.tpl" "${CHART_PATH}/templates/__stratos.tpl"

# ===========================================================================================
# Chart.yaml changes
Expand Down

0 comments on commit a9d8639

Please sign in to comment.