Skip to content

Commit

Permalink
add ref obclutser label to obparameter (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star authored Nov 21, 2024
1 parent 35041af commit 6e84a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/resource/obtenant/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ func (m *OBTenantManager) createOBParameter(parameter *apitypes.Parameter) error
labels := make(map[string]string)
labels[oceanbaseconst.LabelRefUID] = string(m.OBTenant.GetUID())
labels[oceanbaseconst.LabelRefOBTenant] = m.OBTenant.Name
labels[oceanbaseconst.LabelRefOBCluster] = m.OBTenant.Spec.ClusterName
parameterName := m.generateParameterName(parameter.Name)
obparameter := &v1alpha1.OBParameter{
ObjectMeta: metav1.ObjectMeta{
Expand Down
2 changes: 1 addition & 1 deletion make/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build: dashboard-doc-gen dashboard-bindata-gen cli-bindata-gen manifests generat
# (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it.
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
.PHONY: docker-build
docker-build: generate ## Build docker image with the manager.
docker-build: generate fmt ## Build docker image with the manager.
docker build -t ${IMG} --build-arg GOPROXY=${GOPROXY} --build-arg GOSUMDB=${GOSUMDB} --build-arg RACE=${RACE} -f build/Dockerfile.operator .

.PHONY: docker-push
Expand Down

0 comments on commit 6e84a3e

Please sign in to comment.