Skip to content

Commit

Permalink
fix for other make target
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Lawton committed Jun 28, 2024
1 parent 50e4d81 commit d640573
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ authorino-manifests: ## Update authorino manifests.
> config/authorino/kustomization.yaml

generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
$(CONTROLLER_GEN) -h object:headerFile="hack/boilerplate.go.txt" paths="./..."

fmt: ## Run go fmt against code.
go fmt ./...
Expand Down
2 changes: 1 addition & 1 deletion controllers/authorino_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func (r *AuthorinoReconciler) createAuthorinoServices(authorino *api.Authorino)
} else {
httpPort = defaultMetricsServicePort
}

// operator metrics service
desiredServices = append(desiredServices, authorinoResources.NewOperatorMetricsService(
authorinoInstanceName,
Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/k8s_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func NewOperandMetricsService(authorinoName, serviceNamespace string, port int32
if port != 0 {
ports = append(ports, newServicePort("http", port))
}
return newService("-metrics", serviceNamespace, authorinoName, labels, ports...)

return newService("metrics", serviceNamespace, authorinoName, labels, ports...)
}

func NewOperatorMetricsService(authorinoName, serviceNamespace string, port int32, labels map[string]string) *k8score.Service {
Expand Down

0 comments on commit d640573

Please sign in to comment.