Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Maintenance Windows): Add skipMaintenanceWindows to Kyma Spec #2139

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
4 changes: 4 additions & 0 deletions api/v1beta1/kyma_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ type KymaSpec struct {
// +kubebuilder:validation:MinLength:=3
Channel string `json:"channel"`

// SkipMaintenanceWindows indicates whether module upgrades that require downtime
// should bypass the defined Maintenance Windows and be applied immediately.
SkipMaintenanceWindows bool `json:"skipMaintenanceWindows,omitempty"`

// Modules specifies the list of modules to be installed
Modules []v1beta2.Module `json:"modules,omitempty"`

Expand Down
4 changes: 4 additions & 0 deletions api/v1beta2/kyma_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ type KymaSpec struct {
// +kubebuilder:validation:MinLength:=3
Channel string `json:"channel"`

// SkipMaintenanceWindows indicates whether module upgrades that require downtime
// should bypass the defined Maintenance Windows and be applied immediately.
SkipMaintenanceWindows bool `json:"skipMaintenanceWindows,omitempty"`

// Modules specifies the list of modules to be installed
// +listType=map
// +listMapKey=name
Expand Down
10 changes: 10 additions & 0 deletions config/crd/bases/operator.kyma-project.io_kymas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ spec:
- name
type: object
type: array
skipMaintenanceWindows:
description: |-
SkipMaintenanceWindows indicates whether module upgrades that require downtime
should bypass the defined Maintenance Windows and be applied immediately.
type: boolean
sync:
description: Active Synchronization Settings
properties:
Expand Down Expand Up @@ -553,6 +558,11 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
skipMaintenanceWindows:
description: |-
SkipMaintenanceWindows indicates whether module upgrades that require downtime
should bypass the defined Maintenance Windows and be applied immediately.
type: boolean
required:
- channel
type: object
Expand Down
4 changes: 4 additions & 0 deletions docs/contributor/resources/01-kyma.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ It can be used to only listen to ModuleTemplate CRs provided under the same cont

## Configuration

### **.spec.skipMaintenanceWindows**

The skipMaintenanceWindows is used to indicate whether the module upgrades that require downtime should bypass the defined Maintenance Windows. If it is set to true, the module upgrade will happen as soon as there is a new module version in the Kyma Control Plane.
nesmabadr marked this conversation as resolved.
Show resolved Hide resolved

### **.spec.channel** and **.spec.modules[].channel**

The **.spec.channel** attribute is used in conjunction with the [release channels](https://github.com/kyma-project/community/tree/main/concepts/modularization#release-channels). The channel that is used for the Kyma CR will always be used as the default in case no other specific channel is used.
Expand Down
Loading