v1beta1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the swagger.infra.doodle.com v1beta1 API group +kubebuilder:object:generate=true +groupName=swagger.infra.doodle.com

Index

Constants

View Source
const (
	ConditionReady       = "Ready"
	ConditionReconciling = "Reconciling"
	ReadyCondition       = "Ready"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "swagger.infra.doodle.com", Version: "v1beta1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Contact added in v0.1.0

type Contact struct {
	Extensions map[string]json.RawMessage `json:"-"`

	Name  string `json:"name,omitempty"`
	URL   string `json:"url,omitempty"`
	Email string `json:"email,omitempty"`
}

func (*Contact) DeepCopy added in v0.1.0

func (in *Contact) DeepCopy() *Contact

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

func (*Contact) DeepCopyInto added in v0.1.0

func (in *Contact) DeepCopyInto(out *Contact)

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

type DeploymentSpec

type DeploymentSpec struct {
	// Number of desired pods. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	// +optional
	Replicas *int32 `json:"replicas,omitempty"`

	// Template describes the pods that will be created.
	// The only allowed template.spec.restartPolicy value is "Always".
	Template corev1.PodTemplateSpec `json:"template"`

	// The deployment strategy to use to replace existing pods with new ones.
	// +optional
	// +patchStrategy=retainKeys
	Strategy appsv1.DeploymentStrategy `json:"strategy,omitempty" patchStrategy:"retainKeys"`

	// Minimum number of seconds for which a newly created pod should be ready
	// without any of its container crashing, for it to be considered available.
	// Defaults to 0 (pod will be considered available as soon as it is ready)
	// +optional
	MinReadySeconds int32 `json:"minReadySeconds,omitempty"`

	// The number of old ReplicaSets to retain to allow rollback.
	// This is a pointer to distinguish between explicit zero and not specified.
	// Defaults to 10.
	// +optional
	RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`

	// Indicates that the deployment is paused.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// The maximum time in seconds for a deployment to make progress before it
	// is considered to be failed. The deployment controller will continue to
	// process failed deployments and a condition with a ProgressDeadlineExceeded
	// reason will be surfaced in the deployment status. Note that progress will
	// not be estimated during the time a deployment is paused. Defaults to 600s.
	ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"`
}

func (*DeploymentSpec) DeepCopy

func (in *DeploymentSpec) DeepCopy() *DeploymentSpec

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

func (*DeploymentSpec) DeepCopyInto

func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)

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

type DeploymentTemplate

type DeploymentTemplate struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMetadata `json:"metadata,omitempty"`

	// Specification of the desired behavior of the pod.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec DeploymentSpec `json:"spec,omitempty"`
}

func (*DeploymentTemplate) DeepCopy

func (in *DeploymentTemplate) DeepCopy() *DeploymentTemplate

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

func (*DeploymentTemplate) DeepCopyInto

func (in *DeploymentTemplate) DeepCopyInto(out *DeploymentTemplate)

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

type Info added in v0.1.0

type Info struct {
	Extensions map[string]json.RawMessage `json:"-"`

	Title          string  `json:"title,omitempty" `
	Description    string  `json:"description,omitempty"`
	TermsOfService string  `json:"termsOfService,omitempty"`
	Contact        Contact `json:"contact,omitempty"`
	License        License `json:"license,omitempty"`
	Version        string  `json:"version"`
}

func (*Info) DeepCopy added in v0.1.0

func (in *Info) DeepCopy() *Info

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

func (*Info) DeepCopyInto added in v0.1.0

func (in *Info) DeepCopyInto(out *Info)

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

type License added in v0.1.0

type License struct {
	Extensions map[string]json.RawMessage `json:"-"`

	Name string `json:"name,omitempty"`
	URL  string `json:"url,omitempty"`
}

func (*License) DeepCopy added in v0.1.0

func (in *License) DeepCopy() *License

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

func (*License) DeepCopyInto added in v0.1.0

func (in *License) DeepCopyInto(out *License)

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

type ObjectMetadata

type ObjectMetadata struct {
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*ObjectMetadata) DeepCopy

func (in *ObjectMetadata) DeepCopy() *ObjectMetadata

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

func (*ObjectMetadata) DeepCopyInto

func (in *ObjectMetadata) DeepCopyInto(out *ObjectMetadata)

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

type ResourceLookupReference added in v0.1.0

type ResourceLookupReference struct {
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
	Error      string `json:"error,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

ResourceLookupReference metadata to lookup another resource

func (*ResourceLookupReference) DeepCopy added in v0.1.0

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

func (*ResourceLookupReference) DeepCopyInto added in v0.1.0

func (in *ResourceLookupReference) DeepCopyInto(out *ResourceLookupReference)

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

type ResourceReference

type ResourceReference struct {
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

ResourceReference metadata to lookup another resource

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type Server added in v0.1.0

type Server struct {
	Extensions map[string]json.RawMessage `json:"-"`

	URL         string                     `json:"url,omitempty"`
	Description string                     `json:"description,omitempty"`
	Variables   map[string]*ServerVariable `json:"variables,omitempty"`
}

func (*Server) DeepCopy added in v0.1.0

func (in *Server) DeepCopy() *Server

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

func (*Server) DeepCopyInto added in v0.1.0

func (in *Server) DeepCopyInto(out *Server)

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

type ServerVariable added in v0.1.0

type ServerVariable struct {
	Extensions map[string]json.RawMessage `json:"-"`

	Enum        []string `json:"enum,omitempty"`
	Default     string   `json:"default,omitempty"`
	Description string   `json:"description,omitempty"`
}

func (*ServerVariable) DeepCopy added in v0.1.0

func (in *ServerVariable) DeepCopy() *ServerVariable

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

func (*ServerVariable) DeepCopyInto added in v0.1.0

func (in *ServerVariable) DeepCopyInto(out *ServerVariable)

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

type Servers added in v0.1.0

type Servers []*Server

func (Servers) DeepCopy added in v0.1.0

func (in Servers) DeepCopy() Servers

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

func (Servers) DeepCopyInto added in v0.1.0

func (in Servers) DeepCopyInto(out *Servers)

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

type SwaggerDefinition

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

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

+kubebuilder:object:root=true +kubebuilder:subresource:status

func (*SwaggerDefinition) DeepCopy

func (in *SwaggerDefinition) DeepCopy() *SwaggerDefinition

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

func (*SwaggerDefinition) DeepCopyInto

func (in *SwaggerDefinition) DeepCopyInto(out *SwaggerDefinition)

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

func (*SwaggerDefinition) DeepCopyObject

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

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

type SwaggerDefinitionList

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

SwaggerDefinitionList contains a list of SwaggerDefinition. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SwaggerDefinitionList) DeepCopy

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

func (*SwaggerDefinitionList) DeepCopyInto

func (in *SwaggerDefinitionList) DeepCopyInto(out *SwaggerDefinitionList)

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

func (*SwaggerDefinitionList) DeepCopyObject

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

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

type SwaggerDefinitionSpec

type SwaggerDefinitionSpec struct {
	URL *string `json:"url,omitempty"`
}

SwaggerDefinitionSpec defines the desired state of SwaggerDefinition. +k8s:openapi-gen=true

func (*SwaggerDefinitionSpec) DeepCopy

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

func (*SwaggerDefinitionSpec) DeepCopyInto

func (in *SwaggerDefinitionSpec) DeepCopyInto(out *SwaggerDefinitionSpec)

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

type SwaggerHub

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

	Spec   SwaggerHubSpec   `json:"spec,omitempty"`
	Status SwaggerHubStatus `json:"status,omitempty"`
}

SwaggerHub is the Schema for the SwaggerHubs API

func SwaggerHubReady

func SwaggerHubReady(realm SwaggerHub, status metav1.ConditionStatus, reason, message string) SwaggerHub

func SwaggerHubReconciling

func SwaggerHubReconciling(realm SwaggerHub, status metav1.ConditionStatus, reason, message string) SwaggerHub

func (*SwaggerHub) DeepCopy

func (in *SwaggerHub) DeepCopy() *SwaggerHub

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

func (*SwaggerHub) DeepCopyInto

func (in *SwaggerHub) DeepCopyInto(out *SwaggerHub)

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

func (*SwaggerHub) DeepCopyObject

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

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

func (*SwaggerHub) GetConditions

func (in *SwaggerHub) GetConditions() []metav1.Condition

func (*SwaggerHub) GetStatusConditions

func (in *SwaggerHub) GetStatusConditions() *[]metav1.Condition

GetStatusConditions returns a pointer to the Status.Conditions slice

func (*SwaggerHub) SetConditions

func (in *SwaggerHub) SetConditions(conditions []metav1.Condition)

type SwaggerHubList

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

SwaggerHubList contains a list of SwaggerHub

func (*SwaggerHubList) DeepCopy

func (in *SwaggerHubList) DeepCopy() *SwaggerHubList

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

func (*SwaggerHubList) DeepCopyInto

func (in *SwaggerHubList) DeepCopyInto(out *SwaggerHubList)

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

func (*SwaggerHubList) DeepCopyObject

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

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

type SwaggerHubSpec

type SwaggerHubSpec struct {
	DeploymentTemplate *DeploymentTemplate `json:"deploymentTemplate,omitempty"`

	FrontendURL string `json:"frontendURL,omitempty"`

	// Suspend reconciliation
	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// DefinitionSelector defines a selector to select swagger definitions associated with this hub
	DefinitionSelector *metav1.LabelSelector `json:"definitionSelector,omitempty"`

	// SpecificationSelector defines a selector to select swagger specifications associated with this hub
	SpecificationSelector *metav1.LabelSelector `json:"specificationSelector,omitempty"`

	// NamespaceSelector defines a selector to select namespaces where definitions are looked up
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}

SwaggerHubSpec defines the desired state of SwaggerHub

func (*SwaggerHubSpec) DeepCopy

func (in *SwaggerHubSpec) DeepCopy() *SwaggerHubSpec

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

func (*SwaggerHubSpec) DeepCopyInto

func (in *SwaggerHubSpec) DeepCopyInto(out *SwaggerHubSpec)

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

type SwaggerHubStatus

type SwaggerHubStatus struct {
	// Conditions holds the conditions for the SwaggerHub.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the last generation reconciled by the controller
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// SubResourceCatalog holds discovered references to all sub resources including SwaggerDefinition and SwaggerUnification associated with this hub
	SubResourceCatalog []ResourceReference `json:"subResourceCatalog,omitempty"`
}

SwaggerHubStatus defines the observed state of SwaggerHub

func (*SwaggerHubStatus) DeepCopy

func (in *SwaggerHubStatus) DeepCopy() *SwaggerHubStatus

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

func (*SwaggerHubStatus) DeepCopyInto

func (in *SwaggerHubStatus) DeepCopyInto(out *SwaggerHubStatus)

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

type SwaggerSpecification added in v0.1.0

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

	Spec   SwaggerSpecificationSpec   `json:"spec,omitempty"`
	Status SwaggerSpecificationStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status

func SwaggerSpecificationReady added in v0.1.0

func SwaggerSpecificationReady(realm SwaggerSpecification, status metav1.ConditionStatus, reason, message string) SwaggerSpecification

func SwaggerSpecificationReconciling added in v0.1.0

func SwaggerSpecificationReconciling(realm SwaggerSpecification, status metav1.ConditionStatus, reason, message string) SwaggerSpecification

func (*SwaggerSpecification) DeepCopy added in v0.1.0

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

func (*SwaggerSpecification) DeepCopyInto added in v0.1.0

func (in *SwaggerSpecification) DeepCopyInto(out *SwaggerSpecification)

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

func (*SwaggerSpecification) DeepCopyObject added in v0.1.0

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

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

func (*SwaggerSpecification) GetConditions added in v0.1.0

func (in *SwaggerSpecification) GetConditions() []metav1.Condition

func (*SwaggerSpecification) GetStatusConditions added in v0.1.0

func (in *SwaggerSpecification) GetStatusConditions() *[]metav1.Condition

GetStatusConditions returns a pointer to the Status.Conditions slice

func (*SwaggerSpecification) SetConditions added in v0.1.0

func (in *SwaggerSpecification) SetConditions(conditions []metav1.Condition)

type SwaggerSpecificationList added in v0.1.0

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

SwaggerSpecificationList contains a list of SwaggerSpecification. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SwaggerSpecificationList) DeepCopy added in v0.1.0

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

func (*SwaggerSpecificationList) DeepCopyInto added in v0.1.0

func (in *SwaggerSpecificationList) DeepCopyInto(out *SwaggerSpecificationList)

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

func (*SwaggerSpecificationList) DeepCopyObject added in v0.1.0

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

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

type SwaggerSpecificationSpec added in v0.1.0

type SwaggerSpecificationSpec struct {
	// Suspend reconciliation
	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// NamespaceSelector defines a selector to select namespaces where definitions are looked up
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`

	// DefinitionSelector defines a selector to select swagger definitions associated with this hub
	DefinitionSelector *metav1.LabelSelector `json:"definitionSelector,omitempty"`

	Info    Info    `json:"info,omitempty"`
	Servers Servers `json:"servers,omitempty"`
}

SwaggerSpecificationSpec defines the desired state of SwaggerSpecification. +k8s:openapi-gen=true

func (*SwaggerSpecificationSpec) DeepCopy added in v0.1.0

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

func (*SwaggerSpecificationSpec) DeepCopyInto added in v0.1.0

func (in *SwaggerSpecificationSpec) DeepCopyInto(out *SwaggerSpecificationSpec)

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

type SwaggerSpecificationStatus added in v0.1.0

type SwaggerSpecificationStatus struct {
	// Conditions holds the conditions for the SwaggerSpecification.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the last generation reconciled by the controller
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// SubResourceCatalog holds references to all sub resources
	SubResourceCatalog []ResourceLookupReference `json:"subResourceCatalog,omitempty"`
}

SwaggerSpecificationStatus defines the observed state of SwaggerSpecification

func (*SwaggerSpecificationStatus) DeepCopy added in v0.1.0

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

func (*SwaggerSpecificationStatus) DeepCopyInto added in v0.1.0

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