Skip to content

Commit

Permalink
add model-server/estimator to KeplerInternal
Browse files Browse the repository at this point in the history
Signed-off-by: Sunyanan Choochotkaew <[email protected]>
  • Loading branch information
sunya-ch committed Dec 8, 2023
1 parent 9388ecc commit 95bf443
Show file tree
Hide file tree
Showing 22 changed files with 2,816 additions and 273 deletions.
4 changes: 3 additions & 1 deletion bundle/manifests/kepler-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ metadata:
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/kepler-operator:0.9.2
createdAt: "2023-12-04T08:14:16Z"
createdAt: "2023-12-08T08:56:48Z"
description: 'Deploys and Manages Kepler on Kubernetes '
operators.operatorframework.io/builder: operator-sdk-v1.27.0
operators.operatorframework.io/internal-objects: |-
Expand Down Expand Up @@ -108,6 +108,7 @@ spec:
- apps
resources:
- daemonsets
- deployments
verbs:
- create
- delete
Expand All @@ -119,6 +120,7 @@ spec:
- ""
resources:
- configmaps
- persistentvolumeclaims
- serviceaccounts
- services
verbs:
Expand Down

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ import (
securityv1 "github.com/openshift/api/security/v1"

keplersystemv1alpha1 "github.com/sustainable.computing.io/kepler-operator/pkg/api/v1alpha1"
"github.com/sustainable.computing.io/kepler-operator/pkg/components/estimator"
"github.com/sustainable.computing.io/kepler-operator/pkg/components/exporter"
"github.com/sustainable.computing.io/kepler-operator/pkg/components/modelserver"
"github.com/sustainable.computing.io/kepler-operator/pkg/controllers"
"github.com/sustainable.computing.io/kepler-operator/pkg/utils/k8s"
//+kubebuilder:scaffold:imports
Expand Down Expand Up @@ -99,6 +101,9 @@ func main() {
flag.StringVar(&controllers.Config.Image, "kepler.image", keplerImage, "kepler image")
flag.StringVar(&controllers.Config.ImageLibbpf, "kepler.image.libbpf", keplerImageLibbpf, "kepler libbpf image")

flag.StringVar(&controllers.InternalConfig.ModelServerImage, "estimator.image", estimator.StableImage, "kepler estimator image")
flag.StringVar(&controllers.InternalConfig.EstimatorImage, "model-server.image", modelserver.StableImage, "kepler model server image")

opts := zap.Options{
Development: true,
}
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
- name: RELATED_IMAGE_KEPLER_LIBBPF
value: '<KEPLER_IMG_LIBBPF>'
args:
# TODO: move --openshift to openshift specific kustomize directory
# TODO: move --openshift and deployment-namespace to openshift specific kustomize directory
- --openshift
- --leader-elect
- --kepler.image=$(RELATED_IMAGE_KEPLER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ spec:
resources:
- configmaps
- persistentvolumeclaims
- persistentvolumes
- serviceaccounts
- services
verbs:
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rules:
- apps
resources:
- daemonsets
- deployments
verbs:
- create
- delete
Expand All @@ -19,6 +20,7 @@ rules:
- ""
resources:
- configmaps
- persistentvolumeclaims
- serviceaccounts
- services
verbs:
Expand Down
Loading

0 comments on commit 95bf443

Please sign in to comment.