Documentation ¶
Index ¶
- func GetRoles(f fs.ReadFileFS, clusterType configuration.ClusterType) ([]runtimeclient.Object, error)
- func ParseTemplate(f fs.ReadFileFS, fileName string) ([]runtimeclient.Object, error)
- type ClusterConfig
- type ClusterRoleBindings
- type Clusters
- type FS
- type FilenameMatcher
- type KubeSawAdmins
- type MemberCluster
- type PermissionBindings
- type PermissionsPerClusterType
- type RoleBindings
- type ServiceAccount
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRoles ¶
func GetRoles(f fs.ReadFileFS, clusterType configuration.ClusterType) ([]runtimeclient.Object, error)
func ParseTemplate ¶
func ParseTemplate(f fs.ReadFileFS, fileName string) ([]runtimeclient.Object, error)
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
API string `yaml:"api"`
}
type ClusterRoleBindings ¶
type ClusterRoleBindings struct {
ClusterRoles []string `yaml:"clusterRoles,omitempty"`
}
type Clusters ¶
type Clusters struct { Host ClusterConfig `yaml:"host"` Members []MemberCluster `yaml:"members"` }
type FilenameMatcher ¶
type KubeSawAdmins ¶
type KubeSawAdmins struct { Clusters Clusters `yaml:"clusters"` ServiceAccounts []ServiceAccount `yaml:"serviceAccounts"` Users []User `yaml:"users"` }
func GetKubeSawAdminsConfig ¶
func GetKubeSawAdminsConfig(kubeSawAdminsFile string) (*KubeSawAdmins, error)
type MemberCluster ¶
type MemberCluster struct { Name string `yaml:"name"` ClusterConfig `yaml:",inline"` }
type PermissionBindings ¶
type PermissionBindings struct { RoleBindings []RoleBindings `yaml:"roleBindings"` ClusterRoleBindings ClusterRoleBindings `yaml:"clusterRoleBindings"` }
type PermissionsPerClusterType ¶
type PermissionsPerClusterType map[string]PermissionBindings
type RoleBindings ¶
type ServiceAccount ¶
type ServiceAccount struct { Name string `yaml:"name"` Namespace string `yaml:"namespace,omitempty"` PermissionsPerClusterType `yaml:",inline"` }
Click to show internal directories.
Click to hide internal directories.