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
- Variables
- type DeploymentSpec
- type DeploymentTemplate
- type ObjectMetadata
- type ResourceReference
- type SwaggerDefinition
- type SwaggerDefinitionList
- type SwaggerDefinitionSpec
- type SwaggerHub
- func (in *SwaggerHub) DeepCopy() *SwaggerHub
- func (in *SwaggerHub) DeepCopyInto(out *SwaggerHub)
- func (in *SwaggerHub) DeepCopyObject() runtime.Object
- func (in *SwaggerHub) GetConditions() []metav1.Condition
- func (in *SwaggerHub) GetStatusConditions() *[]metav1.Condition
- func (in *SwaggerHub) SetConditions(conditions []metav1.Condition)
- type SwaggerHubList
- type SwaggerHubSpec
- type SwaggerHubStatus
Constants ¶
const ( ConditionReady = "Ready" ConditionReconciling = "Reconciling" ReadyCondition = "Ready" )
Variables ¶
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 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 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 ResourceReference ¶
type ResourceReference struct { Kind string `json:"kind,omitempty"` Name string `json:"name,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 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 ¶
func (in *SwaggerDefinitionList) DeepCopy() *SwaggerDefinitionList
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 ¶
func (in *SwaggerDefinitionSpec) DeepCopy() *SwaggerDefinitionSpec
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"` // 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"` // 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 references to all sub resources including KeycloakClient and KeycloakUser associated with this realm 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.