Documentation
¶
Index ¶
- Constants
- Variables
- func GatewayAddressTypePtr(addr gatewayv1.AddressType) *gatewayv1.AddressType
- func GroupPtr(name string) *gatewayv1.Group
- func KindPtr(name string) *gatewayv1.Kind
- func ObjectNamePtr(name string) *gatewayv1.ObjectName
- type ListenersStatus
- type SecretSyncHandler
- func (h *SecretSyncHandler) ConfigMapIsReferencedInGateway(ctx context.Context, _ client.Client, _ *slog.Logger, cfgMap *corev1.ConfigMap) bool
- func (h *SecretSyncHandler) EnqueueBackendTLSPolicyConfigMaps() handler.EventHandler
- func (h *SecretSyncHandler) EnqueueTLSSecrets() handler.EventHandler
- func (h *SecretSyncHandler) IsReferencedByGateway(ctx context.Context, _ client.Client, _ *slog.Logger, obj *corev1.Secret) bool
Constants ¶
View Source
const ( CiliumGammaConditionAccepted = CiliumGammaPrefix + "/GammaRoutesAttached" CiliumGammaReasonAccepted = "Accepted" )
View Source
const ( CiliumGammaConditionProgrammed = CiliumGammaPrefix + "/GammaRoutesProgrammed" CiliumGammaReasonProgrammed = "Programmed" )
View Source
const (
CiliumGammaPrefix = "gamma.cilium.io"
)
Variables ¶
View Source
var Cell = cell.Module( "gateway-api", "Manages the Gateway API controllers", cell.Config(gatewayApiConfig{ EnableGatewayAPISecretsSync: true, EnableGatewayAPIProxyProtocol: false, EnableGatewayAPIAppProtocol: false, EnableGatewayAPIAlpn: false, GatewayAPIServiceExternalTrafficPolicy: "Cluster", GatewayAPISecretsNamespace: "cilium-secrets", GatewayAPIXffNumTrustedHops: 0, GatewayAPIHostnetworkEnabled: false, GatewayAPIHostnetworkNodelabelselector: "", GatewayAPIUseRemoteAddress: true, }), cell.ProvidePrivate(newGatewayAPIPreconditions), cell.Invoke(initGatewayAPIController), cell.Provide(registerSecretSync), )
Functions ¶
func GatewayAddressTypePtr ¶
func GatewayAddressTypePtr(addr gatewayv1.AddressType) *gatewayv1.AddressType
func ObjectNamePtr ¶
func ObjectNamePtr(name string) *gatewayv1.ObjectName
Types ¶
type ListenersStatus ¶
type ListenersStatus string
const ( ListenersStatusNoneValid ListenersStatus = "NoneValid" ListenersStatusValidWithUnsupportedProtocol ListenersStatus = "SomeValidWithUnsupported" ListenersStatusSomeInvalid ListenersStatus = "SomeInvalid" ListenersStatusAllValid ListenersStatus = "AllValid" )
type SecretSyncHandler ¶
type SecretSyncHandler struct {
// contains filtered or unexported fields
}
func NewSecretSyncHandler ¶
func (*SecretSyncHandler) ConfigMapIsReferencedInGateway ¶
func (*SecretSyncHandler) EnqueueBackendTLSPolicyConfigMaps ¶
func (h *SecretSyncHandler) EnqueueBackendTLSPolicyConfigMaps() handler.EventHandler
Enqueue BackendTLSPolicyConfigmaps produces a handler.EventHandler that, when it is passed a BackendTLSPolicy as the object.Object, returns any ConfigMaps referenced.
func (*SecretSyncHandler) EnqueueTLSSecrets ¶
func (h *SecretSyncHandler) EnqueueTLSSecrets() handler.EventHandler
Source Files
¶
- cell.go
- controller.go
- endpointslice_reconcile.go
- gamma.go
- gamma_reconcile.go
- gamma_status.go
- gateway.go
- gateway_reconcile.go
- gateway_status.go
- gatewayclass.go
- gatewayclass_reconcile.go
- gatewayclass_status.go
- gatewayclassconfig.go
- gatewayclassconfig_reconcile.go
- helpers.go
- logger.go
- secretsync.go
- status.go
- status_route.go
Directories
¶
| Path | Synopsis |
|---|---|
|
testhelpers
testhelpers contains functions and fixtures that are helpful for testing multiple parts of the Gateway API code.
|
testhelpers contains functions and fixtures that are helpful for testing multiple parts of the Gateway API code. |
|
Package indexers holds functions related to building indexes for Kubernetes objects in the client cache.
|
Package indexers holds functions related to building indexes for Kubernetes objects in the client cache. |
|
policychecks holds objects that are used to be able run checks of various types of Policy for common problems, particularly related to things like:
|
policychecks holds objects that are used to be able run checks of various types of Policy for common problems, particularly related to things like: |
|
predicates holds functions that work as predicates for controller-runtime calls, filtering requests send to the watchhandler so that only objects that have the predicate function return `true` will be sent to the watch handler.
|
predicates holds functions that work as predicates for controller-runtime calls, filtering requests send to the watchhandler so that only objects that have the predicate function return `true` will be sent to the watch handler. |
|
routechecks holds a number of objects that fulfill the Input interface; this interface is used to be able to generically run checks of various types of Routes for common problems, particularly related to things like:
|
routechecks holds a number of objects that fulfill the Input interface; this interface is used to be able to generically run checks of various types of Routes for common problems, particularly related to things like: |
|
watchhandlers holds functions that return closures that are used as handler.TypedEventHandler[client.Object, reconcile.Request] in controller-runtime Watch() calls.
|
watchhandlers holds functions that return closures that are used as handler.TypedEventHandler[client.Object, reconcile.Request] in controller-runtime Watch() calls. |
Click to show internal directories.
Click to hide internal directories.