Documentation ¶
Index ¶
- Constants
- func CreateNewBrokerAdminSA(ctx context.Context, kubeClient kubernetes.Interface, inNamespace string) (err error)
- func CreateNewBrokerRoleBinding(ctx context.Context, kubeClient kubernetes.Interface, ...) (brokerRoleBinding *rbacv1.RoleBinding, err error)
- func CreateNewBrokerSA(ctx context.Context, kubeClient kubernetes.Interface, ...) (err error)
- func CreateOrUpdateBrokerAdminRole(ctx context.Context, clientset kubernetes.Interface, inNamespace string) (created bool, err error)
- func CreateOrUpdateBrokerAdminRoleBinding(ctx context.Context, kubeClient kubernetes.Interface, inNamespace string) (created bool, err error)
- func CreateOrUpdateClusterBrokerRole(ctx context.Context, kubeClient kubernetes.Interface, inNamespace string) (bool, error)
- func CreateSAForCluster(ctx context.Context, kubeClient kubernetes.Interface, ...) (*v1.Secret, error)
- func Ensure(ctx context.Context, crdUpdater crd.Updater, kubeClient kubernetes.Interface, ...) error
- func GenerateRandomPSK() ([]byte, error)
- func NewBrokerRoleBinding(serviceAccount, role, namespace string) *rbacv1.RoleBinding
- func NewBrokerSA(submarinerBrokerSA string) *v1.ServiceAccount
- func RecoverData(submCluster *cluster.Info, broker *v1alpha1.Broker, ...) error
- func WriteInfoToFile(restConfig *rest.Config, brokerNamespace, brokerURL string, ipsecPSK []byte, ...) error
- type Info
Constants ¶
View Source
const InfoFileName = "broker-info.subm"
View Source
const (
LocalClientBrokerSecretName = "submariner-broker-secret"
)
Variables ¶
This section is empty.
Functions ¶
func CreateNewBrokerAdminSA ¶ added in v0.16.0
func CreateNewBrokerRoleBinding ¶
func CreateNewBrokerRoleBinding(ctx context.Context, kubeClient kubernetes.Interface, serviceAccount, roleName, inNamespace string) ( brokerRoleBinding *rbacv1.RoleBinding, err error, )
func CreateNewBrokerSA ¶
func CreateOrUpdateBrokerAdminRoleBinding ¶ added in v0.16.0
func CreateSAForCluster ¶
func CreateSAForCluster(ctx context.Context, kubeClient kubernetes.Interface, clusterID, inNamespace string) (*v1.Secret, error)
CreateSAForCluster creates a new SA for each new cluster joined and binds it to the submariner cluster role.
func GenerateRandomPSK ¶ added in v0.15.0
GenerateRandomPSK returns a securely generated array suitable for use as a PSK.
func NewBrokerRoleBinding ¶
func NewBrokerRoleBinding(serviceAccount, role, namespace string) *rbacv1.RoleBinding
Create a role for to bind the cluster admin (subctl) SA.
func NewBrokerSA ¶
func NewBrokerSA(submarinerBrokerSA string) *v1.ServiceAccount
func RecoverData ¶ added in v0.15.0
Types ¶
type Info ¶
type Info struct { BrokerURL string `json:"brokerURL"` ClientToken *corev1.Secret `omitempty,json:"clientToken"` IPSecPSK *corev1.Secret `omitempty,json:"ipsecPSK"` ServiceDiscovery bool `omitempty,json:"serviceDiscovery"` Components []string `json:",omitempty"` CustomDomains *[]string `omitempty,json:"customDomains"` }
func ReadInfoFromFile ¶
func (*Info) GetBrokerAdministratorConfig ¶
func (*Info) IsConnectivityEnabled ¶
func (*Info) IsServiceDiscoveryEnabled ¶
Click to show internal directories.
Click to hide internal directories.