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(k8s): add FeatureGates and AdmissionPlugins #289

Merged
Merged
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
16 changes: 16 additions & 0 deletions api/k8s/v1beta4/k8s_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ type Cluster struct {
AutoUpgrade *ClusterAutoUpgrade `json:"auto_upgrade"`
// UpgradeAvailable true if a new Kubernetes version is available
UpgradeAvailable bool `json:"upgrade_available"`
// FeatureGates list of enabled feature gates
FeatureGates []string `json:"feature_gates"`
// AdmissionPlugins list of enabled admission plugins
AdmissionPlugins []string `json:"admission_plugins"`
}

type ClusterAutoUpgrade struct {
Expand Down Expand Up @@ -841,6 +845,10 @@ type Version struct {
AvailableIngresses []Ingress `json:"available_ingresses"`
// AvailableContainerRuntimes the supported container runtimes for this version
AvailableContainerRuntimes []Runtime `json:"available_container_runtimes"`
// AvailableFeatureGates the supported feature gates for this version
AvailableFeatureGates []string `json:"available_feature_gates"`
// AvailableAdmissionPlugins the supported admission plugins for this version
AvailableAdmissionPlugins []string `json:"available_admission_plugins"`
}

// Service API
Expand Down Expand Up @@ -960,6 +968,10 @@ type CreateClusterRequest struct {
//
// This configuratiom enables to set a speicific 2-hour time window in which the cluster can be automatically updated to the latest patch version in the current minor one.
AutoUpgrade *CreateClusterRequestAutoUpgrade `json:"auto_upgrade"`
// FeatureGates list of feature gates to enable
FeatureGates []string `json:"feature_gates"`
// AdmissionPlugins list of admission plugins to enable
AdmissionPlugins []string `json:"admission_plugins"`
}

// CreateCluster create a new cluster
Expand Down Expand Up @@ -1068,6 +1080,10 @@ type UpdateClusterRequest struct {
//
// The new auo upgrade configuration of the cluster. Note that all the fields needs to be set.
AutoUpgrade *UpdateClusterRequestAutoUpgrade `json:"auto_upgrade"`
// FeatureGates list of feature gates to enable
FeatureGates *[]string `json:"feature_gates"`
// AdmissionPlugins list of admission plugins to enable
AdmissionPlugins *[]string `json:"admission_plugins"`
}

// UpdateCluster update a cluster
Expand Down