Documentation
¶
Index ¶
Constants ¶
const ( // GatewayClassNameLabel is stamped by istiod's gateway deployment controller // on every resource it renders for a Gateway, recording the GatewayClass the // resource was rendered for. GatewayClassNameLabel = "gateway.networking.k8s.io/gateway-class-name" )
const (
// IstioWaypointClassName is the GatewayClass name used by Istio waypoints.
IstioWaypointClassName = "istio-waypoint"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, opts options.ControllerOptions) error
Add creates the waypoint controller and adds it to the Manager. The controller reconciles the per-Gateway state the Istio feature needs beyond istiod's own rendering: it copies Installation pull secrets into namespaces that contain istio-waypoint Gateways (together with a tigera-operator-secrets RoleBinding that grants the operator permission to manage secrets there), and deletes the resource sets istiod strands when a Gateway's spec.gatewayClassName changes.
Types ¶
type ReconcileWaypoint ¶
ReconcileWaypoint reconciles the per-Gateway state the Istio feature needs beyond istiod's own rendering: it copies pull secrets (and the tigera-operator-secrets RoleBinding needed to manage them) to namespaces that contain istio-waypoint Gateways so waypoint pods can pull images from private registries, and deletes istiod-managed gateway resources that were rendered for a GatewayClass their owning Gateway no longer uses.