Skip to content

Commit

Permalink
Merge pull request #666 from bhumi46/develop
Browse files Browse the repository at this point in the history
[MOSIP-36477]updated keystorejob,role and rolebinding name
  • Loading branch information
ckm007 authored Oct 10, 2024
2 parents 5bc792f + af97305 commit c4cefa5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
8 changes: 7 additions & 1 deletion deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ function installing_regclient() {
kubectl label ns $NS istio-injection=enabled --overwrite
helm repo update

read -p "Is values.yaml for data-archive chart set correctly as part of Pre-requisites?(Y/n) " yn
if [[ "$yn" != "Y" ]]; then
echo "ERROR: values.yaml not set correctly; EXITING."
exit 1
fi

echo Copy configmaps
sed -i 's/\r$//' copy_cm.sh
./copy_cm.sh
Expand All @@ -26,7 +32,7 @@ function installing_regclient() {
HEALTH_URL=https://$INTERNAL_HOST/v1/syncdata/actuator/health

echo Installing reg client downloader. This may take a few minutes ..
helm -n $NS install regclient mosip/regclient \
helm -n $NS install regclient mosip/regclient -f values.yaml \
--set regclient.upgradeServerUrl=https://$REGCLIENT_HOST \
--set regclient.healthCheckUrl=$HEALTH_URL \
--set regclient.hostName=$INTERNAL_HOST \
Expand Down
6 changes: 6 additions & 0 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
regclient:
version: 1.2.1-SNAPSHOT
image:
registry: docker.io
repository: mosipqa/registration-client
tag: develop
2 changes: 1 addition & 1 deletion helm/regclient/templates/keystorejob.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ .Values.job.name }}-{{ .Release.Namespace }}"
name: "{{ .Values.job.image.name }}-{{ .Release.Namespace }}"
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/managed-by: {{.Release.Service | quote }}
Expand Down
2 changes: 1 addition & 1 deletion helm/regclient/templates/keystorerole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Release.Namespace }}
name: "{{ .Values.job.rolename }}-{{ .Release.Namespace }}"
name: "{{ .Values.job.image.rolename }}-{{ .Release.Namespace }}"
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "-4" #The Role will execute after the ServiceAccount
Expand Down
2 changes: 1 addition & 1 deletion helm/regclient/templates/keystorerolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: "{{ .Values.job.rolebindingname }}-{{ .Release.Namespace }}"
name: "{{ .Values.job.image.rolebindingname }}-{{ .Release.Namespace }}"
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install
Expand Down
6 changes: 3 additions & 3 deletions helm/regclient/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ startupProbe:
initialDelaySeconds: 0
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 10
failureThreshold: 60
successThreshold: 1

livenessProbe:
Expand All @@ -108,7 +108,7 @@ livenessProbe:
initialDelaySeconds: 20
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 2
failureThreshold: 60
successThreshold: 1

readinessProbe:
Expand All @@ -119,7 +119,7 @@ readinessProbe:
initialDelaySeconds: 0
periodSeconds: 60
timeoutSeconds: 5
failureThreshold: 2
failureThreshold: 60
successThreshold: 1

##
Expand Down

0 comments on commit c4cefa5

Please sign in to comment.