Documentation ¶
Index ¶
- func FromContext(ctx context.Context) *v1.Settingsdeprecated
- func GenerateNamespacesToWatch(settings *v1.Settings, namespaces kubernetes.KubeNamespaceList) ([]string, error)
- func GetNamespacesToWatch(settings *v1.Settings) []string
- func IsAllNamespaces(watchNs []string) bool
- func IsAllNamespacesFromSettings(settings *v1.Settings) bool
- func MaybeFromContext(ctx context.Context) *v1.Settings
- func NamespaceWatched(settings *v1.Settings, namespace kubernetes.KubeNamespace) (bool, error)
- func UpdateNamespacesToWatch(settings *v1.Settings, namespaces kubernetes.KubeNamespaceList) (bool, error)
- func WithSettings(ctx context.Context, settings *v1.Settings) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext
deprecated
func GenerateNamespacesToWatch ¶ added in v1.17.9
func GenerateNamespacesToWatch(settings *v1.Settings, namespaces kubernetes.KubeNamespaceList) ([]string, error)
GenerateNamespacesToWatch generates the list of namespaces to watch based on : - If `watchNamespaces` is defined, return it and do not consider `watchNamespaceSelectors` - If `watchNamespaces` and `watchNamespaceSelectors` are not defined, return `watchNamespaces` for backward compatibility - If `watchNamespaces` is not defined and `watchNamespaceSelectors` is defined, return all namespaces that match the `watchNamespaceSelectors` In every case, the `discoveryNamespace` (defaults to `gloo-system`) is appended to the list of namespaces
func GetNamespacesToWatch ¶ added in v1.17.9
GetNamespacesToWatch returns the list of namespaces to watch based on the last run of `GenerateNamespacesToWatch`
func IsAllNamespaces ¶
func NamespaceWatched ¶ added in v1.17.9
func NamespaceWatched(settings *v1.Settings, namespace kubernetes.KubeNamespace) (bool, error)
NamespaceWatched returns true if the namespace passed will be watched based on the current settings object's `watchNamespaces` and `watchNamespaceSelectors` fields
func UpdateNamespacesToWatch ¶ added in v1.17.9
func UpdateNamespacesToWatch(settings *v1.Settings, namespaces kubernetes.KubeNamespaceList) (bool, error)
UpdateNamespacesToWatch generates and updated the list of namespaces to watch and returns true if updated
Types ¶
This section is empty.