Skip to content

Commit

Permalink
Convert vstatefulset to v_stateful_set
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Rivera <[email protected]>
  • Loading branch information
codyjrivera committed May 31, 2024
1 parent 710b2a1 commit 0661874
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app=$1
registry=$2

if [ "$app" != "zookeeper" ] && [ "$app" != "rabbitmq" ] && [ "$app" != "fluent" ]\
&& [ "$app" != "vstatefulset" ]; then
&& [ "$app" != "v_stateful_set" ]; then
echo -e "${RED}The first argument has to be one of: zookeeper, rabbitmq, fluent.${NC}"
exit 1
fi
Expand All @@ -25,11 +25,17 @@ if [ "$registry" != "remote" ] && [ "$registry" != "local" ]; then
exit 2
fi

if [ "$app" == "v_stateful_set" ]; then
app_ns="vstatefulset"
else
app_ns=$app
fi

## use imperative management for CRDs since metadata for PodTemplateSpec is too long.
if cd deploy/$1 && kubectl create -f crd.yaml && kubectl apply -f rbac.yaml && kubectl apply -f deploy_$registry.yaml; then
echo ""
echo -e "${GREEN}The $app controller is deployed in your Kubernetes cluster in namespace \"$app\"."
echo -e "Run \"kubectl get pod -n $app\" to check the controller pod."
echo -e "${GREEN}The $app controller is deployed in your Kubernetes cluster in namespace \"$app_ns\"."
echo -e "Run \"kubectl get pod -n $app_ns\" to check the controller pod."
echo -e "Run \"kubectl apply -f deploy/$app/$app.yaml\" to deploy the cluster custom resource(s).${NC}"
else
echo ""
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
app.kubernetes.io/name: vstatefulset-controller
spec:
containers:
- image: local/vstatefulset-controller:v0.1.0
- image: local/v_stateful_set-controller:v0.1.0
imagePullPolicy: IfNotPresent
name: controller
serviceAccountName: vstatefulset-controller
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0661874

Please sign in to comment.