metadata

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=config.csi.trust-manager.io

Index

Constants

View Source
const (
	// Output files in the OpenSSL rehash format, see
	// https://manpages.ubuntu.com/manpages/noble/en/man1/c_rehash.1ssl.html
	OutputFormatOpenSSLRehash = "OpenSSLRehash"
	// Output a single concatenated file
	OutputFormatConcatenatedFile = "ConcatenatedFile"
)

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "config.csi.trust-manager.io", Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Metadata

type Metadata struct {
	metav1.TypeMeta

	// VolumeID is the ID passed to the CSI driver in the NodePublish request.
	VolumeID string
	// PodNamespace is the namespace of the pod being mounted into
	PodNamespace string
	// Bundle is the trust bundle to mount
	Bundle string
	// Outputs defines the output formats
	Outputs []Output
}

Metadata contains the stored metadata for a given volume mount, it is versioned to ensure an upgrade will always be able to load metadata

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Metadata) DeepCopyObject

func (in *Metadata) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (Metadata) GetName

func (m Metadata) GetName() string

type Output

type Output struct {
	// Format to write the certificate bundle
	Format OutputFormat
	// Owner of the files
	UID, GID *int64
	// Path to the file or directory.
	// For outputs that produce a single file this must be a path to the file,
	// outputs that produce multiple files this will be the path to the
	// directory
	Path string
}

Output defines an output for a given CSI trust bundle mount

func (*Output) DeepCopy

func (in *Output) DeepCopy() *Output

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.

func (*Output) DeepCopyInto

func (in *Output) DeepCopyInto(out *Output)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OutputFormat

type OutputFormat string

OutputFormat defines the format to write the certificate bundle

Directories

Path Synopsis
+kubebuilder:object:generate=true +groupName=config.csi.trust-manager.io +k8s:conversion-gen=github.com/cert-manager/trust-manager-csi-driver/internal/api/metadata
+kubebuilder:object:generate=true +groupName=config.csi.trust-manager.io +k8s:conversion-gen=github.com/cert-manager/trust-manager-csi-driver/internal/api/metadata

Jump to

Keyboard shortcuts

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