Documentation ¶
Index ¶
- Constants
- Variables
- type KubeFilerExportManager
- func (m *KubeFilerExportManager) Finalize(ctx context.Context, instance *kubefilerv1alpha1.KubeFilerExport) Result
- func (m *KubeFilerExportManager) Process(ctx context.Context, nsname types.NamespacedName) Result
- func (m *KubeFilerExportManager) Update(ctx context.Context, instance *kubefilerv1alpha1.KubeFilerExport) Result
- type KubeFilerManager
- func (m *KubeFilerManager) CanConfigure(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) Configure(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) Deploy(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) Finalize(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) IsRunning(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) Process(ctx context.Context, nsname types.NamespacedName) Result
- func (m *KubeFilerManager) StartDeployment(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- func (m *KubeFilerManager) Update(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
- type Logger
- type Result
Constants ¶
const ( EventNormal = "Normal" EventWarning = "Warning" )
constants for event types. its a bit odd that this isn't already in one of the k8s pkgs
const ( ReasonCreatedPersistentVolumeClaim = "CreatedPersistentVolumeClaim" ReasonCreatedDeployment = "CreatedDeployment" ReasonCreatedService = "CreatedService" ReasonReadyForConfiguration = "ReadyForConfiguration" ReasonFirstUserCreated = "FirstUserCreated" ReasonConnectedToPortal = "ConnectedToPortal" ReasonCacheGatewayStarted = "CacheGatewayStarted" ReasonExportsConfigured = "ExportsConfigured" ReasonConfiguredSuccessfully = "ConfiguredSuccessfully" ReasonNotRunning = "NotRunning" )
constants for event reasons.
const ( // RunDirMountPath is the path for the "run" directory inside the container RunDirMountPath = "/run" // TmpDirMountPath is the path for the "tmp" directory inside the container TmpDirMountPath = "/tmp" // CgroupDirLocalPath is the path for the "cgroup" directory on the Host machine CgroupDirLocalPath = "/sys/fs/cgroup" // CgroupDirMountPath is the path for the "cgroup" directory inside the container CgroupDirMountPath = "/sys/fs/cgroup" )
const ( // GatewayUsernameKey is the name of the key to read the username from when reading the secret GatewayUsernameKey = "username" // GatewayDefaultUsername is the username for the secret GatewayDefaultUsername = "admin" // GatewayPasswordKey is the name of the key to read the password from when reading the secret GatewayPasswordKey = "password" // GatewayPasswordLength is the length of the generated password GatewayPasswordLength = 16 // GatewayPasswordNumDigits is the amount of digits in the generated password GatewayPasswordNumDigits = 2 // GatewayPasswordNumSymbols is the amount of symbols in the generated password GatewayPasswordNumSymbols = 2 // GatewayPasswordNoUpper sets whether upper case letters may be used GatewayPasswordNoUpper = false // GatewayPasswordAllowRepeat sets whether the same charcter may repeat GatewayPasswordAllowRepeat = false // GatewayJwtSecretKey is the name of the key to read the JWT Token from when reading the secret GatewayJwtSecretKey = "jwt_secret" // GatewayJwtSecretLength is the length of the generated secret for the JWT encoding GatewayJwtSecretLength = 16 // GatewayJwtSecretNumDigits is the amount of digits in the generated secret for the JWT encoding GatewayJwtSecretNumDigits = 2 // GatewayJwtSecretNumSymbols is the amount of symbols in the generated secret for the JWT encoding GatewayJwtSecretNumSymbols = 2 // GatewayJwtSecretNoUpper sets whether upper case letters may be used in the generated secret for the JWT encoding GatewayJwtSecretNoUpper = false // GatewayJwtSecretAllowRepeat sets whether the same charcter may repeat in the generated secret for the JWT encoding GatewayJwtSecretAllowRepeat = false )
Variables ¶
var ( // Done represents a result that is complete. Done = Result{} // Requeue is a result that needs to be re-queued. Requeue = Result{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
type KubeFilerExportManager ¶
type KubeFilerExportManager struct {
// contains filtered or unexported fields
}
KubeFilerExportManager is used to manage KubeFilerExport resources.
func NewKubeFilerExportManager ¶
func NewKubeFilerExportManager(client client.Client, recorder record.EventRecorder, logger Logger) *KubeFilerExportManager
NewKubeFilerExportManager creates a KubeFilerExportManager.
func (*KubeFilerExportManager) Finalize ¶
func (m *KubeFilerExportManager) Finalize(ctx context.Context, instance *kubefilerv1alpha1.KubeFilerExport) Result
Finalize should be called when there's a finalizer on the resource and we need to do some cleanup.
func (*KubeFilerExportManager) Process ¶
func (m *KubeFilerExportManager) Process(ctx context.Context, nsname types.NamespacedName) Result
Process is called by the controller on any type of reconciliation.
func (*KubeFilerExportManager) Update ¶
func (m *KubeFilerExportManager) Update(ctx context.Context, instance *kubefilerv1alpha1.KubeFilerExport) Result
Update should be called when a KubeFiler resource changes.
type KubeFilerManager ¶
type KubeFilerManager struct {
// contains filtered or unexported fields
}
KubeFilerManager is used to manage KubeFiler resources.
func NewKubeFilerManager ¶
func NewKubeFilerManager(client client.Client, recorder record.EventRecorder, logger Logger) *KubeFilerManager
NewKubeFilerManager creates a KubeFilerManager.
func (*KubeFilerManager) CanConfigure ¶
func (m *KubeFilerManager) CanConfigure(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
func (*KubeFilerManager) Configure ¶
func (m *KubeFilerManager) Configure(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
func (*KubeFilerManager) Deploy ¶
func (m *KubeFilerManager) Deploy(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
Update should be called when a KubeFiler resource changes.
func (*KubeFilerManager) Finalize ¶
func (m *KubeFilerManager) Finalize(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
Finalize should be called when there's a finalizer on the resource and we need to do some cleanup.
func (*KubeFilerManager) IsRunning ¶
func (m *KubeFilerManager) IsRunning(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
func (*KubeFilerManager) Process ¶
func (m *KubeFilerManager) Process(ctx context.Context, nsname types.NamespacedName) Result
Process is called by the controller on any type of reconciliation.
func (*KubeFilerManager) StartDeployment ¶
func (m *KubeFilerManager) StartDeployment(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result
func (*KubeFilerManager) Update ¶
func (m *KubeFilerManager) Update(ctx context.Context, instance *kubefilerv1alpha1.KubeFiler) Result