v1alpha1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=pdok.nl

Index

Constants

This section is empty.

Variables

View Source
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

func (in *OGCAPI) DeepCopy() *OGCAPI

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

func (*OGCAPI) DeepCopyInto

func (in *OGCAPI) DeepCopyInto(out *OGCAPI)

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

func (*OGCAPI) DeepCopyObject

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

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

func (*OGCAPI) SetupWebhookWithManager added in v0.6.0

func (r *OGCAPI) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager will setup the manager to manage the webhooks

type OGCAPICustomValidator added in v1.0.0

type OGCAPICustomValidator struct {
	Client client.Client
}

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

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*OGCAPICustomValidator) ValidateDelete added in v1.0.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL