Help us shape the future of Go! Take the 2026 Go Developer Survey

swiftstorage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMapTemplates

func ConfigMapTemplates(instance *swiftv1beta1.SwiftStorage, labels map[string]string) []util.Template

func DeviceConfigMapTemplates

func DeviceConfigMapTemplates(instance *swiftv1beta1.SwiftStorage, devices string) []util.Template

func DeviceList

func DeviceList(ctx context.Context, h *helper.Helper, instance *swiftv1beta1.SwiftStorage) string

func Labels

func Labels() map[string]string

func NetworkPolicy

func NetworkPolicy(
	instance *swiftv1beta1.SwiftStorage) *networkingv1.NetworkPolicy

func Service

func Service(
	instance *swiftv1beta1.SwiftStorage) *corev1.Service

func StatefulSet

func StatefulSet(
	swiftstorage *swiftv1beta1.SwiftStorage, labels map[string]string) *appsv1.StatefulSet

Types

type NetworkPolicyStruct

type NetworkPolicyStruct struct {
	// contains filtered or unexported fields
}

func NewNetworkPolicy

func NewNetworkPolicy(
	networkPolicy *networkingv1.NetworkPolicy,
	labels map[string]string,
	timeout time.Duration,
) *NetworkPolicyStruct

NewNetworkPolicy returns an initialized NetworkPolicy.

func (*NetworkPolicyStruct) CreateOrPatch

func (np *NetworkPolicyStruct) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

TODO: add this to lib-common

Jump to

Keyboard shortcuts

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