v1alpha2

package
v0.0.0-...-036f9fd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the wso2 v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com

Package v1alpha2 contains API Schema definitions for the wso2 v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com

Index

Constants

View Source
const ReleaseLatestRevisionKeyword = "@latest"

ReleaseLatestRevisionKeyword is a shortcut for usage in the `release` mode to refer to the latest created revision. See #2819 for details.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "wso2.com", Version: "v1alpha2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type API

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

	Spec APISpec `json:"spec,omitempty"`
}

API is the Schema for the apis API +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*API) DeepCopy

func (in *API) DeepCopy() *API

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

func (*API) DeepCopyInto

func (in *API) DeepCopyInto(out *API)

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

func (*API) DeepCopyObject

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

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

type APIList

type APIList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []API `json:"items"`
}

APIList contains a list of API

func (*APIList) DeepCopy

func (in *APIList) DeepCopy() *APIList

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

func (*APIList) DeepCopyInto

func (in *APIList) DeepCopyInto(out *APIList)

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

func (*APIList) DeepCopyObject

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

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

type APISpec

type APISpec struct {
	// Mode of the API. The mode from the swagger definition will be overridden by this value.
	// Supports "privateJet", "sidecar", "<empty>".
	// Default value "<empty>".
	// +optional
	Mode Mode `json:"mode,omitempty"`
	// Update API definition creating a new docker image. Make a rolling update to the existing API.
	// with prefixing the timestamp value.
	// Default value "<empty>".
	// +optional
	UpdateTimeStamp string `json:"updateTimeStamp,omitempty"`
	// Replica count of the API.
	// Default value "<empty>".
	// +optional
	Replicas int `json:"replicas,omitempty"`
	// Override the exiting API docker image.
	// Default value "false".
	// +optional
	Override bool `json:"override,omitempty"`
	// Version of the API. The version from the swagger definition will be overridden by this value.
	// Default value "<empty>".
	// +optional
	Version string `json:"version,omitempty"`
	// Environment variables to be added to the API deployment.
	// Default value "<empty>".
	// +optional
	EnvironmentVariables []string `json:"environmentVariables,omitempty"`
	// Docker image of the API to be deployed. If specified, ignores the values of `UpdateTimeStamp`, `Override`.
	// Uses the given image for the deployment.
	// Default value "<empty>".
	// +optional
	Image       string `json:"image,omitempty"`
	ApiEndPoint string `json:"apiEndPoint,omitempty"`
	// Ingress Hostname that the API is being exposed.
	// Default value "<empty>".
	// +optional
	IngressHostname string `json:"ingressHostname,omitempty"`
	//Config map name of which the project zip or swagger file is included
	SwaggerConfigMapName string `json:"swaggerConfigMapName"`
	// Config map name of the param values of the API project
	// Default value "<empty>".
	// +optional
	ParamsValues string `json:"paramsValues,omitempty"`
	// Config map name of the certs values of the API project
	// Default value "<empty>".
	// +optional
	CertsValues string `json:"certsValues,omitempty"`
}

APISpec defines the desired state of API

func (*APISpec) DeepCopy

func (in *APISpec) DeepCopy() *APISpec

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

func (*APISpec) DeepCopyInto

func (in *APISpec) DeepCopyInto(out *APISpec)

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

type APIStatus

type APIStatus struct {
	// replicas field in the status sub-resource will define the initial replica count allocated to the API.This will be the minimum replica count for a single API
	// Default value "<empty>".
	// +optional
	Replicas int `json:"replicas,omitempty"`
}

APIStatus defines the observed state of API

func (*APIStatus) DeepCopy

func (in *APIStatus) DeepCopy() *APIStatus

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

func (*APIStatus) DeepCopyInto

func (in *APIStatus) DeepCopyInto(out *APIStatus)

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

type AutoScale

type AutoScale struct {
	// Defines if auto scaling needs to be enabled
	// Default value "<empty>".
	// +optional
	Enabled string `json:"enabled,omitempty"`
	// Defines maximum number of replicas of the Integration deployment
	// Default value "<empty>".
	// +optional
	MaxReplicas int32 `json:"maxReplicas,omitempty"`
}

AutoScale defines the properties related to Auto scaling of pods

func (*AutoScale) DeepCopy

func (in *AutoScale) DeepCopy() *AutoScale

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

func (*AutoScale) DeepCopyInto

func (in *AutoScale) DeepCopyInto(out *AutoScale)

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

type Bandwidth

type Bandwidth struct {
	DataAmount string `json:"dataAmount"`
	DataUnit   string `json:"dataUnit"`
}

Bandwidth is exported type in Ratelimiting Spec

func (*Bandwidth) DeepCopy

func (in *Bandwidth) DeepCopy() *Bandwidth

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

func (*Bandwidth) DeepCopyInto

func (in *Bandwidth) DeepCopyInto(out *Bandwidth)

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

type Conditions

type Conditions struct {
	HeaderCondition HeaderCondition `json:"headerCondition"`
	IPCondition     IPCondition     `json:"ipCondition"`
}

Conditions is exported type in Ratelimiting Spec

func (*Conditions) DeepCopy

func (in *Conditions) DeepCopy() *Conditions

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

func (*Conditions) DeepCopyInto

func (in *Conditions) DeepCopyInto(out *Conditions)

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

type ConfigMapDetails

type ConfigMapDetails struct {
	Name      string `json:"name,omitempty"`
	MountPath string `json:"mountPath,omitempty"`
	FileName  string `json:"fileName,omitempty"`
}

type Configuration

type Configuration struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the Configuration (from the client).
	// +optional
	Spec ConfigurationSpec `json:"spec,omitempty"`

	// Status communicates the observed state of the Configuration (from the controller).
	// +optional
	Status ConfigurationStatus `json:"status,omitempty"`
}

Configuration represents the "floating HEAD" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision's name. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

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

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

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

func (*Configuration) DeepCopyObject

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

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

type ConfigurationList

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

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

ConfigurationList is a list of Configuration resources

func (*ConfigurationList) DeepCopy

func (in *ConfigurationList) DeepCopy() *ConfigurationList

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

func (*ConfigurationList) DeepCopyInto

func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)

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

func (*ConfigurationList) DeepCopyObject

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

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

type ConfigurationSpec

type ConfigurationSpec struct {
	// DeprecatedGeneration was used prior in Kubernetes versions <1.11
	// when metadata.generation was not being incremented by the api server
	//
	// This property will be dropped in future Knative releases and should
	// not be used - use metadata.generation
	//
	// Tracking issue: https://github.com/knative/serving/issues/643
	//
	// +optional
	DeprecatedGeneration int64 `json:"generation,omitempty"`

	// Template holds the latest specification for the Revision to
	// be stamped out.
	// +optional
	Template RevisionTemplateSpec `json:"template,omitempty"`
}

ConfigurationSpec holds the desired state of the Configuration (from the client).

func (*ConfigurationSpec) DeepCopy

func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec

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

func (*ConfigurationSpec) DeepCopyInto

func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)

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

type ConfigurationStatus

type ConfigurationStatus struct {
	ConfigurationStatusFields `json:",inline"`
}

ConfigurationStatus communicates the observed state of the Configuration (from the controller).

func (*ConfigurationStatus) DeepCopy

func (in *ConfigurationStatus) DeepCopy() *ConfigurationStatus

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

func (*ConfigurationStatus) DeepCopyInto

func (in *ConfigurationStatus) DeepCopyInto(out *ConfigurationStatus)

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

type ConfigurationStatusFields

type ConfigurationStatusFields struct {
	// LatestReadyRevisionName holds the name of the latest Revision stamped out
	// from this Configuration that has had its "Ready" condition become "True".
	// +optional
	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`

	// LatestCreatedRevisionName is the last revision that was created from this
	// Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
	// +optional
	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
}

ConfigurationStatusFields holds all of the non-duckv1beta1.Status status fields of a Route. These are defined outline so that we can also inline them into Service, and more easily copy them.

func (*ConfigurationStatusFields) DeepCopy

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

func (*ConfigurationStatusFields) DeepCopyInto

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

type Deploy

type Deploy struct {
	Name        string `json:"name"`
	DockerImage string `json:"dockerImage"`
	MinReplicas int32  `json:"minReplicas,omitempty"`
	MaxReplicas int32  `json:"maxReplicas,omitempty"`
	ReqCpu      string `json:"requestCPU,omitempty"`
	ReqMemory   string `json:"reqMemory,omitempty"`
	LimitCpu    string `json:"cpuLimit,omitempty"`
	MemoryLimit string `json:"memoryLimit,omitempty"`
}

Replica count for create HPA for targetEndPoint

func (*Deploy) DeepCopy

func (in *Deploy) DeepCopy() *Deploy

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

func (*Deploy) DeepCopyInto

func (in *Deploy) DeepCopyInto(out *Deploy)

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

type DeploySpec

type DeploySpec struct {
	// Initial minimum number of replicas in Integration
	// Default value "<empty>".
	// +optional
	MinReplicas int32 `json:"minReplicas,omitempty"`

	ConfigMapDetails []ConfigMapDetails `json:"configmapDetails,omitempty"`

	// Cpu request of containers in the pod
	// Default value "<empty>".
	// +optional
	ReqCpu string `json:"requestCPU,omitempty"`
	// Memory request of containers in the pod
	// Default value "<empty>".
	// +optional
	ReqMemory string `json:"reqMemory,omitempty"`
	// CPU limit of containers in the pod
	// Default value "<empty>".
	// +optional
	LimitCpu string `json:"cpuLimit,omitempty"`
	// Memory limit of containers in the pod
	// Default value "<empty>".
	// +optional
	MemoryLimit string `json:"memoryLimit,omitempty"`
	// LivenessProbe for containers in the pod
	// Default value "<empty>".
	// +optional
	LivenessProbe corev1.Probe `json:"livenessProbe,omitempty"`
	// ReadinessProbe for containers in the pod
	// Default value "<empty>".
	// +optional
	ReadinessProbe corev1.Probe `json:"readinessProbe,omitempty"`

	Affinity corev1.Affinity `json:"affinity,omitempty"`

	PullPolicy PullPolicy `json:"pullPolicy,omitempty"`
}

DeploySpec contains properties related to deployment

func (*DeploySpec) DeepCopy

func (in *DeploySpec) DeepCopy() *DeploySpec

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

func (*DeploySpec) DeepCopyInto

func (in *DeploySpec) DeepCopyInto(out *DeploySpec)

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

type EndpointSecurity

type EndpointSecurity struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Type     string `json:"type"`
}

func (*EndpointSecurity) DeepCopy

func (in *EndpointSecurity) DeepCopy() *EndpointSecurity

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

func (*EndpointSecurity) DeepCopyInto

func (in *EndpointSecurity) DeepCopyInto(out *EndpointSecurity)

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

type Expose

type Expose struct {
	// PassthroPort HTTP/HTTPs traffic serving ports
	PassthroPort int32 `json:"passthroPort,omitempty"`
	// InboundPorts any traffic serving port that needs to be exposed
	InboundPorts []int32 `json:"inboundPorts,omitempty"`
}

Expose defines the ports needs to be exposed

func (*Expose) DeepCopy

func (in *Expose) DeepCopy() *Expose

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

func (*Expose) DeepCopyInto

func (in *Expose) DeepCopyInto(out *Expose)

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

type HeaderCondition

type HeaderCondition struct {
	HeaderName  string `json:"headerName"`
	HeaderValue string `json:"headerValue"`
}

HeaderCondition is exported type in Ratelimiting Spec

func (*HeaderCondition) DeepCopy

func (in *HeaderCondition) DeepCopy() *HeaderCondition

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

func (*HeaderCondition) DeepCopyInto

func (in *HeaderCondition) DeepCopyInto(out *HeaderCondition)

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

type IPCondition

type IPCondition struct {
	Type       string `json:"type"`
	SpecificIP string `json:"specificIp"`
	Negation   bool   `json:"negation"`
	StartIP    string `json:"startIp"`
	EndIP      string `json:"endIp"`
}

IPCondition is exported type in Ratelimiting Spec

func (*IPCondition) DeepCopy

func (in *IPCondition) DeepCopy() *IPCondition

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

func (*IPCondition) DeepCopyInto

func (in *IPCondition) DeepCopyInto(out *IPCondition)

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

type Integration

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

	Spec   IntegrationSpec   `json:"spec,omitempty"`
	Status IntegrationStatus `json:"status,omitempty"`
}

Integration is the Schema for the integrations API +kubebuilder:subresource:status +kubebuilder:resource:path=integrations,scope=Namespaced +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.readiness` +kubebuilder:printcolumn:name="Service-Name",type=string,JSONPath=`.status.serviceName` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*Integration) DeepCopy

func (in *Integration) DeepCopy() *Integration

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

func (*Integration) DeepCopyInto

func (in *Integration) DeepCopyInto(out *Integration)

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

func (*Integration) DeepCopyObject

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

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

type IntegrationList

type IntegrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Integration `json:"items"`
}

IntegrationList contains a list of Integration

func (*IntegrationList) DeepCopy

func (in *IntegrationList) DeepCopy() *IntegrationList

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

func (*IntegrationList) DeepCopyInto

func (in *IntegrationList) DeepCopyInto(out *IntegrationList)

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

func (*IntegrationList) DeepCopyObject

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

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

type IntegrationSpec

type IntegrationSpec struct {
	// Docker image consist of micro integrator runtime and synapse configs
	Image string `json:"image"`
	// Specification related to deployment
	DeploySpec DeploySpec `json:"deploySpec,omitempty"`
	// Auto scale spec
	AutoScale AutoScale `json:"autoScale,omitempty"`
	// Ports to expose
	Expose Expose `json:"expose,omitempty"`
	// Docker image credentials if the Image is in private registry
	ImagePullSecret string `json:"imagePullSecret,omitempty"`
	// List of environment variables to set for the integration.
	Env []corev1.EnvVar `json:"env,omitempty"`
	// List of environment variable references set for the integration.
	EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
}

IntegrationSpec defines the desired state of Integration

func (*IntegrationSpec) DeepCopy

func (in *IntegrationSpec) DeepCopy() *IntegrationSpec

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

func (*IntegrationSpec) DeepCopyInto

func (in *IntegrationSpec) DeepCopyInto(out *IntegrationSpec)

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

type IntegrationStatus

type IntegrationStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	// Name of the created service in the Integration deployment
	ServiceName string `json:"serviceName"`
	// Status of the Integration deployment
	Readiness string `json:"readiness"`
}

IntegrationStatus defines the observed state of Integration

func (*IntegrationStatus) DeepCopy

func (in *IntegrationStatus) DeepCopy() *IntegrationStatus

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

func (*IntegrationStatus) DeepCopyInto

func (in *IntegrationStatus) DeepCopyInto(out *IntegrationStatus)

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

type ManualType

type ManualType struct {
}

ManualType contains the options for configuring a manual service. See ServiceSpec for more details.

func (*ManualType) DeepCopy

func (in *ManualType) DeepCopy() *ManualType

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

func (*ManualType) DeepCopyInto

func (in *ManualType) DeepCopyInto(out *ManualType)

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

type Mode

type Mode string
const (
	PrivateJet Mode = "privateJet"
	Sidecar    Mode = "sidecar"
	Shared     Mode = "shared"
	Serverless Mode = "serverless"
)

func (Mode) String

func (c Mode) String() string

type PinnedType

type PinnedType struct {
	// The revision name to pin this service to until changed
	// to a different service type.
	// +optional
	RevisionName string `json:"revisionName,omitempty"`

	// The configuration for this service.
	// +optional
	Configuration ConfigurationSpec `json:"configuration,omitempty"`
}

PinnedType is DEPRECATED. ReleaseType should be used instead. To get the behavior of PinnedType set ReleaseType.Revisions to []string{PinnedType.RevisionName} and ReleaseType.RolloutPercent to 0.

func (*PinnedType) DeepCopy

func (in *PinnedType) DeepCopy() *PinnedType

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

func (*PinnedType) DeepCopyInto

func (in *PinnedType) DeepCopyInto(out *PinnedType)

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

type Port

type Port struct {
	// The name of this port within the service. This must be a DNS_LABEL.
	// All ports within a ServiceSpec must have unique names.
	Name string `json:"name"`
	// The port that will be exposed by this service.
	Port int32 `json:"port"`
	// Port that is targeted to expose.
	TargetPort int32 `json:"targetPort"`
}

Port represents ports of the Target Endpoint

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

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

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

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

type PullPolicy

type PullPolicy string
const (
	// PullAlways means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.
	PullAlways PullPolicy = "Always"
	// PullNever means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present
	PullNever PullPolicy = "Never"
	// PullIfNotPresent means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.
	PullIfNotPresent PullPolicy = "IfNotPresent"
)

type RateLimiting

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

	Spec RateLimitingSpec `json:"spec,omitempty"`
}

RateLimiting is the Schema for the ratelimitings API +k8s:openapi-gen=true

func (*RateLimiting) DeepCopy

func (in *RateLimiting) DeepCopy() *RateLimiting

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

func (*RateLimiting) DeepCopyInto

func (in *RateLimiting) DeepCopyInto(out *RateLimiting)

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

func (*RateLimiting) DeepCopyObject

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

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

type RateLimitingList

type RateLimitingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RateLimiting `json:"items"`
}

RateLimitingList contains a list of RateLimiting

func (*RateLimitingList) DeepCopy

func (in *RateLimitingList) DeepCopy() *RateLimitingList

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

func (*RateLimitingList) DeepCopyInto

func (in *RateLimitingList) DeepCopyInto(out *RateLimitingList)

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

func (*RateLimitingList) DeepCopyObject

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

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

type RateLimitingSpec

type RateLimitingSpec struct {
	Type             string       `json:"type"`
	TimeUnit         string       `json:"timeUnit"`
	UnitTime         int          `json:"unitTime"`
	RequestCount     RequestCount `json:"requestCount"`
	StopOnQuotaReach bool         `json:"stopOnQuotaReach"`
	Description      string       `json:"description"`
	Bandwidth        Bandwidth    `json:"bandwidth"`
	Conditions       Conditions   `json:"conditions"`
}

RateLimitingSpec defines the desired state of RateLimiting +k8s:openapi-gen=true

func (*RateLimitingSpec) DeepCopy

func (in *RateLimitingSpec) DeepCopy() *RateLimitingSpec

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

func (*RateLimitingSpec) DeepCopyInto

func (in *RateLimitingSpec) DeepCopyInto(out *RateLimitingSpec)

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

type RateLimitingStatus

type RateLimitingStatus struct {
}

RateLimitingStatus defines the observed state of RateLimiting +k8s:openapi-gen=true

func (*RateLimitingStatus) DeepCopy

func (in *RateLimitingStatus) DeepCopy() *RateLimitingStatus

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

func (*RateLimitingStatus) DeepCopyInto

func (in *RateLimitingStatus) DeepCopyInto(out *RateLimitingStatus)

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

type ReleaseType

type ReleaseType struct {
	// Revisions is an ordered list of 1 or 2 revisions. The first will
	// have a TrafficTarget with a name of "current" and the second will have
	// a name of "candidate".
	// +optional
	Revisions []string `json:"revisions,omitempty"`

	// RolloutPercent is the percent of traffic that should be sent to the "candidate"
	// revision. Valid values are between 0 and 99 inclusive.
	// +optional
	RolloutPercent int `json:"rolloutPercent,omitempty"`

	// The configuration for this service. All revisions from this service must
	// come from a single configuration.
	// +optional
	Configuration ConfigurationSpec `json:"configuration,omitempty"`
}

ReleaseType contains the options for slowly releasing revisions. See ServiceSpec for more details.

func (*ReleaseType) DeepCopy

func (in *ReleaseType) DeepCopy() *ReleaseType

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

func (*ReleaseType) DeepCopyInto

func (in *ReleaseType) DeepCopyInto(out *ReleaseType)

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

type RequestCount

type RequestCount struct {
	Limit int `json:"limit"`
}

RequestCount is exported type in Ratelimiting Spec

func (*RequestCount) DeepCopy

func (in *RequestCount) DeepCopy() *RequestCount

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

func (*RequestCount) DeepCopyInto

func (in *RequestCount) DeepCopyInto(out *RequestCount)

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

type RevisionSpec

type RevisionSpec struct {
	corev1.PodSpec `json:",inline"`
}

func (*RevisionSpec) DeepCopy

func (in *RevisionSpec) DeepCopy() *RevisionSpec

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

func (*RevisionSpec) DeepCopyInto

func (in *RevisionSpec) DeepCopyInto(out *RevisionSpec)

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

type RevisionTemplateSpec

type RevisionTemplateSpec struct {
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec RevisionSpec `json:"spec,omitempty"`
}

func (*RevisionTemplateSpec) DeepCopy

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

func (*RevisionTemplateSpec) DeepCopyInto

func (in *RevisionTemplateSpec) DeepCopyInto(out *RevisionTemplateSpec)

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

type RunLatestType

type RunLatestType struct {
	// The configuration for this service.
	// +optional
	Configuration ConfigurationSpec `json:"configuration,omitempty"`
}

RunLatestType contains the options for always having a route to the latest configuration. See ServiceSpec for more details.

func (*RunLatestType) DeepCopy

func (in *RunLatestType) DeepCopy() *RunLatestType

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

func (*RunLatestType) DeepCopyInto

func (in *RunLatestType) DeepCopyInto(out *RunLatestType)

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

type Security

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

	Spec   SecuritySpec   `json:"spec,omitempty"`
	Status SecurityStatus `json:"status,omitempty"`
}

Security is the Schema for the securities API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="SECURITY_TYPE",type=string,JSONPath=`.spec.type` +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=`.metadata.creationTimestamp`

func (*Security) DeepCopy

func (in *Security) DeepCopy() *Security

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

func (*Security) DeepCopyInto

func (in *Security) DeepCopyInto(out *Security)

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

func (*Security) DeepCopyObject

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

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

type SecurityConfig

type SecurityConfig struct {
	Certificate          string `json:"certificate"`
	Alias                string `json:"alias"`
	Endpoint             string `json:"endpoint"`
	Credentials          string `json:"credentials"`
	Issuer               string `json:"issuer"`
	Audience             string `json:"audience"`
	ValidateSubscription bool   `json:"validateSubscription,omitempty"`
	ValidateAllowedAPIs  bool   `json:"validateAllowedAPIs,omitempty"`
}

func (*SecurityConfig) DeepCopy

func (in *SecurityConfig) DeepCopy() *SecurityConfig

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

func (*SecurityConfig) DeepCopyInto

func (in *SecurityConfig) DeepCopyInto(out *SecurityConfig)

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

type SecurityList

type SecurityList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Security `json:"items"`
}

SecurityList contains a list of Security

func (*SecurityList) DeepCopy

func (in *SecurityList) DeepCopy() *SecurityList

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

func (*SecurityList) DeepCopyInto

func (in *SecurityList) DeepCopyInto(out *SecurityList)

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

func (*SecurityList) DeepCopyObject

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

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

type SecuritySpec

type SecuritySpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
	Type           string           `json:"type"`
	SecurityConfig []SecurityConfig `json:"securityConfig"`
}

SecuritySpec defines the desired state of Security +k8s:openapi-gen=true

func (*SecuritySpec) DeepCopy

func (in *SecuritySpec) DeepCopy() *SecuritySpec

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

func (*SecuritySpec) DeepCopyInto

func (in *SecuritySpec) DeepCopyInto(out *SecuritySpec)

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

type SecurityStatus

type SecurityStatus struct {
}

SecurityStatus defines the observed state of Security +k8s:openapi-gen=true

func (*SecurityStatus) DeepCopy

func (in *SecurityStatus) DeepCopy() *SecurityStatus

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

func (*SecurityStatus) DeepCopyInto

func (in *SecurityStatus) DeepCopyInto(out *SecurityStatus)

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

type Service

type Service struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec ServiceSpec `json:"spec,omitempty"`
	// +optional
	Status ServiceStatus `json:"status,omitempty"`
}

Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets), and its usage is optional but recommended.

The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own.

See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#service

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

func (*Service) DeepCopyObject

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

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

type ServiceList

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

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

ServiceList is a list of Service resources

func (*ServiceList) DeepCopy

func (in *ServiceList) DeepCopy() *ServiceList

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

func (*ServiceList) DeepCopyInto

func (in *ServiceList) DeepCopyInto(out *ServiceList)

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

func (*ServiceList) DeepCopyObject

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

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

type ServiceSpec

type ServiceSpec struct {
	// DeprecatedGeneration was used prior in Kubernetes versions <1.11
	// when metadata.generation was not being incremented by the api server
	//
	// This property will be dropped in future Knative releases and should
	// not be used - use metadata.generation
	//
	// Tracking issue: https://github.com/knative/serving/issues/643
	//
	// +optional
	DeprecatedGeneration int64 `json:"generation,omitempty"`

	// DeprecatedRunLatest defines a simple Service. It will automatically
	// configure a route that keeps the latest ready revision
	// from the supplied configuration running.
	// +optional
	DeprecatedRunLatest *RunLatestType `json:"runLatest,omitempty"`

	// DeprecatedPinned is DEPRECATED in favor of ReleaseType
	// +optional
	DeprecatedPinned *PinnedType `json:"pinned,omitempty"`

	// DeprecatedManual mode enables users to start managing the underlying Route and Configuration
	// resources directly.  This advanced usage is intended as a path for users to graduate
	// from the limited capabilities of Service to the full power of Route.
	// +optional
	DeprecatedManual *ManualType `json:"manual,omitempty"`

	// Release enables gradual promotion of new revisions by allowing traffic
	// to be split between two revisions. This type replaces the deprecated Pinned type.
	// +optional
	DeprecatedRelease *ReleaseType `json:"release,omitempty"`

	// We are moving to a shape where the Configuration and Route specifications
	// are inlined into the Service, which gives them compatible shapes.  We are
	// staging this change here as a path to this in v1beta1, which drops the
	// "mode" based specifications above.  Ultimately all non-v1beta1 fields will
	// be deprecated, and then dropped in v1beta1.
	ConfigurationSpec `json:",inline"`
}

ServiceSpec represents the configuration for the Service object. Exactly one of its members (other than Generation) must be specified. Services can either track the latest ready revision of a configuration or be pinned to a specific revision.

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

type ServiceStatus

type ServiceStatus struct {
	ConfigurationStatusFields `json:",inline"`
}

ServiceStatus represents the Status stanza of the Service resource.

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

type TargetEndpoint

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

	Spec   TargetEndpointSpec   `json:"spec,omitempty"`
	Status TargetEndpointStatus `json:"status,omitempty"`
}

TargetEndpoint is the Schema for the targetendpoints API +k8s:openapi-gen=true

func (*TargetEndpoint) DeepCopy

func (in *TargetEndpoint) DeepCopy() *TargetEndpoint

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

func (*TargetEndpoint) DeepCopyInto

func (in *TargetEndpoint) DeepCopyInto(out *TargetEndpoint)

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

func (*TargetEndpoint) DeepCopyObject

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

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

type TargetEndpointList

type TargetEndpointList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TargetEndpoint `json:"items"`
}

TargetEndpointList contains a list of TargetEndpoint

func (*TargetEndpointList) DeepCopy

func (in *TargetEndpointList) DeepCopy() *TargetEndpointList

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

func (*TargetEndpointList) DeepCopyInto

func (in *TargetEndpointList) DeepCopyInto(out *TargetEndpointList)

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

func (*TargetEndpointList) DeepCopyObject

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

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

type TargetEndpointSpec

type TargetEndpointSpec struct {
	// Protocol of the application. Supports "http" and "https".
	ApplicationProtocol string `json:"applicationProtocol"`
	// List of optional ports of the target endpoint.
	// First port should be the port of the target endpoint which is referred in swagger definition.
	Ports []Port `json:"ports"`
	// Deployment details.
	Deploy Deploy `json:"deploy"`
	// Mode of the Target Endpoint. Supports "privateJet", "sidecar", "serverless".
	// Default value "privateJet"
	// +optional
	Mode Mode `json:"mode,omitempty"`
}

TargetEndpointSpec defines the desired state of TargetEndpoint +k8s:openapi-gen=true

func (*TargetEndpointSpec) DeepCopy

func (in *TargetEndpointSpec) DeepCopy() *TargetEndpointSpec

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

func (*TargetEndpointSpec) DeepCopyInto

func (in *TargetEndpointSpec) DeepCopyInto(out *TargetEndpointSpec)

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

type TargetEndpointStatus

type TargetEndpointStatus struct {
}

TargetEndpointStatus defines the observed state of TargetEndpoint +k8s:openapi-gen=true

func (*TargetEndpointStatus) DeepCopy

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

func (*TargetEndpointStatus) DeepCopyInto

func (in *TargetEndpointStatus) DeepCopyInto(out *TargetEndpointStatus)

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