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

SIDM-3511 - Update chart-java release 2.16.0 #318

Merged
merged 4 commits into from
Feb 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static LinkedHashMap<String, Object> secret(String secretName, String envVar) {

withPipeline(type, product, component) {
loadVaultSecrets(secrets)
enableDockerBuild()
enableSlackNotifications('#idam_tech')
installCharts()

Expand Down
29 changes: 17 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,28 @@ UNAME := $(uname)

setup:
- @if [ -z "${HELM_INSTALLED}" ] && [[ "${UNAME}" == 'Darwin' ]]; then \
brew install kubernetes-helm ; \
brew install helm ; \
henrydobson marked this conversation as resolved.
Show resolved Hide resolved
elif $$(helm version | grep -q 'v2'); then \
brew upgrade helm ; \
fi
az account set --subscription ${ACR_SUBSCRIPTION}
az configure --defaults acr=${ACR}
az acr helm repo add
az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER}
@az account set --subscription ${ACR_SUBSCRIPTION}
@az configure --defaults acr=${ACR}
@az acr helm repo add
@az aks get-credentials --resource-group ${AKS_RESOURCE_GROUP} --name ${AKS_CLUSTER}
- @if [ ! -d $${HOME}/.helm ]; then \
helm init --client-only ; \
fi

clean:
- @helm delete --purge ${RELEASE}
- @helm uninstall --namespace ${NAMESPACE} ${RELEASE}
- @for i in $$(kubectl -n ${NAMESPACE} get deploy -o name | grep ${RELEASE}); do \
kubectl -n ${NAMESPACE} delete $${i} --grace-period=0 --force ; \
done
- @for i in $$(kubectl -n ${NAMESPACE} get rs -o name | grep ${RELEASE}); do \
kubectl -n ${NAMESPACE} delete $${i} --grace-period=0 --force ; \
kubectl -n ${NAMESPACE} delete $${i} --grace-period=0 --force ; \
done
- @for i in $$(kubectl -n ${NAMESPACE} get pod -o name | grep ${RELEASE}); do \
kubectl -n ${NAMESPACE} delete $${i} --grace-period=0 --force ; \
kubectl -n ${NAMESPACE} delete $${i} --grace-period=0 --force ; \
done

update:
Expand All @@ -41,16 +46,16 @@ lint:
helm lint charts/${CHART}

template:
helm template charts/${CHART}
helm template ${RELEASE} --set "java.releaseNameOverride=${RELEASE}" --namespace ${NAMESPACE} charts/${CHART}

dry-run:
helm install charts/${CHART} --name ${RELEASE} --namespace ${NAMESPACE} -f ci-values.yaml --dry-run --timeout 30 --atomic
helm install ${RELEASE} --set "java.releaseNameOverride=${RELEASE}" --namespace ${NAMESPACE} --dry-run --timeout 30s --atomic charts/${CHART}

deploy:
helm install charts/${CHART} --name ${RELEASE} --namespace ${NAMESPACE} --wait --timeout 30
helm install ${RELEASE} --set "java.releaseNameOverride=${RELEASE}" --set "java.replicas=1" --namespace ${NAMESPACE} --wait --timeout 8m charts/${CHART}

test:
helm test charts/${RELEASE}
helm test ${RELEASE} --namespace ${NAMESPACE}

force-update-pods:
@kubectl -n ${NAMESPACE} scale --current-replicas=2 --replicas=0 deploy/idam-api
Expand Down
2 changes: 1 addition & 1 deletion charts/idam-web-public/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for HMCTS Reform IDAM Web Public
name: idam-web-public
version: 0.2.2
version: 0.2.3
maintainers:
- name: Amido Reform SIDAM Team
email: reform.idam@HMCTS.NET
Expand Down
2 changes: 1 addition & 1 deletion charts/idam-web-public/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: java
version: ~2.11.1
version: ~2.16.0
repository: '@hmctspublic'
6 changes: 6 additions & 0 deletions charts/idam-web-public/values.aat.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
java:
releaseNameOverride: ${SERVICE_NAME}
image: ${IMAGE_NAME}
ingressHost: ${SERVICE_FQDN}
ingressIP: ${INGRESS_IP}
consulIP: ${CONSUL_LB_IP}
2 changes: 1 addition & 1 deletion charts/idam-web-public/values.preview.template.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
java:
releaseNameOverride: ${SERVICE_NAME}
image: ${IMAGE_NAME}
replicas: 2
replicas: 1
ingressHost: ${SERVICE_FQDN}
ingressIP: ${INGRESS_IP}
consulIP: ${CONSUL_LB_IP}
7 changes: 6 additions & 1 deletion charts/idam-web-public/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ java:
devmemoryRequests: '512Mi'
devcpuRequests: '1000m'
devmemoryLimits: '1024Mi'
devcpuLimits: '2500m'
devcpuLimits: '2500m'

global:
tenantId: "531ff96d-0ae9-462a-8d2d-bec7c0b42082"
environment: preview
enableKeyVaults: true