Skip to content

Commit e502955

Browse files
committed
fix: change configuration in api deployment in mlsyosp_cli
1 parent c235586 commit e502955

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mlsysops-cli/mlsysops_cli/deployment/api-service-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
command: ["sh", "-c", "echo 'Waiting...' && sleep 4"]
2222
containers:
2323
- name: nb-api-service
24-
image: harbor.nbfc.io/mlsysops/northbound-api
24+
image: {{ CONTAINER_IMAGE }}
2525
ports:
2626
- containerPort: 8000
2727
name: http-port

mlsysops-cli/mlsysops_cli/deployment/deploy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ def deploy_core_services():
619619
client_k8s.create_or_update(r)
620620

621621
api_path = files(deployment).joinpath("api-service-deployment.yaml")
622-
for r in parse_yaml_from_file(api_path, {"KARMADA_HOST_IP": os.getenv("KARMADA_HOST_IP")}):
622+
for r in parse_yaml_from_file(api_path, {"KARMADA_HOST_IP": os.getenv("KARMADA_HOST_IP"),
623+
"CONTAINER_IMAGE": os.getenv("API_CONTAINER_IMAGE","harbor.nbfc.io/mlsysops/northbound-api")
624+
}):
623625
client_k8s.create_or_update(r)
624626

625627
redis_path = files(deployment).joinpath("redis-stack-deployment.yaml")

0 commit comments

Comments
 (0)