names

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

pkg/controller/names

Well-known string constants shared across the controller layer.

Overview

Two recurring string identifiers that several packages reference. Keeping them in one place lets compile-time checks catch typos rather than failing silently at runtime when a switch on a resource-type name misses its case.

Constants

Name Value Use for
MainTemplateName "haproxy.cfg" The template-engine key for the primary HAProxy configuration — used when registering cfg.HAProxyConfig.Template in the engine's template map and when calling engine.Render
HAProxyPodsResourceType "haproxy-pods" The auto-injected pod watcher's resource-type key — appears in store maps, event filters, and the controller.haproxy_pods template context

If you find yourself string-typing either of these somewhere, replace it with the constant from this package.

License

Apache-2.0 — see root LICENSE.

Documentation

Overview

Package names provides well-known string constants used across the controller layer.

Centralizing these names prevents typos and enables safe refactoring through compile-time checks rather than runtime string matching.

Index

Constants

View Source
const (
	// MainTemplateName is the template name for the primary HAProxy configuration file.
	MainTemplateName = "haproxy.cfg"

	// HAProxyPodsResourceType is the resource type name for the auto-injected HAProxy
	// pod watcher. It appears in store maps, event filters, and rendering context.
	HAProxyPodsResourceType = "haproxy-pods"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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