Skip to content

Commit

Permalink
chore: update ops api name in examples (#7264)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjing99 authored May 7, 2024
1 parent 8f483a8 commit ca4caf5
Show file tree
Hide file tree
Showing 297 changed files with 336 additions and 336 deletions.
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/configure-vtgate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand All @@ -30,5 +30,5 @@ spec:
# Specifies the name of the configuration template.
name: vtgate-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/configure-vttablet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand All @@ -30,5 +30,5 @@ spec:
# Specifies the name of the configuration template.
name: vttablet-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/configure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand All @@ -32,5 +32,5 @@ spec:
# Specifies the name of the configuration template.
name: mysql-consensusset-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/expose-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Disable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/expose-enable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Enable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/horizontalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: HorizontalScaling
# Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options
horizontalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/restart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: Restart
# Lists Components to be restarted. ComponentOps specifies the Component to be operated on.
restart:
Expand Down
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/smartengine-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand Down Expand Up @@ -34,5 +34,5 @@ spec:
# Specifies the name of the configuration template.
name: mysql-consensusset-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
4 changes: 2 additions & 2 deletions examples/apecloud-mysql/smartengine-enable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand Down Expand Up @@ -34,5 +34,5 @@ spec:
# Specifies the name of the configuration template.
name: mysql-consensusset-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: Start
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/stop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: Stop
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/switchover-specified-instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: acmysql-switchover-specify
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: Switchover
# Lists Switchover objects, each specifying a Component to perform the switchover operation.
switchover:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/switchover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: acmysql-switchover
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: Switchover
# Lists Switchover objects, each specifying a Component to perform the switchover operation.
switchover:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/verticalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: VerticalScaling
# Lists VerticalScaling objects, each specifying a component and its desired compute resources for vertical scaling.
verticalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-mysql/volumeexpand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: acmysql-cluster
clusterName: acmysql-cluster
type: VolumeExpansion
# Lists VolumeExpansion objects, each specifying a component and its corresponding volumeClaimTemplates that requires storage expansion.
volumeExpansion:
Expand Down
4 changes: 2 additions & 2 deletions examples/apecloud-postgresql/expose-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Disable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
4 changes: 2 additions & 2 deletions examples/apecloud-postgresql/expose-enable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Enable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/horizontalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: HorizontalScaling
# Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options
horizontalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/restart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: Restart
# Lists Components to be restarted. ComponentOps specifies the Component to be operated on.
restart:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: Start
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/stop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: Stop
4 changes: 2 additions & 2 deletions examples/apecloud-postgresql/switchover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: ac-postgresql-switchover
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: Custom
customSpec:
components:
Expand All @@ -16,4 +16,4 @@ spec:
value: ""
opsDefinitionRef: switchover
parallelism: 0
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/verticalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: VerticalScaling
# Lists VerticalScaling objects, each specifying a component and its desired compute resources for vertical scaling.
verticalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/apecloud-postgresql/volumeexpand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: ac-postgresql-cluster
clusterName: ac-postgresql-cluster
type: VolumeExpansion
# Lists VolumeExpansion objects, each specifying a component and its corresponding volumeClaimTemplates that requires storage expansion.
volumeExpansion:
Expand Down
4 changes: 2 additions & 2 deletions examples/camellia-redis-proxy/configure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
# Instructs the system to bypass pre-checks (including cluster state checks and customized pre-conditions hooks) and immediately execute the opsRequest, except for the opsRequest of 'Start' type, which will still undergo pre-checks even if `force` is true. Note: Once set, the `force` field is immutable and cannot be updated.
force: false
# Specifies a component and its configuration updates. This field is deprecated and replaced by `reconfigures`.
Expand Down Expand Up @@ -38,5 +38,5 @@ spec:
# Specifies the name of the configuration template.
name: application-config
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Reconfiguring
4 changes: 2 additions & 2 deletions examples/camellia-redis-proxy/expose-disable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Disable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
4 changes: 2 additions & 2 deletions examples/camellia-redis-proxy/expose-enable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
# Lists Expose objects, each specifying a Component and its services to be exposed.
expose:
# Specifies the name of the Component.
Expand All @@ -17,5 +17,5 @@ spec:
# Indicates whether the services will be exposed. 'Enable' exposes the services. while 'Disable' removes the exposed Service.
switch: Enable
# Specifies the maximum number of seconds the OpsRequest will wait for its start conditions to be met before aborting. If set to 0 (default), the start conditions must be met immediately for the OpsRequest to proceed.
ttlSecondsBeforeAbort: 0
preConditionDeadlineSeconds: 0
type: Expose
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/horizontalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: HorizontalScaling
# Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options
horizontalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/restart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: Restart
# Lists Components to be restarted. ComponentOps specifies the Component to be operated on.
restart:
Expand Down
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: Start
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/stop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: Stop
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/verticalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: VerticalScaling
# Lists VerticalScaling objects, each specifying a component and its desired compute resources for vertical scaling.
verticalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/camellia-redis-proxy/volumeexpand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: camellia-cluster
clusterName: camellia-cluster
type: VolumeExpansion
# Lists VolumeExpansion objects, each specifying a component and its corresponding volumeClaimTemplates that requires storage expansion.
volumeExpansion:
Expand Down
2 changes: 1 addition & 1 deletion examples/clickhouse/horizontalscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: clickhouse-cluster
clusterName: clickhouse-cluster
type: HorizontalScaling
# Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options
horizontalScaling:
Expand Down
2 changes: 1 addition & 1 deletion examples/clickhouse/restart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: clickhouse-cluster
clusterName: clickhouse-cluster
type: Restart
# Lists Components to be restarted. ComponentOps specifies the Component to be operated on.
restart:
Expand Down
2 changes: 1 addition & 1 deletion examples/clickhouse/start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
namespace: default
spec:
# Specifies the name of the Cluster resource that this operation is targeting.
clusterRef: clickhouse-cluster
clusterName: clickhouse-cluster
type: Start
Loading

0 comments on commit ca4caf5

Please sign in to comment.