#[non_exhaustive]pub struct KubernetesResource {
pub membership_cr_manifest: String,
pub membership_resources: Vec<ResourceManifest>,
pub connect_resources: Vec<ResourceManifest>,
pub resource_options: Option<ResourceOptions>,
/* private fields */
}Expand description
KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.membership_cr_manifest: StringInput only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly.
Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.
membership_resources: Vec<ResourceManifest>Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update.
This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.
connect_resources: Vec<ResourceManifest>Output only. The Kubernetes resources for installing the GKE Connect agent
This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.
resource_options: Option<ResourceOptions>Optional. Options for Kubernetes resource generation.
Implementations§
Source§impl KubernetesResource
impl KubernetesResource
pub fn new() -> Self
Sourcepub fn set_membership_cr_manifest<T: Into<String>>(self, v: T) -> Self
pub fn set_membership_cr_manifest<T: Into<String>>(self, v: T) -> Self
Sets the value of membership_cr_manifest.
Sourcepub fn set_membership_resources<T, V>(self, v: T) -> Self
pub fn set_membership_resources<T, V>(self, v: T) -> Self
Sets the value of membership_resources.
Sourcepub fn set_connect_resources<T, V>(self, v: T) -> Self
pub fn set_connect_resources<T, V>(self, v: T) -> Self
Sets the value of connect_resources.
Sourcepub fn set_resource_options<T>(self, v: T) -> Selfwhere
T: Into<ResourceOptions>,
pub fn set_resource_options<T>(self, v: T) -> Selfwhere
T: Into<ResourceOptions>,
Sets the value of resource_options.
Sourcepub fn set_or_clear_resource_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceOptions>,
pub fn set_or_clear_resource_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceOptions>,
Sets or clears the value of resource_options.
Trait Implementations§
Source§impl Clone for KubernetesResource
impl Clone for KubernetesResource
Source§fn clone(&self) -> KubernetesResource
fn clone(&self) -> KubernetesResource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more