# Packages
This file is generated by /hack/generators/kic/role-generator.
No description provided by the author
# Functions
ApplyDeploymentUserPatches applies user PodTemplateSpec patches to a Deployment.
ClusterCertificateVolume returns a volume holding a cluster certificate given a Secret holding a certificate.
ClusterCertificateVolumeMount returns a volume mount for the cluster certificate.
ClusterRoleBindingContainsServiceAccount returns true if the subjects of the ClusterRoleBinding contains given service account.
CompareClusterRoleName compares RoleRef in ClusterRoleBinding with given cluster role name.
DefaultControlPlaneResources generates a ResourceRequirements with the ControlPlane defaults.
DefaultDataPlaneResources generates a ResourceRequirements with the DataPlane defaults.
EnsureNetworkPolicyIsUpdated checks if the provided network policy needs an update.
GenerateControlPlaneContainer generates a control plane container.
GenerateControlPlaneProbe generates a controlplane probe that uses the specified endpoint.
GenerateDataPlaneContainer generates a DataPlane container.
GenerateDataPlaneReadinessProbe generates a dataplane probe that uses the specified endpoint.
GenerateHPAForDataPlane generate an HPA for the given DataPlane.
GenerateNewAdminServiceForDataPlane is a helper to generate the headless dataplane admin service.
GenerateNewAdmissionWebhookServiceForControlPlane is a helper to generate the admission webhook service for a control plane.
GenerateNewClusterRoleBindingForCertificateConfig is a helper to generate a ClusterRoleBinding to be used by the certificateConfig jobs.
GenerateNewClusterRoleBindingForControlPlane is a helper to generate a ClusterRoleBinding resource to bind roles to the service account used by the controlplane deployment.
GenerateNewClusterRoleForCertificateConfig is a helper to generate a ClusterRole to be used by the certificateConfig jobs.
GenerateNewClusterRoleForControlPlane is a helper function that extract the version from the tag, and returns the ClusterRole with all the needed permissions.
GenerateNewDeploymentForControlPlane generates a new Deployment for the ControlPlane.
GenerateNewDeploymentForDataPlane generates a new Deployment for the DataPlane.
GenerateNewIngressServiceForDataPlane is a helper to generate the dataplane ingress service.
GenerateNewRoleBindingForCertificateConfig is a helper to generate a RoleBinding to be used by the certificateConfig jobs.
GenerateNewRoleForCertificateConfig is a helper to generate a Role to be used by the certificateConfig jobs.
GenerateNewServiceAccountForCertificateConfig is a helper to generate a ServiceAccount to be used by the certificateConfig jobs.
GenerateNewServiceAccountForControlPlane is a helper to generate a ServiceAccount to be used by the controlplane deployment.
GenerateNewServiceForCertificateConfig is a helper to generate a service to expose the operator webhook.
GenerateNewTLSSecret is a helper to generate a TLS Secret to be used for mutual TLS.
GenerateNewWebhookCertificateConfigJob generates the create and patch jobs for the certificateConfig.
GenerateValidatingWebhookConfigurationForControlPlane generates a ValidatingWebhookConfiguration for a control plane based on the control plane version.
GetManagedLabelForOwner returns the managed-by labels for the provided owner.
GetManagedLabelForOwnerLegacy returns the legacy managed-by labels for the provided owner.
GetManagedLabelRequirementsForOwnerLegacy returns the legacy managed-by label requirements for the provided owner.
IsContainerResourceEmpty determines if the provided resource requirements is effectively "empty" in that all fields are unset.
LabelObjectAsControlPlaneManaged ensures that labels are set on the provided object to signal that it's owned by a ControlPlane resource and that its lifecycle is managed by this operator.
LabelObjectAsDataPlaneManaged ensures that labels are set on the provided object to signal that it's owned by a DataPlane resource and that its lifecycle is managed by this operator.
labelSelectorFromDataPlaneStatusSelectorServiceOpt returns a ServiceOpt function which will set Service's selector based on provided DataPlane's Status selector field.
NewValidatingWebhookConfigurationBuilder returns builder for ValidatingWebhookConfiguration.
ResourceRequirementsEqual compares two corev1.ResourceRequirements.
SecretWithLabel adds a label to a Secret.
ServicePortsFromDataPlaneIngressOpt is a helper to translate the DataPlane service ports field into actual service ports.
ServiceWithLabel adds a label to a Service.
SetDefaultsContainer sets defaults in the provided Container.
SetDefaultsPodTemplateSpec sets defaults in the provided PodTemplateSpec.
SetDefaultsVolume sets defaults in the provided Volume.
StrategicMergePatchPodTemplateSpec adds patches to base using a strategic merge patch and iterating by container name, failing on the first error.
# Constants
DefaultControlPlaneCPULimit is the default ControlPlane CPU limit.
DefaultControlPlaneCPURequest is the default ControlPlane CPU request.
DefaultControlPlaneMemoryLimit is the default ControlPlane memory limit.
DefaultControlPlaneMemoryRequest is the default ControlPlane memory request.
DefaultDataPlaneCPULimit is the default DataPlane CPU limit.
DefaultDataPlaneCPURequest is the default DataPlane CPU request.
DefaultDataPlaneIngressServiceType is the default Service type for a DataPlane.
DefaultDataPlaneMemoryLimit is the default DataPlane memory limit.
DefaultDataPlaneMemoryRequest is the default DataPlane memory request.
# Variables
DefaultDataPlaneIngressServicePorts returns the default ServicePorts for a DataPlane.
No description provided by the author
# Structs
GenerateContainerForControlPlaneParams is a parameter struct for GenerateControlPlaneContainer function.
GenerateNewDeploymentForControlPlaneParams is a parameter struct for GenerateNewDeploymentForControlPlane function.
ValidatingWebhookConfigurationBuilder is a helper to generate a ValidatingWebhookConfiguration.
# Type aliases
Deployment is a wrapper for appsv1.Deployment.
DeploymentOpt is an option for Deployment generators.
SecretOpt is an option function for a Secret.
ServiceOpt is an option function for a Service.