Documentation ¶
Index ¶
- Constants
- func CreateNewBrokerRoleBinding(kubeClient kubernetes.Interface, serviceAccount, roleName, inNamespace string) (brokerRoleBinding *rbacv1.RoleBinding, err error)
- func CreateNewBrokerSA(kubeClient kubernetes.Interface, submarinerBrokerSA, inNamespace string) (err error)
- func CreateOrUpdateBrokerAdminRole(clientset kubernetes.Interface, inNamespace string) (created bool, err error)
- func CreateOrUpdateClusterBrokerRole(kubeClient kubernetes.Interface, inNamespace string) (bool, error)
- func CreateSAForCluster(kubeClient kubernetes.Interface, clusterID, inNamespace string) (*v1.Secret, error)
- func Ensure(crdUpdater crd.Updater, kubeClient kubernetes.Interface, componentArr []string, ...) error
- func NewBrokerAdminRole() *rbacv1.Role
- func NewBrokerClusterRole() *rbacv1.Role
- func NewBrokerRoleBinding(serviceAccount, role, namespace string) *rbacv1.RoleBinding
- func NewBrokerSA(submarinerBrokerSA string) *v1.ServiceAccount
- func WaitForClientToken(kubeClient kubernetes.Interface, submarinerBrokerSA, inNamespace string) (*v1.Secret, error)
- func WriteInfoToFile(restConfig *rest.Config, brokerNamespace, ipsecFile string, ...) error
- type Info
Constants ¶
View Source
const InfoFileName = "broker-info.subm"
Variables ¶
This section is empty.
Functions ¶
func CreateNewBrokerRoleBinding ¶
func CreateNewBrokerRoleBinding(kubeClient kubernetes.Interface, serviceAccount, roleName, inNamespace string) ( brokerRoleBinding *rbacv1.RoleBinding, err error, )
nolint:wrapcheck // No need to wrap here
func CreateNewBrokerSA ¶
func CreateNewBrokerSA(kubeClient kubernetes.Interface, submarinerBrokerSA, inNamespace string) (err error)
nolint:wrapcheck // No need to wrap here
func CreateOrUpdateBrokerAdminRole ¶
func CreateOrUpdateBrokerAdminRole(clientset kubernetes.Interface, inNamespace string) (created bool, err error)
nolint:wrapcheck // No need to wrap here
func CreateOrUpdateClusterBrokerRole ¶
func CreateOrUpdateClusterBrokerRole(kubeClient kubernetes.Interface, inNamespace string) (bool, error)
nolint:wrapcheck // No need to wrap here
func CreateSAForCluster ¶
func CreateSAForCluster(kubeClient kubernetes.Interface, clusterID, inNamespace string) (*v1.Secret, error)
CreateSAForCluster creates a new SA, and binds it to the submariner cluster role.
func NewBrokerAdminRole ¶
Create a role to bind to Broker SA.
func NewBrokerClusterRole ¶
Create a role for each Cluster SAs to bind to.
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 WaitForClientToken ¶
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) GetComponents ¶
func (*Info) IsConnectivityEnabled ¶
func (*Info) IsServiceDiscoveryEnabled ¶
Click to show internal directories.
Click to hide internal directories.