Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the apollo.infra.doodle.com v1beta1 API group +kubebuilder:object:generate=true +groupName=apollo.infra.doodle.com
Index ¶
- Constants
- Variables
- type ComposeError
- type DeploymentSpec
- type DeploymentTemplate
- type ObjectMetadata
- type ReconcilerTemplate
- type ResourceReference
- type Schema
- type SubGraph
- func (in *SubGraph) DeepCopy() *SubGraph
- func (in *SubGraph) DeepCopyInto(out *SubGraph)
- func (in *SubGraph) DeepCopyObject() runtime.Object
- func (in *SubGraph) GetConditions() []metav1.Condition
- func (in *SubGraph) GetStatusConditions() *[]metav1.Condition
- func (in *SubGraph) SetConditions(conditions []metav1.Condition)
- type SubGraphList
- type SubGraphSpec
- type SubGraphStatus
- type SuperGraph
- func (in *SuperGraph) DeepCopy() *SuperGraph
- func (in *SuperGraph) DeepCopyInto(out *SuperGraph)
- func (in *SuperGraph) DeepCopyObject() runtime.Object
- func (in *SuperGraph) GetConditions() []metav1.Condition
- func (in *SuperGraph) GetStatusConditions() *[]metav1.Condition
- func (in *SuperGraph) SetConditions(conditions []metav1.Condition)
- type SuperGraphList
- type SuperGraphSchema
- func (in *SuperGraphSchema) DeepCopy() *SuperGraphSchema
- func (in *SuperGraphSchema) DeepCopyInto(out *SuperGraphSchema)
- func (in *SuperGraphSchema) DeepCopyObject() runtime.Object
- func (in *SuperGraphSchema) GetConditions() []metav1.Condition
- func (in *SuperGraphSchema) GetStatusConditions() *[]metav1.Condition
- func (in *SuperGraphSchema) SetConditions(conditions []metav1.Condition)
- type SuperGraphSchemaList
- type SuperGraphSchemaSpec
- type SuperGraphSchemaStatus
- type SuperGraphSpec
- type SuperGraphStatus
Constants ¶
const ( ConditionReady = "Ready" ConditionReconciling = "Reconciling" ReadyCondition = "Ready" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apollo.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 ComposeError ¶ added in v0.1.0
type ComposeError struct {
Message string `json:"message,omitempty"`
Code string `json:"code,omitempty"`
Type string `json:"type,omitempty"`
}
func (*ComposeError) DeepCopy ¶ added in v0.1.0
func (in *ComposeError) DeepCopy() *ComposeError
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComposeError.
func (*ComposeError) DeepCopyInto ¶ added in v0.1.0
func (in *ComposeError) DeepCopyInto(out *ComposeError)
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 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 ReconcilerTemplate ¶ added in v0.0.3
type ReconcilerTemplate 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 corev1.PodSpec `json:"spec,omitempty"`
}
func (*ReconcilerTemplate) DeepCopy ¶ added in v0.0.3
func (in *ReconcilerTemplate) DeepCopy() *ReconcilerTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReconcilerTemplate.
func (*ReconcilerTemplate) DeepCopyInto ¶ added in v0.0.3
func (in *ReconcilerTemplate) DeepCopyInto(out *ReconcilerTemplate)
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 Schema ¶
type Schema struct {
SDL string `json:"sdl,omitempty"`
}
func (*Schema) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schema.
func (*Schema) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubGraph ¶
type SubGraph struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SubGraphSpec `json:"spec,omitempty"`
Status SubGraphStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status
func SubGraphReady ¶
func SubGraphReady(subgraph SubGraph, status metav1.ConditionStatus, reason, message string) SubGraph
func SubGraphReconciling ¶
func SubGraphReconciling(subgraph SubGraph, status metav1.ConditionStatus, reason, message string) SubGraph
func (*SubGraph) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubGraph.
func (*SubGraph) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubGraph) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SubGraph) GetConditions ¶
func (*SubGraph) GetStatusConditions ¶
GetStatusConditions returns a pointer to the Status.Conditions slice
func (*SubGraph) SetConditions ¶
type SubGraphList ¶
type SubGraphList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SubGraph `json:"items"`
}
SubGraphList contains a list of SubGraph. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SubGraphList) DeepCopy ¶
func (in *SubGraphList) DeepCopy() *SubGraphList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubGraphList.
func (*SubGraphList) DeepCopyInto ¶
func (in *SubGraphList) DeepCopyInto(out *SubGraphList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubGraphList) DeepCopyObject ¶
func (in *SubGraphList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubGraphSpec ¶
type SubGraphSpec struct {
Endpoint string `json:"endpoint,omitempty"`
Suspend bool `json:"suspend,omitempty"`
Schema *Schema `json:"schema,omitempty"`
}
SubGraphSpec +k8s:openapi-gen=true
func (*SubGraphSpec) DeepCopy ¶
func (in *SubGraphSpec) DeepCopy() *SubGraphSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubGraphSpec.
func (*SubGraphSpec) DeepCopyInto ¶
func (in *SubGraphSpec) DeepCopyInto(out *SubGraphSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubGraphStatus ¶
type SubGraphStatus struct {
SHA256Checksum string `json:"sha256Checksum,omitempty"`
// ObservedGeneration is the last generation reconciled by the controller
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Conditions holds the conditions for the SuperGraph.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
func (*SubGraphStatus) DeepCopy ¶
func (in *SubGraphStatus) DeepCopy() *SubGraphStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubGraphStatus.
func (*SubGraphStatus) DeepCopyInto ¶
func (in *SubGraphStatus) DeepCopyInto(out *SubGraphStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SuperGraph ¶
type SuperGraph struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SuperGraphSpec `json:"spec,omitempty"`
Status SuperGraphStatus `json:"status,omitempty"`
}
SuperGraph is the Schema for the SuperGraphs API
func SuperGraphReady ¶
func SuperGraphReady(supergraph SuperGraph, status metav1.ConditionStatus, reason, message string) SuperGraph
func SuperGraphReconciling ¶
func SuperGraphReconciling(supergraph SuperGraph, status metav1.ConditionStatus, reason, message string) SuperGraph
func (*SuperGraph) DeepCopy ¶
func (in *SuperGraph) DeepCopy() *SuperGraph
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraph.
func (*SuperGraph) DeepCopyInto ¶
func (in *SuperGraph) DeepCopyInto(out *SuperGraph)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SuperGraph) DeepCopyObject ¶
func (in *SuperGraph) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SuperGraph) GetConditions ¶
func (in *SuperGraph) GetConditions() []metav1.Condition
func (*SuperGraph) GetStatusConditions ¶
func (in *SuperGraph) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
func (*SuperGraph) SetConditions ¶
func (in *SuperGraph) SetConditions(conditions []metav1.Condition)
type SuperGraphList ¶
type SuperGraphList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SuperGraph `json:"items"`
}
SuperGraphList contains a list of SuperGraph
func (*SuperGraphList) DeepCopy ¶
func (in *SuperGraphList) DeepCopy() *SuperGraphList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphList.
func (*SuperGraphList) DeepCopyInto ¶
func (in *SuperGraphList) DeepCopyInto(out *SuperGraphList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SuperGraphList) DeepCopyObject ¶
func (in *SuperGraphList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SuperGraphSchema ¶
type SuperGraphSchema struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SuperGraphSchemaSpec `json:"spec,omitempty"`
Status SuperGraphSchemaStatus `json:"status,omitempty"`
}
SuperGraphSchema is the Schema for the SuperGraphSchemas API
func SuperGraphSchemaReady ¶
func SuperGraphSchemaReady(schema SuperGraphSchema, status metav1.ConditionStatus, reason, message string) SuperGraphSchema
func SuperGraphSchemaReconciling ¶
func SuperGraphSchemaReconciling(schema SuperGraphSchema, status metav1.ConditionStatus, reason, message string) SuperGraphSchema
func (*SuperGraphSchema) DeepCopy ¶
func (in *SuperGraphSchema) DeepCopy() *SuperGraphSchema
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphSchema.
func (*SuperGraphSchema) DeepCopyInto ¶
func (in *SuperGraphSchema) DeepCopyInto(out *SuperGraphSchema)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SuperGraphSchema) DeepCopyObject ¶
func (in *SuperGraphSchema) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SuperGraphSchema) GetConditions ¶
func (in *SuperGraphSchema) GetConditions() []metav1.Condition
func (*SuperGraphSchema) GetStatusConditions ¶
func (in *SuperGraphSchema) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
func (*SuperGraphSchema) SetConditions ¶
func (in *SuperGraphSchema) SetConditions(conditions []metav1.Condition)
type SuperGraphSchemaList ¶
type SuperGraphSchemaList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []SuperGraphSchema `json:"items"`
}
SuperGraphSchemaList contains a list of SuperGraphSchema
func (*SuperGraphSchemaList) DeepCopy ¶
func (in *SuperGraphSchemaList) DeepCopy() *SuperGraphSchemaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphSchemaList.
func (*SuperGraphSchemaList) DeepCopyInto ¶
func (in *SuperGraphSchemaList) DeepCopyInto(out *SuperGraphSchemaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SuperGraphSchemaList) DeepCopyObject ¶
func (in *SuperGraphSchemaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SuperGraphSchemaSpec ¶
type SuperGraphSchemaSpec struct {
// Suspend reconciliation
// +optional
Suspend bool `json:"suspend,omitempty"`
// FederationVersion
// +kubebuilder:default="2"
FederationVersion string `json:"federationVersion"`
Timeout *metav1.Duration `json:"timeout,omitempty"`
Interval *metav1.Duration `json:"interval,omitempty"`
ReconcilerTemplate *ReconcilerTemplate `json:"reconcilerTemplate,omitempty"`
// SubgraphSelector defines a selector to select subgraphs associated with this schema
SubGraphSelector *metav1.LabelSelector `json:"subGraphSelector,omitempty"`
// NamespaceSelector defines a selector to select namespaces where subgraphs are looked up
NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
}
SuperGraphSchemaSpec defines the desired state of SuperGraphSchema
func (*SuperGraphSchemaSpec) DeepCopy ¶
func (in *SuperGraphSchemaSpec) DeepCopy() *SuperGraphSchemaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphSchemaSpec.
func (*SuperGraphSchemaSpec) DeepCopyInto ¶
func (in *SuperGraphSchemaSpec) DeepCopyInto(out *SuperGraphSchemaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SuperGraphSchemaStatus ¶
type SuperGraphSchemaStatus struct {
// Conditions holds the conditions for the SuperGraphSchema.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
Reconciler corev1.LocalObjectReference `json:"reconciler,omitempty"`
ComposeErrors []ComposeError `json:"composeErrors,omitempty"`
ObservedSHA256Checksum string `json:"observedSHA256Checksum,omitempty"`
// ConfigMap reference
ConfigMap corev1.LocalObjectReference `json:"configMap,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"`
}
SuperGraphSchemaStatus defines the observed state of SuperGraphSchema
func (*SuperGraphSchemaStatus) DeepCopy ¶
func (in *SuperGraphSchemaStatus) DeepCopy() *SuperGraphSchemaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphSchemaStatus.
func (*SuperGraphSchemaStatus) DeepCopyInto ¶
func (in *SuperGraphSchemaStatus) DeepCopyInto(out *SuperGraphSchemaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SuperGraphSpec ¶
type SuperGraphSpec struct {
DeploymentTemplate *DeploymentTemplate `json:"deploymentTemplate,omitempty"`
// Suspend reconciliation
// +optional
Suspend bool `json:"suspend,omitempty"`
RouterConfig runtime.RawExtension `json:"routerConfig,omitempty"`
// Schema
// +kubebuilder:validation:Required
Schema corev1.LocalObjectReference `json:"schema"`
}
SuperGraphSpec defines the desired state of SuperGraph
func (*SuperGraphSpec) DeepCopy ¶
func (in *SuperGraphSpec) DeepCopy() *SuperGraphSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphSpec.
func (*SuperGraphSpec) DeepCopyInto ¶
func (in *SuperGraphSpec) DeepCopyInto(out *SuperGraphSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SuperGraphStatus ¶
type SuperGraphStatus struct {
// Conditions holds the conditions for the SuperGraph.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ConfigMap reference
ConfigMap corev1.LocalObjectReference `json:"configMap,omitempty"`
// ObservedGeneration is the last generation reconciled by the controller
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
SuperGraphStatus defines the observed state of SuperGraph
func (*SuperGraphStatus) DeepCopy ¶
func (in *SuperGraphStatus) DeepCopy() *SuperGraphStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuperGraphStatus.
func (*SuperGraphStatus) DeepCopyInto ¶
func (in *SuperGraphStatus) DeepCopyInto(out *SuperGraphStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.