Skip to content

Commit

Permalink
Add GPU/TPU addonplacementscore in node scope and cluster scope for e…
Browse files Browse the repository at this point in the history
…ach managed clusters, develop the add-on in addontemplate mode. (open-cluster-management-io#20)

Signed-off-by: z1ens <[email protected]>
  • Loading branch information
z1ens committed Aug 28, 2024
1 parent ebebf50 commit bae7db4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resource-usage-collect-addon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PWD=$(shell pwd)
# Image URL to use all building/pushing image targets;
GO_BUILD_PACKAGES :=./pkg/...
IMAGE ?= resource-usage-collect-addon
IMAGE_REGISTRY ?= zheshen
IMAGE_REGISTRY ?= quay.io/haoqing
IMAGE_TAG ?= latest
IMAGE_NAME ?= $(IMAGE_REGISTRY)/$(IMAGE):$(IMAGE_TAG)

Expand Down Expand Up @@ -53,7 +53,7 @@ images: ## Build addon binary.
.PHONY: deploy
deploy: kustomize
cp deploy/kustomization.yaml deploy/kustomization.yaml.tmp
cd deploy && $(KUSTOMIZE) edit set image example-addon-image=$(IMAGE_NAME) && $(KUSTOMIZE) edit add configmap image-config --from-literal=IMAGE_NAME=$(IMAGE_NAME)
cd deploy && $(KUSTOMIZE) edit set image example-addon-image=$(IMAGE_NAME)
$(KUSTOMIZE) build deploy | $(KUBECTL) apply -f -
mv deploy/kustomization.yaml.tmp deploy/kustomization.yaml

Expand Down
2 changes: 1 addition & 1 deletion resource-usage-collect-addon/deploy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:

images:
- name: example-addon-image
newName: zheshen/resource-usage-collect-addon
newName: quay.io/open-cluster-management/resource-usage-collect-addon
newTag: latest
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
serviceAccount: resource-usage-collect-agent-sa
containers:
- name: resource-usage-collect-agent
image: zheshen/resource-usage-collect-addon:latest
image: example-addon-image
imagePullPolicy: Always
args:
- "/addon"
Expand Down

0 comments on commit bae7db4

Please sign in to comment.