v1beta1

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the spiffeid v1beta1 API group +kubebuilder:object:generate=true +groupName=spiffeid.spiffe.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "spiffeid.spiffe.io", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func AddSpiffeIDWebhook

func AddSpiffeIDWebhook(w SpiffeIDWebhook) error

Types

type Selector

type Selector struct {
	// Cluster is the k8s_psat cluster
	Cluster string `json:"cluster,omitempty"`
	// AgentNodeUid is the UID Of the node
	AgentNodeUid types.UID `json:"agent_node_uid,omitempty"`
	// Pod label name/value to match for this spiffe ID
	PodLabel map[string]string `json:"podLabel,omitempty"`
	// Pod name to match for this spiffe ID
	PodName string `json:"podName,omitempty"`
	// Pod UID to match for this spiffe ID
	PodUid types.UID `json:"podUid,omitempty"`
	// Namespace to match for this spiffe ID
	Namespace string `json:"namespace,omitempty"`
	// ServiceAccount to match for this spiffe ID
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// ContainerImage to match for this spiffe ID
	ContainerImage string `json:"containerImage,omitempty"`
	// ContainerName to match for this spiffe ID
	ContainerName string `json:"containerName,omitempty"`
	// NodeName to match for this spiffe ID
	NodeName string `json:"nodeName,omitempty"`
	// Arbitrary k8s selectors
	Arbitrary []string `json:"arbitrary,omitempty"`
}

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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

type SpiffeID

type SpiffeID struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SpiffeIDSpec   `json:"spec,omitempty"`
	Status SpiffeIDStatus `json:"status,omitempty"`
}

SpiffeID is the Schema for the SpiffeIds API

func (*SpiffeID) DeepCopy

func (in *SpiffeID) DeepCopy() *SpiffeID

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

func (*SpiffeID) DeepCopyInto

func (in *SpiffeID) DeepCopyInto(out *SpiffeID)

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

func (*SpiffeID) DeepCopyObject

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

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

func (*SpiffeID) TypesSelector added in v0.12.0

func (s *SpiffeID) TypesSelector() []*types.Selector

TypesSelector converts the selectors from the CRD to the types.Selector format needed to create the entry on the SPIRE server

type SpiffeIDList

type SpiffeIDList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SpiffeID `json:"items"`
}

SpiffeIDList contains a list of SpiffeID

func (*SpiffeIDList) DeepCopy

func (in *SpiffeIDList) DeepCopy() *SpiffeIDList

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

func (*SpiffeIDList) DeepCopyInto

func (in *SpiffeIDList) DeepCopyInto(out *SpiffeIDList)

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

func (*SpiffeIDList) DeepCopyObject

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

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

type SpiffeIDSpec

type SpiffeIDSpec struct {
	ParentId      string   `json:"parentId"`
	SpiffeId      string   `json:"spiffeId"`
	Selector      Selector `json:"selector"`
	Downstream    bool     `json:"downstream,omitempty"`
	DnsNames      []string `json:"dnsNames,omitempty"`
	FederatesWith []string `json:"federatesWith,omitempty"`
}

SpiffeIDSpec defines the desired state of SpiffeID

func (*SpiffeIDSpec) DeepCopy

func (in *SpiffeIDSpec) DeepCopy() *SpiffeIDSpec

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

func (*SpiffeIDSpec) DeepCopyInto

func (in *SpiffeIDSpec) DeepCopyInto(out *SpiffeIDSpec)

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

type SpiffeIDStatus

type SpiffeIDStatus struct {
	EntryId *string `json:"entryId,omitempty"`
}

SpiffeIDStatus defines the observed state of SpiffeID

func (*SpiffeIDStatus) DeepCopy

func (in *SpiffeIDStatus) DeepCopy() *SpiffeIDStatus

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

func (*SpiffeIDStatus) DeepCopyInto

func (in *SpiffeIDStatus) DeepCopyInto(out *SpiffeIDStatus)

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

type SpiffeIDWebhook added in v1.1.1

type SpiffeIDWebhook struct {
	E           entryv1.EntryClient
	Log         logrus.FieldLogger
	Mgr         ctrl.Manager
	Namespace   string
	TrustDomain string
}

func (SpiffeIDWebhook) ValidateCreate added in v1.1.1

func (w SpiffeIDWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (SpiffeIDWebhook) ValidateDelete added in v1.1.1

func (w SpiffeIDWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (SpiffeIDWebhook) ValidateUpdate added in v1.1.1

func (w SpiffeIDWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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