Skip to content

Commit 904679b

Browse files
committed
Rename openshift-tuned to ocp-tuned
1 parent a8f24bd commit 904679b

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

assets/performanceprofile/configs/ocp-tuned-one-shot.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ExecStart=/usr/bin/podman run \
3636
--volume /run/tuned:/run/tuned:rslave \
3737
--volume /run/systemd:/run/systemd:rslave \
3838
--volume /sys:/sys:rslave \
39-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
39+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
4040
$NTO_IMAGE
4141
Environment=PODMAN_SYSTEMD_UNIT=%n
4242
EnvironmentFile=-/var/lib/ocp-tuned/image.env

assets/tuned/manifests/ds-tuned.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
spec:
2424
serviceAccountName: tuned
2525
containers:
26-
- command: ["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster","-v=0"]
26+
- command: ["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster","-v=0"]
2727
resources:
2828
requests:
2929
cpu: 10m

pkg/apis/tuned/v1/tuned_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
TunedClusterOperatorResourceName = "node-tuning"
2121

2222
// Name of the NTO operand for versioning in ClusterOperator.
23-
TunedOperandName = "openshift-tuned"
23+
TunedOperandName = "ocp-tuned"
2424

2525
// TunedBootcmdlineAnnotationKey is a Node-specific annotation denoting kernel command-line parameters
2626
// calculated by TuneD for the current profile applied to that Node.

pkg/tuned/controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const (
8080
// be generous and give it 10s.
8181
tunedGracefulExitWait = time.Second * time.Duration(10)
8282
ocpTunedHome = "/var/lib/ocp-tuned"
83-
ocpTunedRunDir = "/run/ocp-tuned"
83+
ocpTunedRunDir = "/run/" + programName
8484
ocpTunedProvider = ocpTunedHome + "/provider"
8585
// With the less aggressive rate limiter, retries will happen at 100ms*2^(retry_n-1):
8686
// 100ms, 200ms, 400ms, 800ms, 1.6s, 3.2s, 6.4s, 12.8s, 25.6s, 51.2s, 102.4s, 3.4m, 6.8m, 13.7m, 27.3m
@@ -206,7 +206,7 @@ type Controller struct {
206206

207207
tunedCmd *exec.Cmd // external command (tuned) being prepared or run
208208
tunedExit chan bool // bi-directional channel to signal and register TuneD daemon exit
209-
stopCh <-chan struct{} // receive-only channel to stop the openshift-tuned controller
209+
stopCh <-chan struct{} // receive-only channel to stop the ocp-tuned controller
210210
changeCh chan Change // bi-directional channel to wake-up the main thread to process accrued changes
211211
changeChRet chan bool // bi-directional channel to announce success/failure of change processing
212212
tunedMainCfg *ini.File // global TuneD configuration as defined in tuned-main.conf
@@ -845,7 +845,7 @@ func (c *Controller) tunedReload() error {
845845
}
846846

847847
if c.tunedCmd == nil {
848-
// TuneD hasn't been started by openshift-tuned, start it.
848+
// TuneD hasn't been started by ocp-tuned, start it.
849849
tunedStart()
850850
return nil
851851
}
@@ -1440,7 +1440,7 @@ func (c *Controller) informerEventHandler(workqueueKey wqKeyKube) cache.Resource
14401440
if workqueueKey.kind == wqKindProfile && workqueueKey.name == c.nodeName {
14411441
// When moving this code elsewhere, consider whether it is desirable
14421442
// to disable system tuned on nodes that should not be managed by
1443-
// openshift-tuned.
1443+
// ocp-tuned.
14441444
disableSystemTuned()
14451445
}
14461446

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-master_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-worker_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-mcp/openshift-bootstrap-master_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/extra-mcp/openshift-bootstrap-worker_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/no-mcp/openshift-bootstrap-master_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/bootstrap/no-mcp/openshift-bootstrap-worker_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ spec:
204204
--volume /run/tuned:/run/tuned:rslave \
205205
--volume /run/systemd:/run/systemd:rslave \
206206
--volume /sys:/sys:rslave \
207-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
207+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
208208
$NTO_IMAGE
209209
Environment=PODMAN_SYSTEMD_UNIT=%n
210210
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/default/cpuFrequency/manual_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ spec:
206206
--volume /run/tuned:/run/tuned:rslave \
207207
--volume /run/systemd:/run/systemd:rslave \
208208
--volume /sys:/sys:rslave \
209-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
209+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
210210
$NTO_IMAGE
211211
Environment=PODMAN_SYSTEMD_UNIT=%n
212212
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/default/manual_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ spec:
222222
--volume /run/tuned:/run/tuned:rslave \
223223
--volume /run/systemd:/run/systemd:rslave \
224224
--volume /sys:/sys:rslave \
225-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
225+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
226226
$NTO_IMAGE
227227
Environment=PODMAN_SYSTEMD_UNIT=%n
228228
EnvironmentFile=-/var/lib/ocp-tuned/image.env

test/e2e/performanceprofile/testdata/render-expected-output/no-ref/manual_machineconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ spec:
221221
--volume /run/tuned:/run/tuned:rslave \
222222
--volume /run/systemd:/run/systemd:rslave \
223223
--volume /sys:/sys:rslave \
224-
--entrypoint '["/usr/bin/cluster-node-tuning-operator","openshift-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
224+
--entrypoint '["/usr/bin/cluster-node-tuning-operator","ocp-tuned","--in-cluster=false","--one-shot=true","-v=1"]' \
225225
$NTO_IMAGE
226226
Environment=PODMAN_SYSTEMD_UNIT=%n
227227
EnvironmentFile=-/var/lib/ocp-tuned/image.env

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package version
22

33
const (
4-
OperandFilename = "openshift-tuned"
4+
OperandFilename = "ocp-tuned"
55
OperatorFilename = "cluster-node-tuning-operator"
66
ReleaseVersionEnvVarName = "RELEASE_VERSION"
77
)

0 commit comments

Comments
 (0)