Skip to content

Commit

Permalink
Add Cilium skipUpgrade flag to v1alpha1 API
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdoherty4 committed Mar 20, 2023
1 parent 71fba3a commit 75c5e4c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/crd/bases/anywhere.eks.amazonaws.com_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ spec:
allowed between pods. Accepted values are default, always,
never.
type: string
skipUpgrade:
default: false
description: SkipUpgrade indicicates that Cilium maintenance
should be skipped during upgrades. This can be used
when operators wish to self manage the Cilium installation.
type: boolean
type: object
kindnetd:
type: object
Expand Down
6 changes: 6 additions & 0 deletions config/manifest/eksa-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3642,6 +3642,12 @@ spec:
allowed between pods. Accepted values are default, always,
never.
type: string
skipUpgrade:
default: false
description: SkipUpgrade indicicates that Cilium maintenance
should be skipped during upgrades. This can be used
when operators wish to self manage the Cilium installation.
type: boolean
type: object
kindnetd:
type: object
Expand Down
6 changes: 6 additions & 0 deletions pkg/api/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,12 @@ type CNIConfig struct {
type CiliumConfig struct {
// PolicyEnforcementMode determines communication allowed between pods. Accepted values are default, always, never.
PolicyEnforcementMode CiliumPolicyEnforcementMode `json:"policyEnforcementMode,omitempty"`

// SkipUpgrade indicicates that Cilium maintenance should be skipped during upgrades. This can
// be used when operators wish to self manage the Cilium installation.
// +kubebuilder:default=false
// +optional
SkipUpgrade *bool `json:"skipUpgrade,omitempty"`
}

type KindnetdConfig struct{}
Expand Down
18 changes: 17 additions & 1 deletion pkg/api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75c5e4c

Please sign in to comment.