Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=cert.dana.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cert.dana.io", Version: "v1alpha1"} // 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 Certificate ¶
type Certificate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CertificateSpec `json:"spec,omitempty"` Status CertificateStatus `json:"status,omitempty"` }
Certificate is the Schema for the certificates API.
func (*Certificate) DeepCopy ¶
func (in *Certificate) DeepCopy() *Certificate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certificate.
func (*Certificate) DeepCopyInto ¶
func (in *Certificate) DeepCopyInto(out *Certificate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Certificate) DeepCopyObject ¶
func (in *Certificate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateConfig ¶
type CertificateConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CertificateConfigSpec `json:"spec,omitempty"` Status CertificateConfigStatus `json:"status,omitempty"` }
CertificateConfig is the Schema for the certificateconfigs API.
func (*CertificateConfig) DeepCopy ¶
func (in *CertificateConfig) DeepCopy() *CertificateConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateConfig.
func (*CertificateConfig) DeepCopyInto ¶
func (in *CertificateConfig) DeepCopyInto(out *CertificateConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CertificateConfig) DeepCopyObject ¶
func (in *CertificateConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateConfigList ¶
type CertificateConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CertificateConfig `json:"items"` }
CertificateConfigList contains a list of CertificateConfig.
func (*CertificateConfigList) DeepCopy ¶
func (in *CertificateConfigList) DeepCopy() *CertificateConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateConfigList.
func (*CertificateConfigList) DeepCopyInto ¶
func (in *CertificateConfigList) DeepCopyInto(out *CertificateConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CertificateConfigList) DeepCopyObject ¶
func (in *CertificateConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateConfigSpec ¶
type CertificateConfigSpec struct { // SecretRef is a reference to the Kubernetes Secret containing credentials for authenticating with the cert API. SecretRef SecretRef `json:"secretRef"` // DaysBeforeRenewal represents the number of days to renew the certificate before expiration. DaysBeforeRenewal int `json:"daysBeforeRenewal"` // WaitTimeout specifies the maximum time duration for waiting for response from cert. WaitTimeout *metav1.Duration `json:"waitTimeout,omitempty"` // ForceExpirationUpdate indicates whether to force an update of the Certificate details even when it's valid. ForceExpirationUpdate bool `json:"forceExpirationUpdate,omitempty"` }
CertificateConfigSpec defines the desired state of CertificateConfig.
func (*CertificateConfigSpec) DeepCopy ¶
func (in *CertificateConfigSpec) DeepCopy() *CertificateConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateConfigSpec.
func (*CertificateConfigSpec) DeepCopyInto ¶
func (in *CertificateConfigSpec) DeepCopyInto(out *CertificateConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateConfigStatus ¶
type CertificateConfigStatus struct { }
CertificateConfigStatus defines the observed state of CertificateConfig.
func (*CertificateConfigStatus) DeepCopy ¶
func (in *CertificateConfigStatus) DeepCopy() *CertificateConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateConfigStatus.
func (*CertificateConfigStatus) DeepCopyInto ¶
func (in *CertificateConfigStatus) DeepCopyInto(out *CertificateConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateData ¶
type CertificateData struct { // Subject represents the subject of the certificate. Subject Subject `json:"subject,omitempty"` // San represents Subject Alternative Names of the certificate. San San `json:"san,omitempty"` // Template is an optional field specifying the template for the certificate. Template string `json:"template,omitempty"` // Form is an optional field specifying the format of the certificate. // +kubebuilder:default:="pfx" // +kubebuilder:validation:Enum=pfx; Form string `json:"form,omitempty"` }
CertificateData contains data for generating a Certificate.
func (*CertificateData) DeepCopy ¶
func (in *CertificateData) DeepCopy() *CertificateData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateData.
func (*CertificateData) DeepCopyInto ¶
func (in *CertificateData) DeepCopyInto(out *CertificateData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateList ¶
type CertificateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Certificate `json:"items"` }
CertificateList contains a list of Certificate.
func (*CertificateList) DeepCopy ¶
func (in *CertificateList) DeepCopy() *CertificateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateList.
func (*CertificateList) DeepCopyInto ¶
func (in *CertificateList) DeepCopyInto(out *CertificateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CertificateList) DeepCopyObject ¶
func (in *CertificateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateSpec ¶
type CertificateSpec struct { // CertificateData contains the data for generating the certificate. CertificateData CertificateData `json:"certificateData,omitempty"` // SecretName is the name of the Kubernetes Secret where the extracted certificate is stored. SecretName string `json:"secretName,omitempty"` // ConfigRef is the referance to the CertificateConfig associated with this Certificate. ConfigRef ConfigReference `json:"configRef,omitempty"` }
CertificateSpec defines the desired state of a Certificate.
func (*CertificateSpec) DeepCopy ¶
func (in *CertificateSpec) DeepCopy() *CertificateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSpec.
func (*CertificateSpec) DeepCopyInto ¶
func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateStatus ¶
type CertificateStatus struct { // Conditions represent the current conditions of the Certificate. Conditions []metav1.Condition `json:"conditions,omitempty"` // ValidFrom represents the time when the certificate becomes valid. ValidFrom metav1.Time `json:"validFrom,omitempty"` // ValidTo represents the time when the certificate expires. ValidTo metav1.Time `json:"validTo,omitempty"` // Issuer is the entity that issued the certificate. Issuer string `json:"issuer,omitempty"` // Guid is a unique identifier for the certificate. Guid string `json:"guid,omitempty"` // SignatureHashAlgorithm is the algorithm used to sign the certificate. SignatureHashAlgorithm string `json:"signatureHashAlgorithm,omitempty"` // SecretName is the name of the Kubernetes Secret where the extracted certificate is stored. SecretName string `json:"secretName,omitempty"` }
CertificateStatus defines the observed state of a Certificate.
func (*CertificateStatus) DeepCopy ¶
func (in *CertificateStatus) DeepCopy() *CertificateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateStatus.
func (*CertificateStatus) DeepCopyInto ¶
func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigReference ¶
type ConfigReference struct { // Name of the CertificateConfig. Name string `json:"name"` }
A ConfigReference is a reference to a CertificateConfig resource that will be used to configure the certificate.
func (*ConfigReference) DeepCopy ¶
func (in *ConfigReference) DeepCopy() *ConfigReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigReference.
func (*ConfigReference) DeepCopyInto ¶
func (in *ConfigReference) DeepCopyInto(out *ConfigReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type San ¶
type San struct { // DNS represents the DNS names included in the certificate. DNS []string `json:"dns,omitempty"` // IPs represents the IP addresses included in the certificate. IPs []string `json:"ips,omitempty"` }
San represents Subject Alternative Names of a Certificate.
func (*San) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new San.
func (*San) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct { // Name is the name of the Secret. Name string `json:"name"` // Namespace is the namespace where the Secret is located. Namespace string `json:"namespace"` }
SecretRef is a reference to the Kubernetes Secret containing credentials for authenticating with the cert API.
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subject ¶
type Subject struct { // CommonName is the common name of the subject. CommonName string `json:"commonName,omitempty"` Country string `json:"country,omitempty"` State string `json:"state,omitempty"` Locality string `json:"locality,omitempty"` Organization string `json:"organization,omitempty"` OrganizationalUnit string `json:"organizationUnit,omitempty"` }
Subject represents the subject of a Certificate.
func (*Subject) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
func (*Subject) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.