Documentation ¶
Index ¶
- Constants
- Variables
- func AuthRefs(ctx context.Context, cli client.Client, f *feature.Feature) error
- func CheckControlPlaneComponentReadiness(ctx context.Context, c client.Client, smcpName, smcpNs string) (bool, error)
- func EnsureAuthNamespaceExists(ctx context.Context, cli client.Client, f *feature.Feature) error
- func EnsureServiceMeshInstalled(ctx context.Context, cli client.Client, f *feature.Feature) error
- func EnsureServiceMeshOperatorInstalled(ctx context.Context, cli client.Client, f *feature.Feature) error
- func MeshRefs(ctx context.Context, cli client.Client, f *feature.Feature) error
- func RemoveExtensionProvider(controlPlane infrav1.ControlPlaneSpec, extensionName string) feature.CleanupFunc
- func WaitForControlPlaneToBeReady(ctx context.Context, cli client.Client, f *feature.Feature) error
- type AuthorizationData
Constants ¶
View Source
const ( ConfigMapAuthRef = "auth-refs" ConfigMapMeshRef = "service-mesh-refs" )
Variables ¶
View Source
var FeatureData = struct { ControlPlane feature.DataDefinition[dsciv1.DSCInitializationSpec, infrav1.ControlPlaneSpec] Authorization AuthorizationData }{ ControlPlane: feature.DataDefinition[dsciv1.DSCInitializationSpec, infrav1.ControlPlaneSpec]{ Define: func(source *dsciv1.DSCInitializationSpec) feature.DataEntry[infrav1.ControlPlaneSpec] { return feature.DataEntry[infrav1.ControlPlaneSpec]{ Key: controlPlaneKey, Value: func(_ context.Context, _ client.Client) (infrav1.ControlPlaneSpec, error) { return source.ServiceMesh.ControlPlane, nil }, } }, Extract: feature.ExtractEntry[infrav1.ControlPlaneSpec](controlPlaneKey), }, Authorization: AuthorizationData{ Spec: authSpec, Namespace: authNs, Provider: authProvider, ExtensionProviderName: authExtensionName, All: func(source *dsciv1.DSCInitializationSpec) []feature.Action { return []feature.Action{ authSpec.Define(source).AsAction(), authNs.Define(source).AsAction(), authProvider.Define(source).AsAction(), authExtensionName.Define(source).AsAction(), } }, }, }
FeatureData is a convention to simplify how the data for the Service Mesh features is Defined and accessed. Being a "singleton" it is based on anonymous struct concept.
Functions ¶
func AuthRefs ¶ added in v2.10.0
AuthRefs stores authorization configuration in the config map, so it can be easily accessed by other components which rely on this information.
func EnsureAuthNamespaceExists ¶ added in v2.8.0
EnsureAuthNamespaceExists creates a namespace for the Authorization provider and set ownership so it will be garbage collected when the operator is uninstalled.
func MeshRefs ¶ added in v2.10.0
MeshRefs stores service mesh configuration in the config map, so it can be easily accessed by other components which rely on this information.
func RemoveExtensionProvider ¶ added in v2.8.0
func RemoveExtensionProvider(controlPlane infrav1.ControlPlaneSpec, extensionName string) feature.CleanupFunc
Types ¶
type AuthorizationData ¶ added in v2.15.0
type AuthorizationData struct { Spec feature.DataDefinition[dsciv1.DSCInitializationSpec, infrav1.AuthSpec] Namespace feature.DataDefinition[dsciv1.DSCInitializationSpec, string] Provider feature.DataDefinition[dsciv1.DSCInitializationSpec, string] ExtensionProviderName feature.DataDefinition[dsciv1.DSCInitializationSpec, string] All func(source *dsciv1.DSCInitializationSpec) []feature.Action }
Click to show internal directories.
Click to hide internal directories.