Merge pull request #2276 from Poor12/add-description
Add overrider description for overridePolicy API
This commit is contained in:
commit
67180c1010
|
@ -15047,7 +15047,7 @@
|
|||
}
|
||||
},
|
||||
"com.github.karmada-io.karmada.pkg.apis.policy.v1alpha1.Overriders": {
|
||||
"description": "Overriders offers various alternatives to represent the override rules.\n\nIf more than one alternatives exist, they will be applied with following order: - ImageOverrider - Plaintext",
|
||||
"description": "Overriders offers various alternatives to represent the override rules.\n\nIf more than one alternative exists, they will be applied with following order: - ImageOverrider - CommandOverrider - ArgsOverrider - Plaintext",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"argsOverrider": {
|
||||
|
|
|
@ -79,8 +79,10 @@ type RuleWithCluster struct {
|
|||
|
||||
// Overriders offers various alternatives to represent the override rules.
|
||||
//
|
||||
// If more than one alternatives exist, they will be applied with following order:
|
||||
// If more than one alternative exists, they will be applied with following order:
|
||||
// - ImageOverrider
|
||||
// - CommandOverrider
|
||||
// - ArgsOverrider
|
||||
// - Plaintext
|
||||
type Overriders struct {
|
||||
// Plaintext represents override rules defined with plaintext overriders.
|
||||
|
|
|
@ -2443,7 +2443,7 @@ func schema_pkg_apis_policy_v1alpha1_Overriders(ref common.ReferenceCallback) co
|
|||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Overriders offers various alternatives to represent the override rules.\n\nIf more than one alternatives exist, they will be applied with following order: - ImageOverrider - Plaintext",
|
||||
Description: "Overriders offers various alternatives to represent the override rules.\n\nIf more than one alternative exists, they will be applied with following order: - ImageOverrider - CommandOverrider - ArgsOverrider - Plaintext",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"plaintext": {
|
||||
|
|
Loading…
Reference in New Issue