v1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the OriginIssuer API

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cert-manager.k8s.cloudflare.com", Version: "v1"}

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

This section is empty.

Types

type AuthType added in v0.13.0

type AuthType int
const (
	AuthTypeUnknown    AuthType = 0
	AuthTypeServiceKey AuthType = 1
	AuthTypeAPIToken   AuthType = 2
)

type ClusterOriginIssuer added in v0.9.0

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

	// Spec is the desired state of the ClusterOriginIssuer resource.
	Spec OriginIssuerSpec `json:"spec,omitempty"`

	// Status of the ClusterOriginIssuer. This is set and managed automatically.
	// +optional
	Status issuerv1alpha1.IssuerStatus `json:"status,omitempty"`
}

A ClusterOriginIssuer represents the Cloudflare Origin CA as an external cert-manager issuer. It is scoped to a single namespace, so it can be used only by resources in the same namespace.

func (*ClusterOriginIssuer) DeepCopy added in v0.9.0

func (in *ClusterOriginIssuer) DeepCopy() *ClusterOriginIssuer

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

func (*ClusterOriginIssuer) DeepCopyInto added in v0.9.0

func (in *ClusterOriginIssuer) DeepCopyInto(out *ClusterOriginIssuer)

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

func (*ClusterOriginIssuer) DeepCopyObject added in v0.9.0

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

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

func (*ClusterOriginIssuer) GetAuth added in v0.13.0

func (*ClusterOriginIssuer) GetAuthSecretNamespace added in v0.13.0

func (iss *ClusterOriginIssuer) GetAuthSecretNamespace(clusterResourceNamespace string) string

func (*ClusterOriginIssuer) GetConditions added in v0.13.0

func (iss *ClusterOriginIssuer) GetConditions() []metav1.Condition

func (*ClusterOriginIssuer) GetIssuerTypeIdentifier added in v0.13.0

func (iss *ClusterOriginIssuer) GetIssuerTypeIdentifier() string

func (*ClusterOriginIssuer) GetRequestType added in v0.13.0

func (iss *ClusterOriginIssuer) GetRequestType() RequestType

type ClusterOriginIssuerList added in v0.9.0

type ClusterOriginIssuerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata.omitempty"`

	Items []ClusterOriginIssuer `json:"items"`
}

ClusterOriginIssuerList is a list of OriginIssuers.

func (*ClusterOriginIssuerList) DeepCopy added in v0.9.0

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

func (*ClusterOriginIssuerList) DeepCopyInto added in v0.9.0

func (in *ClusterOriginIssuerList) DeepCopyInto(out *ClusterOriginIssuerList)

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

func (*ClusterOriginIssuerList) DeepCopyObject added in v0.9.0

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

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

type OriginIssuer

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

	// Desired state of the OriginIssuer resource
	Spec OriginIssuerSpec `json:"spec,omitempty"`

	// Status of the OriginIssuer. This is set and managed automatically.
	// +optional
	Status issuerv1alpha1.IssuerStatus `json:"status,omitempty"`
}

An OriginIssuer represents the Cloudflare Origin CA as an external cert-manager issuer. It is scoped to a single namespace, so it can be used only by resources in the same namespace.

func (*OriginIssuer) DeepCopy

func (in *OriginIssuer) DeepCopy() *OriginIssuer

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

func (*OriginIssuer) DeepCopyInto

func (in *OriginIssuer) DeepCopyInto(out *OriginIssuer)

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

func (*OriginIssuer) DeepCopyObject

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

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

func (*OriginIssuer) GetAuth added in v0.13.0

func (*OriginIssuer) GetAuthSecretNamespace added in v0.13.0

func (iss *OriginIssuer) GetAuthSecretNamespace(_ string) string

func (*OriginIssuer) GetConditions added in v0.13.0

func (iss *OriginIssuer) GetConditions() []metav1.Condition

func (*OriginIssuer) GetIssuerTypeIdentifier added in v0.13.0

func (iss *OriginIssuer) GetIssuerTypeIdentifier() string

func (*OriginIssuer) GetRequestType added in v0.13.0

func (iss *OriginIssuer) GetRequestType() RequestType

type OriginIssuerAuthentication

type OriginIssuerAuthentication struct {
	// ServiceKeyRef authenticates with an API Service Key (the "Origin CA Key").
	// +optional
	ServiceKeyRef *SecretKeySelector `json:"serviceKeyRef,omitempty"`

	// TokenRef authenticates with an API Token.
	// +optional
	TokenRef *SecretKeySelector `json:"tokenRef,omitempty"`
}

OriginIssuerAuthentication defines how to authenticate with the Cloudflare API. Only one of `serviceKeyRef` may be specified.

+kubebuilder:validation:ExactlyOneOf=serviceKeyRef;tokenRef

func (*OriginIssuerAuthentication) DeepCopy

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

func (*OriginIssuerAuthentication) DeepCopyInto

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

func (OriginIssuerAuthentication) GetSecretKeySelector added in v0.13.0

func (a OriginIssuerAuthentication) GetSecretKeySelector() *SecretKeySelector

func (OriginIssuerAuthentication) GetType added in v0.13.0

type OriginIssuerList

type OriginIssuerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata.omitempty"`

	Items []OriginIssuer `json:"items"`
}

OriginIssuerList is a list of OriginIssuers.

func (*OriginIssuerList) DeepCopy

func (in *OriginIssuerList) DeepCopy() *OriginIssuerList

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

func (*OriginIssuerList) DeepCopyInto

func (in *OriginIssuerList) DeepCopyInto(out *OriginIssuerList)

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

func (*OriginIssuerList) DeepCopyObject

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

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

type OriginIssuerSpec

type OriginIssuerSpec struct {
	// RequestType is the signature algorithm Cloudflare should use to sign the certificate.
	RequestType RequestType `json:"requestType"`

	// Auth configures how to authenticate with the Cloudflare API.
	Auth OriginIssuerAuthentication `json:"auth"`
}

OriginIssuerSpec is the specification of an OriginIssuer. This includes any configuration required for the issuer.

func (*OriginIssuerSpec) DeepCopy

func (in *OriginIssuerSpec) DeepCopy() *OriginIssuerSpec

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

func (*OriginIssuerSpec) DeepCopyInto

func (in *OriginIssuerSpec) DeepCopyInto(out *OriginIssuerSpec)

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

type RequestType

type RequestType string

RequestType represents the signature algorithm used to sign certificates.

const (
	// RequestTypeOriginRSA represents an RSA256 signature.
	RequestTypeOriginRSA RequestType = "OriginRSA"

	// RequestTypeOriginECC represents an ECDSA signature.
	RequestTypeOriginECC RequestType = "OriginECC"
)

type SecretKeySelector

type SecretKeySelector struct {
	// Name of the secret in the issuer's namespace to select. If a cluster-scoped
	// issuer, the secret is selected from the "cluster resource namespace" configured
	// on the controller.
	Name string `json:"name"`
	// Key of the secret to select from. Must be a valid secret key.
	Key string `json:"key"`
}

SecretKeySelector contains a reference to a secret.

func (*SecretKeySelector) DeepCopy

func (in *SecretKeySelector) DeepCopy() *SecretKeySelector

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

func (*SecretKeySelector) DeepCopyInto

func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)

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

Jump to

Keyboard shortcuts

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