storage

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

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     *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

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