Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=secretgen.carvel.dev
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type InputResource
- type InputResourceRef
- type JSONPathTemplate
- type SecretExport
- type SecretExportList
- type SecretExportSpec
- type SecretExportStatus
- type SecretImport
- type SecretImportList
- type SecretImportSpec
- type SecretImportStatus
- type SecretTemplate
- type SecretTemplateList
- type SecretTemplateMetadata
- type SecretTemplateSpec
- type SecretTemplateStatus
- type SelectorMatchField
- type SelectorOperator
Constants ¶
const ( SelectorOperatorIn SelectorOperator = "In" SelectorOperatorNotIn = "NotIn" SelectorOperatorExists = "Exists" SelectorOperatorDoesNotExist = "DoesNotExist" )
SelectorOperator values
const (
AllNamespaces = "*"
)
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "secretgen.carvel.dev", Version: "v1alpha1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type InputResource ¶ added in v0.9.0
type InputResource struct { // The name of InputResource. This is used as the identifying name in templating to refer to this Input Resource. Name string `json:"name"` // The reference to the Input Resource Ref InputResourceRef `json:"ref"` }
InputResource is references a single Kubernetes resource along with a identifying name
func (*InputResource) DeepCopy ¶ added in v0.9.0
func (in *InputResource) DeepCopy() *InputResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InputResource.
func (*InputResource) DeepCopyInto ¶ added in v0.9.0
func (in *InputResource) DeepCopyInto(out *InputResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InputResourceRef ¶ added in v0.9.0
type InputResourceRef struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` // The name of the input resource. This field can itself contain JSONPATH syntax to load the name dynamically // from other input resources. For example this field could be set to a static value of "my-secret" or a dynamic valid of "$(.anotherinputresource.spec.name)". Name string `json:"name"` }
InputResourceRef refers to a single Kubernetes resource
func (*InputResourceRef) DeepCopy ¶ added in v0.9.0
func (in *InputResourceRef) DeepCopy() *InputResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InputResourceRef.
func (*InputResourceRef) DeepCopyInto ¶ added in v0.9.0
func (in *InputResourceRef) DeepCopyInto(out *InputResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JSONPathTemplate ¶ added in v0.9.0
type JSONPathTemplate struct { // StringData key and value. Where key is the Secret Key and the value can contain a JSONPATH syntax surrounded by $( ). // All InputResources are available via their identifying name. // For example: // key1: static-text // key2: $(.input1.spec.value1) // key3: combined-$(.input2.status.value2)-$(.input2.status.value3) // +optional StringData map[string]string `json:"stringData,omitempty"` // Data key and value. Where key is the Secret Key and the value is a jsonpath surrounded by $( ). The fetched data MUST be base64 encoded. // All InputResources are available via their identifying name. // For example: // key1: $(.secretinput1.data.value1) // key2: $(.secretinput2.data.value2) // +optional Data map[string]string `json:"data,omitempty"` // Type is the type of Kubernetes Secret // +optional Type corev1.SecretType `json:"type,omitempty"` // Metadata contains metadata for the Secret // +optional Metadata SecretTemplateMetadata `json:"metadata,omitempty"` }
JSONPathTemplate contains templating information used to construct a new secret
func (*JSONPathTemplate) DeepCopy ¶ added in v0.9.0
func (in *JSONPathTemplate) DeepCopy() *JSONPathTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JSONPathTemplate.
func (*JSONPathTemplate) DeepCopyInto ¶ added in v0.9.0
func (in *JSONPathTemplate) DeepCopyInto(out *JSONPathTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretExport ¶
type SecretExport struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecretExportSpec `json:"spec"` // +optional Status SecretExportStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*SecretExport) DeepCopy ¶
func (in *SecretExport) DeepCopy() *SecretExport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretExport.
func (*SecretExport) DeepCopyInto ¶
func (in *SecretExport) DeepCopyInto(out *SecretExport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretExport) DeepCopyObject ¶
func (in *SecretExport) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (SecretExport) StaticToNamespaces ¶
func (e SecretExport) StaticToNamespaces() []string
func (SecretExport) Validate ¶
func (e SecretExport) Validate() error
type SecretExportList ¶
type SecretExportList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []SecretExport `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SecretExportList) DeepCopy ¶
func (in *SecretExportList) DeepCopy() *SecretExportList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretExportList.
func (*SecretExportList) DeepCopyInto ¶
func (in *SecretExportList) DeepCopyInto(out *SecretExportList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretExportList) DeepCopyObject ¶
func (in *SecretExportList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretExportSpec ¶
type SecretExportSpec struct { // +optional ToNamespace string `json:"toNamespace,omitempty"` // +optional ToNamespaces []string `json:"toNamespaces,omitempty"` // +optional ToNamespacesSelector []SelectorMatchField `json:"dangerousToNamespacesSelector,omitempty"` }
func (*SecretExportSpec) DeepCopy ¶
func (in *SecretExportSpec) DeepCopy() *SecretExportSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretExportSpec.
func (*SecretExportSpec) DeepCopyInto ¶
func (in *SecretExportSpec) DeepCopyInto(out *SecretExportSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretExportStatus ¶
type SecretExportStatus struct { sgv1alpha1.GenericStatus `json:",inline"` // +optional ObservedSecretResourceVersion string `json:"observedSecretResourceVersion,omitempty"` }
func (*SecretExportStatus) DeepCopy ¶
func (in *SecretExportStatus) DeepCopy() *SecretExportStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretExportStatus.
func (*SecretExportStatus) DeepCopyInto ¶
func (in *SecretExportStatus) DeepCopyInto(out *SecretExportStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretImport ¶
type SecretImport struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecretImportSpec `json:"spec"` // +optional Status SecretImportStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*SecretImport) DeepCopy ¶
func (in *SecretImport) DeepCopy() *SecretImport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretImport.
func (*SecretImport) DeepCopyInto ¶
func (in *SecretImport) DeepCopyInto(out *SecretImport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretImport) DeepCopyObject ¶
func (in *SecretImport) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (SecretImport) Validate ¶
func (r SecretImport) Validate() error
type SecretImportList ¶
type SecretImportList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []SecretImport `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SecretImportList) DeepCopy ¶
func (in *SecretImportList) DeepCopy() *SecretImportList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretImportList.
func (*SecretImportList) DeepCopyInto ¶
func (in *SecretImportList) DeepCopyInto(out *SecretImportList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretImportList) DeepCopyObject ¶
func (in *SecretImportList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretImportSpec ¶
type SecretImportSpec struct { // +optional FromNamespace string `json:"fromNamespace,omitempty"` }
func (*SecretImportSpec) DeepCopy ¶
func (in *SecretImportSpec) DeepCopy() *SecretImportSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretImportSpec.
func (*SecretImportSpec) DeepCopyInto ¶
func (in *SecretImportSpec) DeepCopyInto(out *SecretImportSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretImportStatus ¶
type SecretImportStatus struct {
sgv1alpha1.GenericStatus `json:",inline"`
}
func (*SecretImportStatus) DeepCopy ¶
func (in *SecretImportStatus) DeepCopy() *SecretImportStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretImportStatus.
func (*SecretImportStatus) DeepCopyInto ¶
func (in *SecretImportStatus) DeepCopyInto(out *SecretImportStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplate ¶ added in v0.9.0
type SecretTemplate struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecretTemplateSpec `json:"spec"` // +optional Status SecretTemplateStatus `json:"status"` }
SecretTemplate allows the construction of secrets using data that reside in other Kubernetes resources +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*SecretTemplate) DeepCopy ¶ added in v0.9.0
func (in *SecretTemplate) DeepCopy() *SecretTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplate.
func (*SecretTemplate) DeepCopyInto ¶ added in v0.9.0
func (in *SecretTemplate) DeepCopyInto(out *SecretTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretTemplate) DeepCopyObject ¶ added in v0.9.0
func (in *SecretTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretTemplateList ¶ added in v0.9.0
type SecretTemplateList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []SecretTemplate `json:"items"` }
SecretTemplateList is a list of SecretTemplates +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SecretTemplateList) DeepCopy ¶ added in v0.9.0
func (in *SecretTemplateList) DeepCopy() *SecretTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateList.
func (*SecretTemplateList) DeepCopyInto ¶ added in v0.9.0
func (in *SecretTemplateList) DeepCopyInto(out *SecretTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretTemplateList) DeepCopyObject ¶ added in v0.9.0
func (in *SecretTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretTemplateMetadata ¶ added in v0.9.0
type SecretTemplateMetadata struct { // Annotations to be placed on the generated secret // +optional Annotations map[string]string `json:"annotations,omitempty"` // Labels to be placed on the generated secret // +optional Labels map[string]string `json:"labels,omitempty"` }
SecretTemplateMetadata allows the generated secret to contain metadata
func (*SecretTemplateMetadata) DeepCopy ¶ added in v0.9.0
func (in *SecretTemplateMetadata) DeepCopy() *SecretTemplateMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateMetadata.
func (*SecretTemplateMetadata) DeepCopyInto ¶ added in v0.9.0
func (in *SecretTemplateMetadata) DeepCopyInto(out *SecretTemplateMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplateSpec ¶ added in v0.9.0
type SecretTemplateSpec struct { // A list of input resources that are used to construct a new secret. Input Resources can refer to ANY Kubernetes API. // If loading more than Secrets types ensure that `.spec.ServiceAccountName` is set to an appropriate value. // Input resources are read in the order they are defined. An Input resource's name can be evaluated dynamically from data in a previously evaluated input resource. InputResources []InputResource `json:"inputResources"` // A JSONPath based template that can be used to create Secrets. // +optional JSONPathTemplate *JSONPathTemplate `json:"template,omitempty"` // The Service Account used to read InputResources. If not specified, only Secrets can be read as InputResources. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` }
SecretTemplateSpec contains spec information
func (*SecretTemplateSpec) DeepCopy ¶ added in v0.9.0
func (in *SecretTemplateSpec) DeepCopy() *SecretTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateSpec.
func (*SecretTemplateSpec) DeepCopyInto ¶ added in v0.9.0
func (in *SecretTemplateSpec) DeepCopyInto(out *SecretTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplateStatus ¶ added in v0.9.0
type SecretTemplateStatus struct { // +optional Secret corev1.LocalObjectReference `json:"secret,omitempty"` sgv1alpha1.GenericStatus `json:",inline"` // +optional ObservedSecretResourceVersion string `json:"observedSecretResourceVersion,omitempty"` }
SecretTemplateStatus contains status information
func (*SecretTemplateStatus) DeepCopy ¶ added in v0.9.0
func (in *SecretTemplateStatus) DeepCopy() *SecretTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateStatus.
func (*SecretTemplateStatus) DeepCopyInto ¶ added in v0.9.0
func (in *SecretTemplateStatus) DeepCopyInto(out *SecretTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelectorMatchField ¶ added in v0.14.9
type SelectorMatchField struct { Key string `json:"key,omitempty"` Operator SelectorOperator `json:"operator,omitempty"` Values []string `json:"values,omitempty"` }
SelectorMatchField is a selector field to match against namespace definition
type SelectorOperator ¶ added in v0.14.9
type SelectorOperator string
SelectorOperator is a part of SelectorMatchField