Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
aramovic79 committed Aug 15, 2024
1 parent cd778e7 commit 36d1ec5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ DBUSER ?= root
DBPASSWORD ?= password
IMAGE ?= xreg-server
VERSION_FILE := version.txt
NAMESPACE := ingress-nginx

# Get folders containing tests
TESTDIRS := $(shell find . -name *_test.go -exec dirname {} \; | sort -u)
Expand Down Expand Up @@ -172,9 +173,10 @@ k8: $(GARDEN_OWS3_PATH) $(K8_CLUSTER_PATH)
@export KUBECONFIG=$(K8_CLUSTER_PATH)

k8-apply:
@curl -I http://localhost:8000
@kubectl apply -f misc/mysql.yaml --kubeconfig=$(K8_CLUSTER_PATH) --validate=false
@kubectl apply -f misc/deploy.yaml --kubeconfig=$(K8_CLUSTER_PATH) --validate=false
@echo "Delete $(IMAGE) service from the $(NAMESPACE) namespace first..."
@kubect delete service $(IMAGE) -n $(NAMESPACE)
@kubectl apply -f misc/mysql.yaml
@kubectl apply -f misc/deploy.yaml

k3d: misc/mysql.yaml
@k3d cluster list | grep xreg > /dev/null || \
Expand Down
2 changes: 1 addition & 1 deletion misc/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- image: common.repositories.cloud.sap/apeirora-ows3/xreg-server:1.10.0
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
name: xreg-server
command: [ "/server" ]
args: [ "--recreate" ]
Expand Down
2 changes: 1 addition & 1 deletion misc/mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- image: mysql
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
name: mysql
ports:
- containerPort: 3306
Expand Down

0 comments on commit 36d1ec5

Please sign in to comment.