Skip to content

Commit

Permalink
chore: mark switchover scriptSpec selector field deprecated (apecloud…
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Rookie authored Mar 4, 2024
1 parent 1763ff5 commit 2e52a56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apis/apps/v1alpha1/clusterdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ type SwitchoverAction struct {
// Used to select the script that need to be referenced.
// When defined, the scripts defined in scriptSpecs can be referenced within the SwitchoverAction.CmdExecutorConfig.
//
// +kubebuilder:deprecatedversion:warning="This field is deprecated from KB 0.9.0"
// +optional
ScriptSpecSelectors []ScriptSpecSelector `json:"scriptSpecSelectors,omitempty"`
}
Expand Down
1 change: 1 addition & 0 deletions apis/apps/v1alpha1/componentdefinition_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ type ComponentSwitchover struct {
// Used to define the selectors for the scriptSpecs that need to be referenced.
// When this field is defined, the scripts specified in the scripts field can be referenced in the Action.
//
// +kubebuilder:deprecatedversion:warning="This field is deprecated from KB 0.9.0"
// +optional
ScriptSpecSelectors []ScriptSpecSelector `json:"scriptSpecSelectors,omitempty"`
}
Expand Down
3 changes: 2 additions & 1 deletion docs/developer_docs/api-reference/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -9971,7 +9971,8 @@ If set to Enable, the corresponding service will be exposed. Conversely, if set
</em>
</td>
<td>
<p>A list of services that are to be exposed or removed.</p>
<p>A list of services that are to be exposed or removed.
If componentNamem is not specified, each <code>OpsService</code> in the list must specify ports and selectors.</p>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 2e52a56

Please sign in to comment.