v1

package
v1.30.7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1 is the v1 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: "v1"}

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 ConsumerForwardingRule

type ConsumerForwardingRule struct {
	// Forwarding rule consumer created to use ServiceAttachment
	ForwardingRuleURL string `json:"forwardingRuleURL,omitempty"`

	// Status of consumer forwarding rule
	Status string `json:"status,omitempty"`
}

ConsumerForwardingRule is a reference to the PSC consumer forwarding rule +k8s:openapi-gen=true

func (*ConsumerForwardingRule) DeepCopy

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

func (*ConsumerForwardingRule) DeepCopyInto

func (in *ConsumerForwardingRule) DeepCopyInto(out *ConsumerForwardingRule)

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

type ConsumerProject

type ConsumerProject struct {
	// ConnectionLimit is the connection limit for this Consumer project
	// +optional
	ConnectionLimit int64 `json:"connectionLimit,omitempty"`

	// Project is the project id or number for the project to set the
	// limit for.
	// +required
	Project string `json:"project,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ConnectionLimit") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	// +optional
	// +listType=atomic
	ForceSendFields []string `json:"forceSendFields,omitempty"`

	// NullFields is a list of field names (e.g. "ConnectionLimit") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	// +optional
	// +listType=atomic
	NullFields []string `json:"nullFields,omitempty"`
}

ConsumerProject is the consumer project and project level configuration +k8s:openapi-gen=true

func (*ConsumerProject) DeepCopy

func (in *ConsumerProject) DeepCopy() *ConsumerProject

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

func (*ConsumerProject) DeepCopyInto

func (in *ConsumerProject) DeepCopyInto(out *ConsumerProject)

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

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.
	// +required
	ConnectionPreference string `json:"connectionPreference,omitempty"`

	// NATSubnets contains the list of subnet names for PSC or nat subnet resource urls
	// +required
	// +listType=atomic
	NATSubnets []string `json:"natSubnets,omitempty"`

	// 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,omitempty"`

	// ProxyProtocol when set will expose client information TCP/IP information
	// +optional
	ProxyProtocol bool `json:"proxyProtocol,omitempty"`

	// ConsumerAllowList is list of consumer projects that should be allow listed
	// for this ServiceAttachment
	// +optional
	// +listType=atomic
	ConsumerAllowList []ConsumerProject `json:"consumerAllowList,omitempty"`

	// ConsumerRejectList is the list of Consumer Project IDs or Numbers that should
	// be rejected for this ServiceAttachment
	// +optional
	// +listType=atomic
	ConsumerRejectList []string `json:"consumerRejectList,omitempty"`
}

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
	// +optional
	ServiceAttachmentURL string `json:"serviceAttachmentURL,omitempty"`

	// ForwardingRuleURL is the URL to the GCE Forwarding Rule resource the
	// Service Attachment points to
	// +optional
	ForwardingRuleURL string `json:"forwardingRuleURL,omitempty"`

	// Consumer Forwarding Rules using ts Service Attachment
	// +listType=atomic
	// +optional
	ConsumerForwardingRules []ConsumerForwardingRule `json:"consumerForwardingRules,omitempty"`

	// LastModifiedTimestamp tracks last time Status was updated
	// +optional
	LastModifiedTimestamp metav1.Time `json:"lastModifiedTimestamp,omitempty"`
}

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