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

update task service for KUBE_PING requirements #147

Open
wants to merge 1 commit into
base: ocp-4.6
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion cicd-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ objects:
oc new-app --name=tasks --docker-image=quay.io/${QUAY_USERNAME}/${QUAY_REPOSITORY}:latest --allow-missing-images --as-deployment-config -n ${DEV_PROJECT}
oc set triggers dc tasks --remove-all -n ${DEV_PROJECT}
oc patch dc tasks -p '{"spec": {"template": {"spec": {"containers": [{"name": "tasks", "imagePullPolicy": "Always"}]}}}}' -n ${DEV_PROJECT}
oc set env dc/tasks KUBERNETES_NAMESPACE=${DEV_PROJECT}
oc policy add-role-to-user view system:serviceaccount:${DEV_PROJECT}:default -n ${DEV_PROJECT}
oc delete is tasks -n ${DEV_PROJECT}
oc secrets link default quay-cicd-secret --for=pull -n ${DEV_PROJECT}

Expand All @@ -302,6 +304,8 @@ objects:
oc new-app --name=tasks --docker-image=quay.io/${QUAY_USERNAME}/${QUAY_REPOSITORY}:stage --allow-missing-images --as-deployment-config -n ${STAGE_PROJECT}
oc set triggers dc tasks --remove-all -n ${STAGE_PROJECT}
oc patch dc tasks -p '{"spec": {"template": {"spec": {"containers": [{"name": "tasks", "imagePullPolicy": "Always"}]}}}}' -n ${STAGE_PROJECT}
oc set env dc/tasks KUBERNETES_NAMESPACE=${STAGE_PROJECT}
oc policy add-role-to-user view system:serviceaccount:${STAGE_PROJECT}:default -n ${STAGE_PROJECT}
oc delete is tasks -n ${STAGE_PROJECT}
oc secrets link default quay-cicd-secret --for=pull -n ${STAGE_PROJECT}
else
Expand Down Expand Up @@ -353,7 +357,7 @@ objects:
oc process -f https://raw.githubusercontent.com/siamaksade/sonarqube/8/sonarqube-persistent-template.yaml | oc create -f -
fi

oc set resources dc/sonarqube --limits=cpu=1,memory=2.5Gi --requests=cpu=200m,memory=512Mi
oc set resources deployment/sonarqube --limits=cpu=1,memory=2.5Gi --requests=cpu=200m,memory=512Mi

if [ "${EPHEMERAL}" == "true" ] ; then
oc new-app -f https://raw.githubusercontent.com/OpenShiftDemos/nexus/master/nexus3-template.yaml --param=NEXUS_VERSION=3.13.0 --param=MAX_MEMORY=2Gi
Expand Down