v1alpha1

package
v1.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=networking.gke.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: serviceattachment.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ServiceAttachment

type ServiceAttachment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceAttachmentSpec   `json:"spec,omitempty"`
	Status ServiceAttachmentStatus `json:"status,omitempty"`
}

ServiceAttachment represents a Service Attachment associated with a service/ingress/gateway class +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*ServiceAttachment) DeepCopy

func (in *ServiceAttachment) DeepCopy() *ServiceAttachment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAttachment.

func (*ServiceAttachment) DeepCopyInto

func (in *ServiceAttachment) DeepCopyInto(out *ServiceAttachment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceAttachment) DeepCopyObject

func (in *ServiceAttachment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceAttachmentList

type ServiceAttachmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ServiceAttachment `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ServiceAttachmentList is a list of ServiceAttachment resources

func (*ServiceAttachmentList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAttachmentList.

func (*ServiceAttachmentList) DeepCopyInto

func (in *ServiceAttachmentList) DeepCopyInto(out *ServiceAttachmentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceAttachmentList) DeepCopyObject

func (in *ServiceAttachmentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceAttachmentSpec

type ServiceAttachmentSpec struct {
	// ConnectionPreference determines how consumers are accepted. Only allowed value is `acceptAutomatic`.
	// +required
	ConnectionPreference string `json:"connectionPreference"`

	// NATSubnets contains the list of subnet names for PSC
	// +required
	// +listType=atomic
	NATSubnets []string `json:"natSubnets"`

	// ResourceRef is the reference to the K8s resource that created the forwarding rule
	// Only Services can be used as a reference
	// +required
	ResourceRef corev1.TypedLocalObjectReference `json:"resourceRef"`
}

ServiceAttachmentSpec is the spec for a ServiceAttachment resource +k8s:openapi-gen=true

func (*ServiceAttachmentSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAttachmentSpec.

func (*ServiceAttachmentSpec) DeepCopyInto

func (in *ServiceAttachmentSpec) DeepCopyInto(out *ServiceAttachmentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceAttachmentStatus

type ServiceAttachmentStatus struct {
	// ServiceAttachmentURL is the URL for the GCE Service Attachment resource
	ServiceAttachmentURL string `json:"serviceAttachmentURL"`

	// ForwardingRuleURL is the URL to the GCE Forwarding Rule resource the
	// Service Attachment points to
	ForwardingRuleURL string `json:"forwardingRuleURL"`
}

ServiceAttachmentStatus is the status for a ServiceAttachment resource +k8s:openapi-gen=true

func (*ServiceAttachmentStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAttachmentStatus.

func (*ServiceAttachmentStatus) DeepCopyInto

func (in *ServiceAttachmentStatus) DeepCopyInto(out *ServiceAttachmentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL