Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultPVC is a basic PVC DefaultPVC = kokumetricscfgv1beta1.EmbeddedPersistentVolumeClaim{ TypeMeta: metav1.TypeMeta{ APIVersion: "v1", Kind: "PersistentVolumeClaim", }, EmbeddedObjectMetadata: kokumetricscfgv1beta1.EmbeddedObjectMetadata{ Name: "koku-metrics-operator-data", Labels: map[string]string{ "application": "koku-metrics-operator", }, }, Spec: corev1.PersistentVolumeClaimSpec{ AccessModes: []corev1.PersistentVolumeAccessMode{"ReadWriteOnce"}, Resources: corev1.ResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: tenGi, }, }, }, } )
Functions ¶
func MakeEmbeddedPVC ¶
func MakeEmbeddedPVC(pvc *corev1.PersistentVolumeClaim) *kokumetricscfgv1beta1.EmbeddedPersistentVolumeClaim
MakeEmbeddedPVC produces a template to create the PVC
func MakeVolumeClaimTemplate ¶
func MakeVolumeClaimTemplate(e kokumetricscfgv1beta1.EmbeddedPersistentVolumeClaim, namespace string) *corev1.PersistentVolumeClaim
MakeVolumeClaimTemplate produces a template to create the PVC
Types ¶
type Storage ¶
type Storage struct { Client client.Client KMCfg *kokumetricscfgv1beta1.KokuMetricsConfig Log logr.Logger Namespace string PVC *corev1.PersistentVolumeClaim // contains filtered or unexported fields }
Storage is a struct containing volume information
func (*Storage) ConvertVolume ¶
ConvertVolume converts the EmptyDir volume in deployment to PVC
Click to show internal directories.
Click to hide internal directories.