class Google::Apis::GkehubV1alpha2::KubernetesResource

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.

Attributes

connect_resources[RW]

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. Corresponds to the JSON property `connectResources` @return [Array<Google::Apis::GkehubV1alpha2::ResourceManifest>]

membership_cr_manifest[RW]

Input 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 Create or Update, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership. Corresponds to the JSON property `membershipCrManifest` @return [String]

membership_resources[RW]

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. Corresponds to the JSON property `membershipResources` @return [Array<Google::Apis::GkehubV1alpha2::ResourceManifest>]

resource_options[RW]

ResourceOptions represent options for Kubernetes resource generation. Corresponds to the JSON property `resourceOptions` @return [Google::Apis::GkehubV1alpha2::ResourceOptions]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gkehub_v1alpha2/classes.rb, line 560
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gkehub_v1alpha2/classes.rb, line 565
def update!(**args)
  @connect_resources = args[:connect_resources] if args.key?(:connect_resources)
  @membership_cr_manifest = args[:membership_cr_manifest] if args.key?(:membership_cr_manifest)
  @membership_resources = args[:membership_resources] if args.key?(:membership_resources)
  @resource_options = args[:resource_options] if args.key?(:resource_options)
end