Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions incubator/kruise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
annotations:
artifacthub.io/changes: |
- "[Changed]: https://github.com/openkruise/kruise/blob/master/CHANGELOG.md"
- "[Security]: Fix potential security issues of dependent packages"
- "[Changed]: Change kruise daemon dns policy to ClusterFirstWithHostNet"
apiVersion: v1
appVersion: 1.7.2
name: kruise
description: Helm chart for kruise components
home: https://openkruise.io
version: 1.8.3
appVersion: 1.8.3
kubeVersion: ">= 1.18.0-0"
icon: https://cloudcache.tencent-cloud.com/qcloud/ui/static/Industry_tke/4a7ca09f-eb3a-461d-a830-ce4728a7258f.png
maintainers:
- name: rockerchen
email: rockerchen@tencent.com
keywords:
- openkruise
- kubernetes
- kruise
- workload
- statefulset
- sidecar
- job
- deployment
- cloneset
kubeVersion: '>= 1.18.0-0'
name: kruise
- openkruise
- kubernetes
- kruise
- workload
- statefulset
- sidecar
- job
- deployment
- cloneset
home: https://openkruise.io
sources:
- https://github.com/openkruise/kruise
version: 1.7.2
- https://github.com/openkruise/kruise
annotations:
artifacthub.io/changes: |
- "[Changed]: https://github.com/openkruise/kruise/blob/master/CHANGELOG.md"
- "[Security]: Fix potential security issues of dependent packages"
191 changes: 106 additions & 85 deletions incubator/kruise/README.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions incubator/kruise/templates/apps.kruise.io_clonesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
jsonPath: .status.updatedReadyReplicas
name: UPDATED_READY
type: integer
- description: The number of pods updated and available.
jsonPath: .status.updatedAvailableReplicas
name: UPDATED_AVAILABLE
type: integer
- description: The number of pods ready.
jsonPath: .status.readyReplicas
name: READY
Expand Down Expand Up @@ -514,6 +518,8 @@ spec:
description: |-
UpdatedAvailableReplicas is the number of Pods created by the CloneSet controller from the CloneSet version
indicated by updateRevision and have a Ready Condition for at least minReadySeconds.
Notice: when enable InPlaceWorkloadVerticalScaling, pod during resource resizing will also be unavailable.
This means these pod will be counted in maxUnavailable.
format: int32
type: integer
updatedReadyReplicas:
Expand Down
21 changes: 14 additions & 7 deletions incubator/kruise/templates/apps.kruise.io_sidecarsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,11 @@ spec:
history SidecarSet to inject specific version of the sidecar to pods.
type: string
policy:
description: |-
Policy describes the behavior of revision injection.
Defaults to Always.
default: Always
description: Policy describes the behavior of revision injection.
enum:
- Always
- Partial
type: string
revisionName:
description: RevisionName corresponds to a specific ControllerRevision
Expand Down Expand Up @@ -416,8 +418,7 @@ spec:
paused:
description: |-
Paused indicates that the SidecarSet is paused to update the injected pods,
but it don't affect the webhook inject sidecar container into the newly created pods.
default is false
For the impact on the injection behavior for newly created Pods, please refer to the comments of Selector.
type: boolean
priorityStrategy:
description: |-
Expand Down Expand Up @@ -529,8 +530,14 @@ spec:
type: object
type: array
selector:
description: If selector is not nil, this upgrade will only update
the selected pods.
description: |-
If selector is not nil, this upgrade will only update the selected pods.


Starting from Kruise 1.8.0, the updateStrategy.Selector affects the version of the Sidecar container
injected into newly created Pods by a SidecarSet configured with an injectionStrategy.
In most cases, all newly created Pods are injected with the specified Sidecar version as configured in injectionStrategy.revision,
which is consistent with previous versions.
properties:
matchExpressions:
description: matchExpressions is a list of label selector
Expand Down
61 changes: 56 additions & 5 deletions incubator/kruise/templates/apps.kruise.io_statefulsets.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.crds.managed }}

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -668,8 +668,12 @@ spec:
Then controller will delete Pod-1 and create Pod-3 (existing Pods will be [0, 2, 3])
- If you just want to delete Pod-1, you should set spec.reserveOrdinal to [1] and spec.replicas to 2.
Then controller will delete Pod-1 (existing Pods will be [0, 2])
You can also use ranges along with numbers, such as [1, 3-5], which is a shortcut for [1, 3, 4, 5].
items:
type: integer
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
type: array
revisionHistoryLimit:
description: |-
Expand Down Expand Up @@ -800,9 +804,7 @@ spec:
type: integer
partition:
description: |-
Partition indicates the ordinal at which the StatefulSet should be partitioned by default.
But if unorderedUpdate has been set:
- Partition indicates the number of pods with non-updated revisions when rolling update.
Partition indicates the number of pods the StatefulSet should be partitioned by default.
- It means controller will update $(replicas - partition) number of pod.
Default value is 0.
format: int32
Expand Down Expand Up @@ -937,6 +939,18 @@ spec:
any volumes in the template, with the same name.
TODO: Define the behavior if a claim already exists with the same name.
x-kubernetes-preserve-unknown-fields: true
volumeClaimUpdateStrategy:
description: |-
VolumeClaimUpdateStrategy specifies the strategy for updating VolumeClaimTemplates within a StatefulSet.
This field is currently only effective if the StatefulSetAutoResizePVCGate is enabled.
properties:
type:
description: |-
Type specifies the type of update strategy, possible values include:
OnPodRollingUpdateVolumeClaimUpdateStrategyType: Apply the update strategy during pod rolling updates.
OnPVCDeleteVolumeClaimUpdateStrategyType: Apply the update strategy when a PersistentVolumeClaim is deleted.
type: string
type: object
required:
- selector
- template
Expand Down Expand Up @@ -1040,6 +1054,43 @@ spec:
indicated by updateRevision.
format: int32
type: integer
volumeClaims:
description: |-
VolumeClaims represents the status of compatibility between existing PVCs
and their respective templates. It tracks whether the PersistentVolumeClaims have been updated
to match any changes made to the volumeClaimTemplates, ensuring synchronization
between the defined templates and the actual PersistentVolumeClaims in use.
items:
description: |-
VolumeClaimStatus describes the status of a volume claim template.
It provides details about the compatibility and readiness of the volume claim.
properties:
compatibleReadyReplicas:
description: |-
CompatibleReadyReplicas is the number of replicas that are both ready and compatible with the volume claim.
It highlights that these replicas are not only compatible but also ready to be put into service immediately.
Compatibility is determined by whether the pvc spec storage requests are greater than or equal to the template spec storage requests
The "ready" status is determined by whether the PVC status capacity is greater than or equal to the PVC spec storage requests.
format: int32
type: integer
compatibleReplicas:
description: |-
CompatibleReplicas is the number of replicas currently compatible with the volume claim.
It indicates how many replicas can function properly, being compatible with this volume claim.
Compatibility is determined by whether the PVC spec storage requests are greater than or equal to the template spec storage requests
format: int32
type: integer
volumeClaimName:
description: |-
VolumeClaimName is the name of the volume claim.
This is a unique identifier used to reference a specific volume claim.
type: string
required:
- compatibleReadyReplicas
- compatibleReplicas
- volumeClaimName
type: object
type: array
required:
- availableReplicas
- currentReplicas
Expand Down
94 changes: 89 additions & 5 deletions incubator/kruise/templates/apps.kruise.io_uniteddeployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,12 @@ spec:
Then controller will delete Pod-1 and create Pod-3 (existing Pods will be [0, 2, 3])
- If you just want to delete Pod-1, you should set spec.reserveOrdinal to [1] and spec.replicas to 2.
Then controller will delete Pod-1 (existing Pods will be [0, 2])
You can also use ranges along with numbers, such as [1, 3-5], which is a shortcut for [1, 3, 4, 5].
items:
type: integer
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
type: array
revisionHistoryLimit:
description: |-
Expand Down Expand Up @@ -409,9 +413,7 @@ spec:
type: integer
partition:
description: |-
Partition indicates the ordinal at which the StatefulSet should be partitioned by default.
But if unorderedUpdate has been set:
- Partition indicates the number of pods with non-updated revisions when rolling update.
Partition indicates the number of pods the StatefulSet should be partitioned by default.
- It means controller will update $(replicas - partition) number of pod.
Default value is 0.
format: int32
Expand Down Expand Up @@ -549,6 +551,18 @@ spec:
any volumes in the template, with the same name.
TODO: Define the behavior if a claim already exists with the same name.
x-kubernetes-preserve-unknown-fields: true
volumeClaimUpdateStrategy:
description: |-
VolumeClaimUpdateStrategy specifies the strategy for updating VolumeClaimTemplates within a StatefulSet.
This field is currently only effective if the StatefulSetAutoResizePVCGate is enabled.
properties:
type:
description: |-
Type specifies the type of update strategy, possible values include:
OnPodRollingUpdateVolumeClaimUpdateStrategyType: Apply the update strategy during pod rolling updates.
OnPVCDeleteVolumeClaimUpdateStrategyType: Apply the update strategy when a PersistentVolumeClaim is deleted.
type: string
type: object
required:
- selector
- template
Expand Down Expand Up @@ -945,6 +959,38 @@ spec:
description: Topology describes the pods distribution detail between
each of subsets.
properties:
scheduleStrategy:
description: ScheduleStrategy indicates the strategy the UnitedDeployment
used to preform the schedule between each of subsets.
properties:
adaptive:
description: Adaptive is used to communicate parameters when
Type is AdaptiveUnitedDeploymentScheduleStrategyType.
properties:
rescheduleCriticalSeconds:
description: |-
RescheduleCriticalSeconds indicates how long controller will reschedule a schedule failed Pod to the subset that has
redundant capacity after the subset where the Pod lives. If a Pod was scheduled failed and still in an unschedulabe status
over RescheduleCriticalSeconds duration, the controller will reschedule it to a suitable subset. Default is 30 seconds.
format: int32
type: integer
unschedulableLastSeconds:
description: |-
UnschedulableLastSeconds is used to set the number of seconds for a Subset to recover from an unschedulable state,
with a default value of 300 seconds.
format: int32
type: integer
type: object
type:
description: |-
Type indicates the type of the UnitedDeploymentScheduleStrategy.
Default is Fixed
enum:
- Adaptive
- Fixed
- ""
type: string
type: object
subsets:
description: |-
Contains the details of each subset. Each element in this array represents one subset
Expand Down Expand Up @@ -1163,7 +1209,7 @@ spec:
format: date-time
type: string
message:
description: A human readable message indicating details about
description: A human-readable message indicating details about
the transition.
type: string
reason:
Expand Down Expand Up @@ -1206,6 +1252,44 @@ spec:
description: Records the topology detail information of the replicas
of each subset.
type: object
subsetStatuses:
description: Record the conditions of each subset.
items:
properties:
conditions:
description: Conditions is an array of current observed subset
conditions.
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
required:
- status
- type
type: object
type: array
name:
description: Subset name specified in Topology.Subsets
type: string
partition:
description: Records the current partition. Currently unused.
format: int32
type: integer
replicas:
description: Recores the current replicas. Currently unused.
format: int32
type: integer
type: object
type: array
updateStatus:
description: Records the information of update progress.
properties:
Expand Down
Loading
Loading