Skip to content

Commit 3250bcf

Browse files
committed
K8S-657 custom deployment workaround for 1.22+
1 parent 5f571c2 commit 3250bcf

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

configs/settings.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ fields:
1515
required: true
1616
hideLabel: true
1717
default: |-
18-
OPERATOR_NAMESPACE=open-liberty
19-
kubectl create namespace "$OPERATOR_NAMESPACE"
20-
kubectl apply -f https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.1/openliberty-app-crd.yaml
21-
curl -L https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.1/openliberty-app-cluster-rbac.yaml | sed -e "s/OPEN_LIBERTY_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" | kubectl apply -f -
22-
curl -L https://raw.githubusercontent.com/OpenLiberty/open-liberty-operator/master/deploy/releases/0.7.1/openliberty-app-operator.yaml | sed -e "s/OPEN_LIBERTY_WATCH_NAMESPACE/${OPERATOR_NAMESPACE}/" | kubectl apply -n ${OPERATOR_NAMESPACE} -f -
23-
kubectl apply -f https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.22.4/addons/open-liberty.yaml
18+
# k8s 1.22+ doesn't support openliberty-operator yet
19+
declare -l ingress_dir="${settings.ingress-controller}"
20+
kubectl apply -f https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.22.4/addons/helloworld.yaml
21+
kubectl apply -f https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.22.4/addons/ingress/${ingress_dir}/helloworld-ingress.yaml
2422
2523
- name: label
2624
caption: Topology

manifest.jps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ actions:
520520
Credentials - admin / ${this.jaeger_secret}
521521

522522
check-health:
523-
cmd[${nodes.k8sm.master.id}]: /usr/local/sbin/check-install.sh -i=${settings.ingress-controller} -app=${settings.deploy} -dash=${settings.dashboard:none} -m=${settings.monitoring:false} -r=${settings.api} -s=${settings.storage} -j=${settings.jaeger:false} -d=${env.domain} &> /var/log/kubernetes/k8s-health-check.log ||
523+
cmd[${nodes.k8sm.master.id}]: /usr/local/sbin/check-install.sh -i=${settings.ingress-controller} -app=cc -dash=${settings.dashboard:none} -m=${settings.monitoring:false} -r=${settings.api} -s=${settings.storage} -j=${settings.jaeger:false} -d=${env.domain} &> /var/log/kubernetes/k8s-health-check.log ||
524524
echo "> **Note:** Some cluster components have not yet been initialized, and it may take some time for pods to start. If you encounter problems with your cluster, please check K8s logs in /var/log/kubernetes on control-plane node and contact support."
525525
setGlobals:
526526
check_message: ${response.out}

0 commit comments

Comments
 (0)