storage

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultPVC is a basic PVC
	DefaultPVC = kokumetricscfgv1alpha1.EmbeddedPersistentVolumeClaim{
		TypeMeta: metav1.TypeMeta{
			APIVersion: "v1",
			Kind:       "PersistentVolumeClaim",
		},
		EmbeddedObjectMetadata: kokumetricscfgv1alpha1.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

MakeEmbeddedPVC produces a template to create the PVC

func MakeVolumeClaimTemplate

MakeVolumeClaimTemplate produces a template to create the PVC

Types

type Storage

type Storage struct {
	Client client.Client
	KMCfg  *kokumetricscfgv1alpha1.KokuMetricsConfig
	Log    logr.Logger
	PVC    *corev1.PersistentVolumeClaim
	// contains filtered or unexported fields
}

Storage is a struct containing volume information

func (*Storage) ConvertVolume

func (s *Storage) ConvertVolume() (bool, error)

ConvertVolume converts the EmptyDir volume in deployment to PVC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL