Struct google_api_proto::google::container::v1alpha1::ClusterUpdate
source · pub struct ClusterUpdate {
pub desired_node_version: String,
pub desired_monitoring_service: String,
pub desired_addons_config: Option<AddonsConfig>,
pub desired_node_pool_id: String,
pub desired_image_type: String,
pub desired_node_pool_autoscaling: Option<NodePoolAutoscaling>,
pub desired_locations: Vec<String>,
pub desired_master_authorized_networks_config: Option<MasterAuthorizedNetworksConfig>,
pub desired_pod_security_policy_config: Option<PodSecurityPolicyConfig>,
pub desired_master_version: String,
}
Expand description
ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided.
Fields§
§desired_node_version: String
The Kubernetes version to change the nodes to (typically an
upgrade). Use -
to upgrade to the latest version supported by
the server.
desired_monitoring_service: String
The monitoring service the cluster should use to write metrics. Currently available options:
- “monitoring.googleapis.com” - the Google Cloud Monitoring service
- “none” - no metrics will be exported from the cluster
desired_addons_config: Option<AddonsConfig>
Configurations for the various addons available to run in the cluster.
desired_node_pool_id: String
The node pool to be upgraded. This field is mandatory if “desired_node_version”, “desired_image_family” or “desired_node_pool_autoscaling” is specified and there is more than one node pool on the cluster.
desired_image_type: String
The desired image type for the node pool. NOTE: Set the “desired_node_pool” field as well.
desired_node_pool_autoscaling: Option<NodePoolAutoscaling>
Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.
desired_locations: Vec<String>
The desired list of Google Compute Engine locations in which the cluster’s nodes should be located. Changing the locations a cluster is in will result in nodes being either created or removed from the cluster, depending on whether locations are being added or removed.
This list must always include the cluster’s primary zone.
The desired configuration options for master authorized networks feature.
desired_pod_security_policy_config: Option<PodSecurityPolicyConfig>
The desired configuration options for the PodSecurityPolicy feature.
desired_master_version: String
The Kubernetes version to change the master to. The only valid value is the latest supported version. Use “-” to have the server automatically select the latest version.
Trait Implementations§
source§impl Clone for ClusterUpdate
impl Clone for ClusterUpdate
source§fn clone(&self) -> ClusterUpdate
fn clone(&self) -> ClusterUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterUpdate
impl Debug for ClusterUpdate
source§impl Default for ClusterUpdate
impl Default for ClusterUpdate
source§impl Message for ClusterUpdate
impl Message for ClusterUpdate
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ClusterUpdate
impl PartialEq for ClusterUpdate
source§fn eq(&self, other: &ClusterUpdate) -> bool
fn eq(&self, other: &ClusterUpdate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClusterUpdate
Auto Trait Implementations§
impl Freeze for ClusterUpdate
impl RefUnwindSafe for ClusterUpdate
impl Send for ClusterUpdate
impl Sync for ClusterUpdate
impl Unpin for ClusterUpdate
impl UnwindSafe for ClusterUpdate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request