v1alpha1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExtendedSecretResourceKind is the kind name of ExtendedSecret
	ExtendedSecretResourceKind = "ExtendedSecret"
	// ExtendedSecretResourcePlural is the plural name of ExtendedSecret
	ExtendedSecretResourcePlural = "extendedsecrets"
)
View Source
const (
	// GeneratedSecretKind is the kind of generated secret
	GeneratedSecretKind = "generated"
)

Variables

View Source
var (

	// AddToScheme is used for schema registrations in the controller package
	// and also in the generated kube code
	AddToScheme = schemeBuilder.AddToScheme

	// ExtendedSecretResourceShortNames is the short names of ExtendedSecret
	ExtendedSecretResourceShortNames = []string{"esec", "esecs"}

	// ExtendedSecretResourceName is the resource name of ExtendedSecret
	ExtendedSecretResourceName = fmt.Sprintf("%s.%s", ExtendedSecretResourcePlural, apis.GroupName)

	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: apis.GroupName, Version: "v1alpha1"}
)
View Source
var (
	// LabelKind is the label key for secret kind
	LabelKind = fmt.Sprintf("%s/secret-kind", apis.GroupName)
	// AnnotationCertSecretName is the annotation key for certificate secret name
	AnnotationCertSecretName = fmt.Sprintf("%s/cert-secret-name", apis.GroupName)
	// AnnotationESecNamespace is the annotation key for ex-secret-namespace
	AnnotationESecNamespace = fmt.Sprintf("%s/ex-secret-namespace", apis.GroupName)
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CertificateRequest

type CertificateRequest struct {
	CommonName       string             `json:"commonName"`
	AlternativeNames []string           `json:"alternativeNames"`
	IsCA             bool               `json:"isCA"`
	CARef            SecretReference    `json:"CARef"`
	CAKeyRef         SecretReference    `json:"CAKeyRef"`
	SignerType       SignerType         `json:"signerType,omitempty"`
	Usages           []certv1.KeyUsage  `json:"usages,omitempty"`
	ServiceRef       []ServiceReference `json:"serviceRef,omitempty"`
}

CertificateRequest specifies the details for the certificate generation

func (*CertificateRequest) DeepCopy

func (in *CertificateRequest) DeepCopy() *CertificateRequest

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

func (*CertificateRequest) DeepCopyInto

func (in *CertificateRequest) DeepCopyInto(out *CertificateRequest)

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

type ExtendedSecret

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

	Spec   ExtendedSecretSpec   `json:"spec,omitempty"`
	Status ExtendedSecretStatus `json:"status,omitempty"`
}

ExtendedSecret is the Schema for the ExtendedSecrets API +k8s:openapi-gen=true

func (*ExtendedSecret) DeepCopy

func (in *ExtendedSecret) DeepCopy() *ExtendedSecret

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

func (*ExtendedSecret) DeepCopyInto

func (in *ExtendedSecret) DeepCopyInto(out *ExtendedSecret)

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

func (*ExtendedSecret) DeepCopyObject

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

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

type ExtendedSecretList

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

ExtendedSecretList contains a list of ExtendedSecret

func (*ExtendedSecretList) DeepCopy

func (in *ExtendedSecretList) DeepCopy() *ExtendedSecretList

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

func (*ExtendedSecretList) DeepCopyInto

func (in *ExtendedSecretList) DeepCopyInto(out *ExtendedSecretList)

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

func (*ExtendedSecretList) DeepCopyObject

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

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

type ExtendedSecretSpec

type ExtendedSecretSpec struct {
	Type       SecretType `json:"type"`
	Request    Request    `json:"request"`
	SecretName string     `json:"secretName"`
}

ExtendedSecretSpec defines the desired state of ExtendedSecret

func (*ExtendedSecretSpec) DeepCopy

func (in *ExtendedSecretSpec) DeepCopy() *ExtendedSecretSpec

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

func (*ExtendedSecretSpec) DeepCopyInto

func (in *ExtendedSecretSpec) DeepCopyInto(out *ExtendedSecretSpec)

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

type ExtendedSecretStatus

type ExtendedSecretStatus struct {
	LastReconcile *metav1.Time `json:"lastReconcile"`
	// Indicates if the secret has already been generated
	Generated bool `json:"generated"`
}

ExtendedSecretStatus defines the observed state of ExtendedSecret

func (*ExtendedSecretStatus) DeepCopy

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

func (*ExtendedSecretStatus) DeepCopyInto

func (in *ExtendedSecretStatus) DeepCopyInto(out *ExtendedSecretStatus)

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

type Request

type Request struct {
	CertificateRequest CertificateRequest `json:"certificate"`
}

Request specifies details for the secret generation

func (*Request) DeepCopy

func (in *Request) DeepCopy() *Request

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

func (*Request) DeepCopyInto

func (in *Request) DeepCopyInto(out *Request)

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

type SecretReference

type SecretReference struct {
	Name string
	Key  string
}

SecretReference specifies a reference to another secret

func (*SecretReference) DeepCopy

func (in *SecretReference) DeepCopy() *SecretReference

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

func (*SecretReference) DeepCopyInto

func (in *SecretReference) DeepCopyInto(out *SecretReference)

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

type SecretType added in v0.4.0

type SecretType = string

SecretType defines the type of the generated secret

const (
	Password    SecretType = "password"
	Certificate SecretType = "certificate"
	SSHKey      SecretType = "ssh"
	RSAKey      SecretType = "rsa"
)

Valid values for secret types

type ServiceReference added in v0.4.0

type ServiceReference struct {
	Name string
}

ServiceReference specifies a reference to a service

func (*ServiceReference) DeepCopy added in v0.4.0

func (in *ServiceReference) DeepCopy() *ServiceReference

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

func (*ServiceReference) DeepCopyInto added in v0.4.0

func (in *ServiceReference) DeepCopyInto(out *ServiceReference)

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

type SignerType added in v0.4.0

type SignerType = string

SignerType defines the type of the certificate signer

const (
	// LocalSigner defines the local as certificate signer
	LocalSigner SignerType = "local"
	// ClusterSigner defines the cluster as certificate signer
	ClusterSigner SignerType = "cluster"
)

Valid values for signer types

Jump to

Keyboard shortcuts

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