v0.6.1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 23 Imported by: 0




This section is empty.


View Source
var AnnotationKeyServiceAccountImportName = ""


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

func ExportServiceAccountSecret(saSecret *corev1.Secret, cfg *rest.Config, contextClusterUserName string) *corev1.Secret

func MakeServiceAccountImportSecret added in v0.4.0

func MakeServiceAccountImportSecret(sai *v1alpha1.ServiceAccountImport, saSecret *corev1.Secret, cfg *rest.Config, scheme *runtime.Scheme) *corev1.Secret


This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL