apis/

directory
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

README

pkg/apis

Kubernetes API type definitions for the controller's CRDs.

Overview

pkg/apis/haproxytemplate/v1alpha1/ holds the Go type definitions plus kubebuilder markers for every CRD the controller owns:

  • HAProxyTemplateConfig — primary input CRD that operators write
  • HAProxyCfg — published rendered HAProxy config (output)
  • HAProxyMapFile, HAProxyGeneralFile, HAProxyCRTListFile — published auxiliary files (output)

All zz_generated_deepcopy.go files are produced by controller-gen. The OpenAPI CRD manifests in charts/haptic/crds/ are also generated from these types — make generate regenerates both.

Workflow

# After editing pkg/apis/haproxytemplate/v1alpha1/types_*.go:
make generate                    # runs controller-gen + clientset-gen
make verify-generate             # CI runs this; fails if any output drifted

Never hand-edit anything in this tree's zz_generated_*.go files or the corresponding output under pkg/generated/ and charts/haptic/crds/ — they are recreated from scratch on every make generate.

See Also

  • pkg/generated/ — typed clientset, informers, and listers generated from these types
  • charts/haptic/crds/ — OpenAPI CRD manifests generated from these types
  • docs/controller/docs/crd-reference.md — operator-facing field reference
  • Makefilegenerate / generate-crds / generate-deepcopy / generate-clientset targets

License

Apache-2.0 — see root LICENSE.

Directories

Path Synopsis
haproxytemplate
v1alpha1
Package v1alpha1 contains API Schema definitions for the haproxytemplate v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the haproxytemplate v1alpha1 API group.

Jump to

Keyboard shortcuts

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