Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=pdok.nl
Index ¶
- Variables
- type OGCAPI
- type OGCAPICustomValidator
- func (v *OGCAPICustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *OGCAPICustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *OGCAPICustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type OGCAPIList
- type OGCAPISpec
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "pdok.nl", Version: "v1alpha1"} // 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 OGCAPI ¶
type OGCAPI struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec OGCAPISpec `json:"spec,omitempty"`
Status smoothoperatormodel.OperatorStatus `json:"status,omitempty"`
}
OGCAPI is the Schema for the ogcapis API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:categories=pdok +kubebuilder:printcolumn:name="ReadyPods",type=integer,JSONPath=`.status.podSummary[0].ready` +kubebuilder:printcolumn:name="DesiredPods",type=integer,JSONPath=`.status.podSummary[0].total` +kubebuilder:printcolumn:name="ReconcileStatus",type=string,JSONPath=`.status.conditions[?(@.type == "Reconciled")].reason`
func (*OGCAPI) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OGCAPI.
func (*OGCAPI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OGCAPI) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*OGCAPI) OperatorStatus ¶ added in v1.1.0
func (ogcapi *OGCAPI) OperatorStatus() *smoothoperatormodel.OperatorStatus
type OGCAPICustomValidator ¶ added in v1.0.0
OGCAPICustomValidator struct is responsible for validating the OGCAPI resource when it is created, updated, or deleted.
NOTE: The +kubebuilder:object:generate=false marker prevents controller-gen from generating DeepCopy methods, as this struct is used only for temporary operations and does not need to be deeply copied. +kubebuilder:object:generate=false
func (*OGCAPICustomValidator) ValidateCreate ¶ added in v1.0.0
func (v *OGCAPICustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*OGCAPICustomValidator) ValidateDelete ¶ added in v1.0.0
func (v *OGCAPICustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*OGCAPICustomValidator) ValidateUpdate ¶ added in v1.0.0
func (v *OGCAPICustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type the 'old' Object is passed as an argument, so it can be used in the validation
type OGCAPIList ¶
type OGCAPIList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []OGCAPI `json:"items"`
}
OGCAPIList contains a list of OGCAPI +kubebuilder:object:root=true
func (*OGCAPIList) DeepCopy ¶
func (in *OGCAPIList) DeepCopy() *OGCAPIList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OGCAPIList.
func (*OGCAPIList) DeepCopyInto ¶
func (in *OGCAPIList) DeepCopyInto(out *OGCAPIList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OGCAPIList) DeepCopyObject ¶
func (in *OGCAPIList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OGCAPISpec ¶
type OGCAPISpec struct {
Service gokoalaconfig.Config `json:"service"`
//+kubebuilder:validation:Type=object
//+kubebuilder:validation:Schemaless
//+kubebuilder:pruning:PreserveUnknownFields
// Optional strategic merge patch for the pod in the deployment. E.g. to patch the resources or add extra env vars.
PodSpecPatch *corev1.PodSpec `json:"podSpecPatch,omitempty"`
// Optional list of URLs where the service can be reached
// By default only the spec.service.baseUrl is used
IngressRouteURLs smoothoperatormodel.IngressRouteURLs `json:"ingressRouteUrls,omitempty"`
}
OGCAPISpec defines the desired state of OGCAPI +kubebuilder:pruning:PreserveUnknownFields ^^ unknown fields are allowed (but ignored and not maintained when marshalling) for backwards compatibility
func (*OGCAPISpec) DeepCopy ¶
func (in *OGCAPISpec) DeepCopy() *OGCAPISpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OGCAPISpec.
func (*OGCAPISpec) DeepCopyInto ¶
func (in *OGCAPISpec) DeepCopyInto(out *OGCAPISpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.