Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2403353
chore: make manifests
maximiliantech Jun 2, 2025
cb3c6b6
docs(readme): update sample
maximiliantech Jun 2, 2025
fb174bd
chore: remove `ClusterAccess` CRD
maximiliantech Jun 2, 2025
d81924c
fix: remove test
maximiliantech Jun 2, 2025
4797ad7
fix(helm): image location
maximiliantech Jun 2, 2025
5fff4a5
refactor: co-metrics-operator to metrics-operator
maximiliantech Jun 2, 2025
84d833e
refactor: co-dynatrace-credentials to dynatrace-credentials
maximiliantech Jun 2, 2025
5861bca
chore: merge main
maximiliantech Jun 3, 2025
f6dafb9
refactor: main.go
maximiliantech Jun 3, 2025
e7ad057
chore: update rbac
maximiliantech Jun 3, 2025
a787519
chore: cleanup PROJECT file
maximiliantech Jun 3, 2025
bf133f0
fix: remove unused file
maximiliantech Jun 3, 2025
e2eac25
docs: update example
maximiliantech Jun 3, 2025
f386eb2
fix(PROJECT): version of CRD
maximiliantech Jun 3, 2025
f582ae5
refactor: remove `co` occurrences
maximiliantech Jun 3, 2025
defc99a
chore: delete files
maximiliantech Jun 3, 2025
020c1c7
fix: kustomization
maximiliantech Jun 4, 2025
031ff23
fix: sample secret
maximiliantech Jun 4, 2025
45c981b
fix: sample file
maximiliantech Jun 4, 2025
b94153d
chore: simplify Makefile
maximiliantech Jun 4, 2025
038f943
Revert "chore: simplify Makefile"
maximiliantech Jun 4, 2025
4421b50
Merge branch 'main' into docs/improvements
maximiliantech Jun 5, 2025
d498213
chore: simplify Makefile & add comments
maximiliantech Jun 5, 2025
780b534
refactor(make): target name
maximiliantech Jun 5, 2025
6450f1f
chore(makefile): simplify
maximiliantech Jun 5, 2025
476b26d
Merge branch 'docs/improvements' of https://github.com/SAP/metrics-op…
maximiliantech Jun 5, 2025
c740a6d
chore: restructure Makefile
maximiliantech Jun 5, 2025
183028c
chore: update sample secret
maximiliantech Jun 5, 2025
6876c10
fix: `make run` target
maximiliantech Jun 5, 2025
9c563e8
fix: remove folder
maximiliantech Jun 5, 2025
4589443
delete sample secret
maximiliantech Jun 5, 2025
626c48b
chore: clean up Makefile
maximiliantech Jun 5, 2025
5eefb0d
fix(Makefile): golang-ci installation
maximiliantech Jun 6, 2025
d916267
docs(reamde): restructure table of contents
maximiliantech Jun 6, 2025
866d530
chore: update .gitignore
maximiliantech Jun 6, 2025
c807b7e
docs(readme): enrich quickstart
maximiliantech Jun 6, 2025
7e66d14
docs(readme): add CRD links to resource type definitions
maximiliantech Jun 6, 2025
d13b1d8
docs(readme): update table of contents
maximiliantech Jun 6, 2025
b771dd6
docs(readme): update install instructions
maximiliantech Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ resources:
kind: RemoteClusterAccess
path: github.com/SAP/metrics-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
kind: CompoundMetric
path: github.com/SAP/metrics-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -47,14 +39,6 @@ resources:
kind: FederatedMetric
path: github.com/SAP/metrics-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
kind: ClusterAccess
path: github.com/SAP/metrics-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ The projections are then translated to dimensions in the metric.
apiVersion: metrics.cloud.sap/v1alpha1
kind: Metric
metadata:
name: comp-pod
name: pod
spec:
name: comp-metric-pods
name: metric-pods
description: Pods
target:
kind: Pod
Expand Down
4 changes: 2 additions & 2 deletions charts/metrics-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Default values for co-metrics-operator.
# Default values for metrics-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: deploy-releases-hyperspace-docker.common.cdn.repositories.cloud.sap/cloud-orchestration/co-metrics-operator
repository: ghcr.io/sap/github.com/sap/metrics-operator/images/metrics-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: v0.5.2-dev
Expand Down
4 changes: 2 additions & 2 deletions charts/metrics-operator/values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Default values for co-metrics-operator.
# Default values for metrics-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: deploy-releases-hyperspace-docker.common.cdn.repositories.cloud.sap/cloud-orchestration/co-metrics-operator
repository: ghcr.io/sap/github.com/sap/metrics-operator/images/metrics-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: $OPERATOR_VERSION
Expand Down
83 changes: 0 additions & 83 deletions cmd/embedded/crds/metrics.cloud.sap_clusteraccesses.yaml

This file was deleted.

18 changes: 7 additions & 11 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,14 @@ func main() {
os.Exit(1)
}

// TODO: to deprecate v1beta1 resources
setupMetricController(mgr)

setupManagedMetricController(mgr)

setupReconcilersV1beta1(mgr)
setupFederatedMetricController(mgr)

setupFederatedManagedMetricController(mgr)

if err = (&controller.ClusterAccessReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "ClusterAccess")
os.Exit(1)
}
//+kubebuilder:scaffold:builder

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
Expand All @@ -199,17 +194,18 @@ func main() {
}
}

func setupReconcilersV1beta1(mgr ctrl.Manager) {
func setupFederatedMetricController(mgr ctrl.Manager) {
if err := (controller.NewFederatedMetricReconciler(mgr)).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create reconciler", "controller", "federated metric")
os.Exit(1)
}
}

func setupFederatedManagedMetricController(mgr ctrl.Manager) {
if err := (controller.NewFederatedManagedMetricReconciler(mgr)).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create reconciler", "controller", "federated managed metric")
os.Exit(1)
}

}

func setupMetricController(mgr ctrl.Manager) {
Expand Down
83 changes: 0 additions & 83 deletions config/crd/bases/metrics.cloud.sap_clusteraccesses.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: co-metrics-operator-system
namespace: metrics-operator-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: co-metrics-operator-
namePrefix: metrics-operator-

# Labels to add to all resources and selectors.
#labels:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: co-metrics-operator
newName: metrics-operator
newTag: dev
8 changes: 4 additions & 4 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: namespace
app.kubernetes.io/instance: system
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: system
---
Expand All @@ -21,8 +21,8 @@ metadata:
app.kubernetes.io/name: deployment
app.kubernetes.io/instance: controller-manager
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
spec:
selector:
Expand Down
4 changes: 2 additions & 2 deletions config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
app.kubernetes.io/name: servicemonitor
app.kubernetes.io/instance: controller-manager-metrics-monitor
app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-monitor
namespace: system
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_client_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: metrics-reader
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: metrics-reader
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: proxy-role
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: proxy-role
rules:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/instance: proxy-rolebinding
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: proxy-rolebinding
roleRef:
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/auth_proxy_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: service
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: controller-manager-metrics-service
namespace: system
Expand Down
4 changes: 2 additions & 2 deletions config/rbac/clientconfig_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
app.kubernetes.io/name: clusterrole
app.kubernetes.io/instance: clientconfig-editor-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: co-metrics-operator
app.kubernetes.io/part-of: co-metrics-operator
app.kubernetes.io/created-by: metrics-operator
app.kubernetes.io/part-of: metrics-operator
app.kubernetes.io/managed-by: kustomize
name: clientconfig-editor-role
rules:
Expand Down
Loading
Loading