Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationSetter ¶
AnnotationSetter is responsible to add an annotation to link the StorageClass with the PVC.
func NewAnnotationSetter ¶
func NewAnnotationSetter(k8s client.Client) *AnnotationSetter
NewAnnotationSetter returns a new PVC annotation mutating admission controller.
func (*AnnotationSetter) MutatePVC ¶
func (s *AnnotationSetter) MutatePVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim, namespace string) error
MutatePVC mutates a given pvc with a new annotation, by attached StorageClass.
Errors returned here may block creation of the PVC, depending on the FailurePolicy set in the webhook configuration.
Click to show internal directories.
Click to hide internal directories.