Skip to content

Commit f582ae5

Browse files
refactor: remove co occurrences
1 parent f386eb2 commit f582ae5

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ The detailed guide covers:
416416

417417
### Migration from Legacy Configuration
418418

419-
**Important**: The old method of using hardcoded secret names (such as `co-dynatrace-credentials`) has been deprecated and removed. You must now use DataSink resources to configure your metrics destinations.
419+
**Important**: The old method of using hardcoded secret names (such as `dynatrace-credentials`) has been deprecated and removed. You must now use DataSink resources to configure your metrics destinations.
420420

421421
To migrate:
422422
1. Create a DataSink resource pointing to your existing authentication secret

config/rbac/datasink_editor_role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
app.kubernetes.io/name: clusterrole
77
app.kubernetes.io/instance: datasink-editor-role
88
app.kubernetes.io/component: rbac
9-
app.kubernetes.io/created-by: co-metrics-operator
10-
app.kubernetes.io/part-of: co-metrics-operator
9+
app.kubernetes.io/created-by: metrics-operator
10+
app.kubernetes.io/part-of: metrics-operator
1111
app.kubernetes.io/managed-by: kustomize
1212
name: datasink-editor-role
1313
rules:

config/rbac/datasink_viewer_role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
app.kubernetes.io/name: clusterrole
77
app.kubernetes.io/instance: datasink-viewer-role
88
app.kubernetes.io/component: rbac
9-
app.kubernetes.io/created-by: co-metrics-operator
10-
app.kubernetes.io/part-of: co-metrics-operator
9+
app.kubernetes.io/created-by: metrics-operator
10+
app.kubernetes.io/part-of: metrics-operator
1111
app.kubernetes.io/managed-by: kustomize
1212
name: datasink-viewer-role
1313
rules:

docs/datasink-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ Previously, the operator used hardcoded secret names:
304304
apiVersion: v1
305305
kind: Secret
306306
metadata:
307-
name: co-dynatrace-credentials # Hardcoded name
308-
namespace: co-metrics-operator # Hardcoded namespace
307+
name: dynatrace-credentials # Hardcoded name
308+
namespace: metrics-operator # Hardcoded namespace
309309
type: Opaque
310310
data:
311311
api-token: <base64-encoded-token>
@@ -371,7 +371,7 @@ data:
371371

372372
**Error**: `401 Unauthorized` or similar authentication errors
373373

374-
**Solution**:
374+
**Solution**:
375375
- Verify the API token is correct and has the necessary permissions
376376
- Check that the token is properly base64 encoded in the secret
377377
- Ensure the endpoint URL is correct for your data sink

examples/dev-core/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
apiVersion: rbac.authorization.k8s.io/v1
66
kind: ClusterRole
77
metadata:
8-
name: co-monitor-metrics-operator
8+
name: monitor-metrics-operator
99
rules:
1010
- apiGroups: [ "" ]
1111
resources: [ "serviceaccounts/token" ]

examples/remoteclusteraccess/crate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
clusterSecretRef:
99
name: crate-cluster
1010
namespace: cola-system
11-
serviceAccountName: co-monitor-metrics-operator
11+
serviceAccountName: monitor-metrics-operator
1212
serviceAccountNamespace: metrics-operator

examples/remoteclusteraccess/crate/crateroles.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
4-
name: co-monitor-metrics-operator
4+
name: monitor-metrics-operator
55
rules:
66
- apiGroups:
77
- cola.cloud.sap
@@ -46,12 +46,12 @@ rules:
4646
apiVersion: rbac.authorization.k8s.io/v1
4747
kind: ClusterRoleBinding
4848
metadata:
49-
name: co-monitor-metrics-operator
49+
name: monitor-metrics-operator
5050
roleRef:
5151
apiGroup: rbac.authorization.k8s.io
5252
kind: ClusterRole
53-
name: co-monitor-metrics-operator
53+
name: monitor-metrics-operator
5454
subjects:
5555
- apiGroup: rbac.authorization.k8s.io
5656
kind: User
57-
name: dev-core:system:serviceaccount:metrics-operator:co-monitor-metrics-operator
57+
name: dev-core:system:serviceaccount:metrics-operator:monitor-metrics-operator

examples/remoteclusteraccess/metric_with_rca.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ spec:
2121
apiVersion: metrics.cloud.sap/v1alpha1
2222
kind: Metric
2323
metadata:
24-
name: crate-co-metric
24+
name: crate-metric
2525
spec:
26-
name: crate-co-metric
26+
name: crate-metric
2727
description: Number of CloudOrchestrators in the Crate cluster
2828
target:
2929
kind: CloudOrchestrator

0 commit comments

Comments
 (0)