Skip to content
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
24 changes: 24 additions & 0 deletions infra/ocp4-master
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,27 @@ Admin User Name: kubeadmin
Password: $CRED
+================================================+
EOF

# set ocp ui console banner color
case "$cluster" in
1) bgcolor='#fe5000' ;; # orange
2) bgcolor='#40b605' ;; # green
3) bgcolor='#0074d9' ;; # blue
4) bgcolor='#8e44ad' ;; # purple
5) bgcolor='#ffdc00' ;; # yellow
6) bgcolor='#ff4136' ;; # red
7) bgcolor='#7fdbff' ;; # light blue
8) bgcolor='#145a32' ;; # dark green
esac

cat <<EOF | kubectl apply -f -
apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
name: clusternumber
spec:
text: cluster-$cluster
location: BannerTop
color: '#fff'
backgroundColor: '$bgcolor'
EOF
19 changes: 0 additions & 19 deletions scripts/ocp-kubevirt
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,3 @@ while [ ! "$HC" == "True" ]; do
done

kubectl apply -f /assets/kubevirt/storageprofile.yml

# add colored console notification on OCP GUI
if [ $cluster == "1" ]; then
bgcolor='#fe5000'
else
bgcolor='#40b605'
fi

cat <<EOF | kubectl apply -f -
apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
name: clusternumber
spec:
text: cluster-$cluster
location: BannerTop
color: '#fff'
backgroundColor: '$bgcolor'
EOF
Loading