Documentation
¶
Overview ¶
Copyright 2025 HAProxy Technologies LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceReconciler ¶
type ServiceReconciler struct {
// contains filtered or unexported fields
}
ServiceReconciler reconciles the HUG Kubernetes Service ports against the active set of VirtualListeners.
func New ¶
func New(k8sClient client.Client, logger *slog.Logger) *ServiceReconciler
New creates a ServiceReconciler. The provided logger is wrapped with the "hugservice" category so its output can be filtered independently.
func (*ServiceReconciler) ReconcilePorts ¶
func (r *ServiceReconciler) ReconcilePorts(ctx context.Context, virtualListeners map[string]*tree.VirtualListener)
ReconcilePorts finds all Services labelled with the HUG label and reconciles their ports so that:
- Reserved ports (stat, metrics) are left untouched.
- All other ports are replaced by the current set of VirtualListener ports.