Documentation ¶
Index ¶
- Variables
- func Add(mgr manager.Manager, src map[string]config.ConfigAndNamespaceTuple) error
- func ExportServiceAccountSecret(saSecret *corev1.Secret, cfg *rest.Config, contextClusterUserName string) *corev1.Secret
- func MakeServiceAccountImportSecret(sai *v1alpha1.ServiceAccountImport, saSecret *corev1.Secret, cfg *rest.Config, ...) *corev1.Secret
Constants ¶
This section is empty.
Variables ¶
var AnnotationKeyServiceAccountImportName = "multicluster.admiralty.io/service-account-import.name"
Functions ¶
func Add ¶
Add creates a service account import controller and adds it to a manager (mgr). It is implemented by the service-account-import-controller command, via controller-runtime. The src argument is a map of client-go rest.Configs and namespaces by service account import name or kubeconfig context. The controller watches service account imports in the manager's cluster, and ensures secrets exist for each of them, created from the corresponding remote service account secrets data and cluster URL, fetched with the source client whose name matches the service account import clusterName spec field. TODO... import into multiple clusters with multicluster-controller
func ExportServiceAccountSecret ¶ added in v0.6.0
Types ¶
This section is empty.