Documentation ¶
Index ¶
- func GetBindingName(userName string) (string, error)
- func MarshalDexDataConfig(dc *DexDataConfig) (string, error)
- func MarshalProfile(profile Profile) ([]byte, error)
- func NewRoleBinding(namespace, userName string) (*rbacv1.RoleBinding, error)
- type DexDataConfig
- type Plugin
- type Profile
- type ProfileCondition
- type ProfileSpec
- type ProfileStatus
- type Profiles
- type RoleRef
- type ServiceRoleBinding
- type ServiceRoleBindingList
- type ServiceRoleBindingSpec
- type ServiceRoleBindingStatus
- type StatiClient
- type StaticPassword
- type Subject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBindingName ¶
GetBindingName TBU https://github.com/kubeflow/kubeflow/blob/d6bf8f85046fbc1ea5efa81cf0ef7905503dba8c/components/access-management/kfam/bindings.go#L58
func MarshalDexDataConfig ¶
func MarshalDexDataConfig(dc *DexDataConfig) (string, error)
MarshalDexDataConfig TBU
func NewRoleBinding ¶
func NewRoleBinding(namespace, userName string) (*rbacv1.RoleBinding, error)
NewRoleBinding TBU
Types ¶
type DexDataConfig ¶
type DexDataConfig struct { Issuer string `yaml:"issuer"` Storage struct { Type string `yaml:"type"` Config struct { InCluster bool `yaml:"inCluster"` } `yaml:"config"` } `yaml:"storage"` Web struct { HTTP string `yaml:"http"` } `yaml:"web"` Logger struct { Level string `yaml:"level"` Format string `yaml:"format"` } `yaml:"loggger"` Oauth2 struct { SkipApprovalScreen bool `yaml:"skipApprovalScreen"` } `yaml:"oauth2"` EnablePasswordDB bool `yaml:"enablePasswordDB"` StaticPasswords []StaticPassword `yaml:"staticPasswords"` StaticClients []StatiClient `yaml:"staticClients"` }
DexDataConfig TBU
func UnmarshalDexDataConfig ¶
func UnmarshalDexDataConfig(data string) (*DexDataConfig, error)
UnmarshalDexDataConfig TBU
type Plugin ¶
type Plugin struct { metav1.TypeMeta `json:",inline"` Spec *runtime.RawExtension `json:"spec,omitempty"` }
Plugin is for customize actions on different platform.
type Profile ¶
type Profile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProfileSpec `json:"spec,omitempty"` Status ProfileStatus `json:"status,omitempty"` }
Profile is the Schema for the profiles API
type ProfileCondition ¶
type ProfileCondition struct { Type string `json:"type,omitempty"` Status string `json:"status,omitempty" description:"status of the condition, one of True, False, Unknown"` Message string `json:"message,omitempty"` }
ProfileCondition TBU
type ProfileSpec ¶
type ProfileSpec struct { // The profile owner Owner rbacv1.Subject `json:"owner,omitempty"` Plugins []Plugin `json:"plugins,omitempty"` // Resourcequota that will be applied to target namespace ResourceQuotaSpec v1.ResourceQuotaSpec `json:"resourceQuotaSpec,omitempty"` }
ProfileSpec defines the desired state of Profile
type ProfileStatus ¶
type ProfileStatus struct {
Conditions []ProfileCondition `json:"conditions,omitempty"`
}
ProfileStatus defines the observed state of Profile
type Profiles ¶
type Profiles struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Profile `json:"items"` }
Profiles contains a list of Profile
func UnmarshalProfiles ¶
UnmarshalProfiles TBU
type ServiceRoleBinding ¶
type ServiceRoleBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceRoleBindingSpec `json:"spec,omitempty"` Status ServiceRoleBindingStatus `json:"status,omitempty"` }
ServiceRoleBinding is the Schema for the servicerolebindings API
func NewServiceRoleBinding ¶
func NewServiceRoleBinding(namespace, userName string) (*ServiceRoleBinding, error)
NewServiceRoleBinding TBU
type ServiceRoleBindingList ¶
type ServiceRoleBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceRoleBinding `json:"items"` }
ServiceRoleBindingList contains a list of ServiceRoleBinding
type ServiceRoleBindingSpec ¶
type ServiceRoleBindingSpec struct { Subjects []*Subject `json:"subjects,omitempty"` RoleRef *RoleRef `json:"roleRef,omitempty"` }
ServiceRoleBindingSpec defines the desired state of ServiceRoleBinding
type ServiceRoleBindingStatus ¶
type ServiceRoleBindingStatus struct { }
ServiceRoleBindingStatus defines the observed state of ServiceRoleBinding
type StatiClient ¶
type StatiClient struct { ID string `yaml:"id,omitempty"` IDEnv string `yaml:"idEnv,omitempty"` RedirectURIs []string `yaml:"redirectURIs,omitempty"` Name string `yaml:"name"` Secret string `yaml:"secret,omitempty"` SecretEnv string `yaml:"secretEnv,omitempty"` }
StatiClient TBU
type StaticPassword ¶
type StaticPassword struct { Email string `yaml:"email"` Hash string `yaml:"hash,omitempty"` HashFromFile string `yaml:"hashFromFile,omitempty"` HashFromEnv string `yaml:"hashFromEnv,omitempty"` Username string `yaml:"username"` UserID string `yaml:"userID"` }
StaticPassword TBU