Documentation ¶
Index ¶
- Constants
- func CreateNewBrokerAdminRole(clientset *kubernetes.Clientset) (brokerAdminRole *rbac.Role, err error)
- func CreateNewBrokerNamespace(clientset *kubernetes.Clientset) (brokernamespace *v1.Namespace, err error)
- func CreateNewBrokerRoleBinding(clientset *kubernetes.Clientset, serviceAccount, role string) (brokerRoleBinding *rbac.RoleBinding, err error)
- func CreateNewBrokerSA(clientset *kubernetes.Clientset, submarinerBrokerSA string) (brokerSA *v1.ServiceAccount, err error)
- func CreateNewClusterBrokerRole(clientset *kubernetes.Clientset) (brokerrole *rbac.Role, err error)
- func CreateSAForCluster(clientset *kubernetes.Clientset, clusterID string) (*v1.Secret, error)
- func Ensure(config *rest.Config) error
- func GetClientTokenSecret(clientSet clientset.Interface, brokerNamespace string, ...) (*v1.Secret, error)
- func NewBrokerAdminRole() *rbacv1.Role
- func NewBrokerClusterRole() *rbacv1.Role
- func NewBrokerNamespace() *v1.Namespace
- func NewBrokerRoleBinding(serviceAccount, role string) *rbacv1.RoleBinding
- func NewBrokerSA(submarinerBrokerSA string) *v1.ServiceAccount
- func TestBrokerSetup(t *testing.T)
- func WaitForClientToken(clientset *kubernetes.Clientset, submarinerBrokerSA string) (secret *v1.Secret, err error)
Constants ¶
View Source
const (
SubmarinerBrokerAdminSA = "submariner-k8s-broker-admin"
)
View Source
const (
SubmarinerBrokerNamespace = "submariner-k8s-broker"
)
Variables ¶
This section is empty.
Functions ¶
func CreateNewBrokerAdminRole ¶ added in v0.3.0
func CreateNewBrokerAdminRole(clientset *kubernetes.Clientset) (brokerAdminRole *rbac.Role, err error)
func CreateNewBrokerNamespace ¶ added in v0.3.0
func CreateNewBrokerNamespace(clientset *kubernetes.Clientset) (brokernamespace *v1.Namespace, err error)
func CreateNewBrokerRoleBinding ¶ added in v0.3.0
func CreateNewBrokerRoleBinding(clientset *kubernetes.Clientset, serviceAccount, role string) (brokerRoleBinding *rbac.RoleBinding, err error)
func CreateNewBrokerSA ¶ added in v0.3.0
func CreateNewBrokerSA(clientset *kubernetes.Clientset, submarinerBrokerSA string) (brokerSA *v1.ServiceAccount, err error)
func CreateNewClusterBrokerRole ¶ added in v0.3.0
func CreateNewClusterBrokerRole(clientset *kubernetes.Clientset) (brokerrole *rbac.Role, err error)
func CreateSAForCluster ¶ added in v0.3.0
CreateSAForCluster creates a new SA, and binds it to the submariner cluster role
func GetClientTokenSecret ¶
func NewBrokerAdminRole ¶ added in v0.3.0
Create a role to bind to Broker SA
func NewBrokerClusterRole ¶ added in v0.3.0
Create a role for each Cluster SAs to bind to
func NewBrokerNamespace ¶
func NewBrokerRoleBinding ¶
func NewBrokerRoleBinding(serviceAccount, role string) *rbacv1.RoleBinding
Create a role for to bind the cluster admin (subctl) SA
func NewBrokerSA ¶
func NewBrokerSA(submarinerBrokerSA string) *v1.ServiceAccount
func TestBrokerSetup ¶
func WaitForClientToken ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.