Skip to content

Commit d230240

Browse files
committed
update api
1 parent fdf7a42 commit d230240

7 files changed

+50
-23
lines changed

apis/apps/v1/componentdefinition_types.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,19 +1125,6 @@ type ComponentFileTemplate struct {
11251125
//
11261126
// +optional
11271127
Reconfigure *Action `json:"reconfigure,omitempty"`
1128-
1129-
// Defines the procedures that reload the configuration when the file changes if there are more than one files
1130-
// in the template, and they have different reload actions.
1131-
//
1132-
// Each key in the map represents a file name, and the corresponding value is the action to reload the
1133-
// configuration for that file. It takes precedence over the default @reconfigure action if set.
1134-
//
1135-
// When @restartOnFileChange is set to true, these actions will be ignored.
1136-
//
1137-
// Note: This field is immutable once it has been set.
1138-
//
1139-
// +optional
1140-
// Reconfigures *map[string]Action `json:"reconfigures,omitempty"`
11411128
}
11421129

11431130
type LogConfig struct {

config/crd/bases/apps.kubeblocks.io_componentdefinitions.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4703,11 +4703,15 @@ spec:
47034703
Specifies the maximum duration in seconds that the Action is allowed to run.
47044704

47054705

4706-
If the Action does not complete within this time frame, it will be terminated.
4706+
Behavior based on the value:
4707+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
4708+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
4709+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
47074710

47084711

47094712
This field cannot be updated.
47104713
format: int32
4714+
maximum: 60
47114715
type: integer
47124716
type: object
47134717
restartOnFileChange:
@@ -18964,11 +18968,15 @@ spec:
1896418968
Specifies the maximum duration in seconds that the Action is allowed to run.
1896518969

1896618970

18967-
If the Action does not complete within this time frame, it will be terminated.
18971+
Behavior based on the value:
18972+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
18973+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
18974+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
1896818975

1896918976

1897018977
This field cannot be updated.
1897118978
format: int32
18979+
maximum: 60
1897218980
type: integer
1897318981
type: object
1897418982
restartOnFileChange:

config/crd/bases/apps.kubeblocks.io_sidecardefinitions.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,15 @@ spec:
534534
Specifies the maximum duration in seconds that the Action is allowed to run.
535535
536536
537-
If the Action does not complete within this time frame, it will be terminated.
537+
Behavior based on the value:
538+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
539+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
540+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
538541
539542
540543
This field cannot be updated.
541544
format: int32
545+
maximum: 60
542546
type: integer
543547
type: object
544548
restartOnFileChange:
@@ -2392,11 +2396,15 @@ spec:
23922396
Specifies the maximum duration in seconds that the Action is allowed to run.
23932397
23942398
2395-
If the Action does not complete within this time frame, it will be terminated.
2399+
Behavior based on the value:
2400+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
2401+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
2402+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
23962403
23972404
23982405
This field cannot be updated.
23992406
format: int32
2407+
maximum: 60
24002408
type: integer
24012409
type: object
24022410
restartOnFileChange:

config/crd/bases/parameters.kubeblocks.io_componentparameters.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,15 @@ spec:
598598
Specifies the maximum duration in seconds that the Action is allowed to run.
599599
600600
601-
If the Action does not complete within this time frame, it will be terminated.
601+
Behavior based on the value:
602+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
603+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
604+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
602605
603606
604607
This field cannot be updated.
605608
format: int32
609+
maximum: 60
606610
type: integer
607611
type: object
608612
restartOnFileChange:

deploy/helm/crds/apps.kubeblocks.io_componentdefinitions.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4703,11 +4703,15 @@ spec:
47034703
Specifies the maximum duration in seconds that the Action is allowed to run.
47044704

47054705

4706-
If the Action does not complete within this time frame, it will be terminated.
4706+
Behavior based on the value:
4707+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
4708+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
4709+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
47074710

47084711

47094712
This field cannot be updated.
47104713
format: int32
4714+
maximum: 60
47114715
type: integer
47124716
type: object
47134717
restartOnFileChange:
@@ -18964,11 +18968,15 @@ spec:
1896418968
Specifies the maximum duration in seconds that the Action is allowed to run.
1896518969

1896618970

18967-
If the Action does not complete within this time frame, it will be terminated.
18971+
Behavior based on the value:
18972+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
18973+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
18974+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
1896818975

1896918976

1897018977
This field cannot be updated.
1897118978
format: int32
18979+
maximum: 60
1897218980
type: integer
1897318981
type: object
1897418982
restartOnFileChange:

deploy/helm/crds/apps.kubeblocks.io_sidecardefinitions.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,15 @@ spec:
534534
Specifies the maximum duration in seconds that the Action is allowed to run.
535535
536536
537-
If the Action does not complete within this time frame, it will be terminated.
537+
Behavior based on the value:
538+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
539+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
540+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
538541
539542
540543
This field cannot be updated.
541544
format: int32
545+
maximum: 60
542546
type: integer
543547
type: object
544548
restartOnFileChange:
@@ -2392,11 +2396,15 @@ spec:
23922396
Specifies the maximum duration in seconds that the Action is allowed to run.
23932397
23942398
2395-
If the Action does not complete within this time frame, it will be terminated.
2399+
Behavior based on the value:
2400+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
2401+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
2402+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
23962403
23972404
23982405
This field cannot be updated.
23992406
format: int32
2407+
maximum: 60
24002408
type: integer
24012409
type: object
24022410
restartOnFileChange:

deploy/helm/crds/parameters.kubeblocks.io_componentparameters.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,15 @@ spec:
598598
Specifies the maximum duration in seconds that the Action is allowed to run.
599599
600600
601-
If the Action does not complete within this time frame, it will be terminated.
601+
Behavior based on the value:
602+
- Positive (> 0): The action will be terminated after this many seconds. The maximum allowed value is 60.
603+
- Zero (= 0): The timeout is managed by the system, defaulting to 30 seconds typically.
604+
- Negative (< 0): No timeout is applied; the action runs until the command completes.
602605
603606
604607
This field cannot be updated.
605608
format: int32
609+
maximum: 60
606610
type: integer
607611
type: object
608612
restartOnFileChange:

0 commit comments

Comments
 (0)