Documentation ¶
Overview ¶
Package resources works directly with k8s resources.
Index ¶
Constants ¶
View Source
const ( EventNormal = "Normal" EventWarning = "Warning" )
constants for event types. its a bit odd that this isn't already in one of the k8s pkgs
View Source
const ( ReasonCreatedPersistentVolumeClaim = "CreatedPersistentVolumeClaim" ReasonCreatedDeployment = "CreatedDeployment" ReasonCreatedStatefulSet = "CreatedStatefulSet" ReasonInvalidConfiguration = "InvalidConfiguration" )
constants for event reasons.
View Source
const (
// ConfigJSONKey is the name of the key our json is under.
ConfigJSONKey = "config.json"
)
Variables ¶
View Source
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 ¶
func IsOpenShiftCluster ¶
IsOpenShiftCluster checks if operator is running on OpenShift cluster based on its self-pod annotations.
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result encapsulates the result of the work performed by a resource update.
type SmbShareManager ¶
type SmbShareManager struct {
// contains filtered or unexported fields
}
SmbShareManager is used to manage SmbShare resources.
func NewSmbShareManager ¶
func NewSmbShareManager( client rtclient.Client, scheme *runtime.Scheme, recorder record.EventRecorder, logger Logger) *SmbShareManager
NewSmbShareManager creates a SmbShareManager.
func (*SmbShareManager) Finalize ¶
func (m *SmbShareManager) Finalize( ctx context.Context, instance *sambaoperatorv1alpha1.SmbShare) Result
Finalize should be called when there's a finalizer on the resource and we need to do some cleanup.
func (*SmbShareManager) Process ¶
func (m *SmbShareManager) Process( ctx context.Context, nsname types.NamespacedName) Result
Process is called by the controller on any type of reconciliation.
func (*SmbShareManager) Update ¶
func (m *SmbShareManager) Update( ctx context.Context, instance *sambaoperatorv1alpha1.SmbShare) Result
Update should be called when a SmbShare resource changes.
Click to show internal directories.
Click to hide internal directories.