Documentation ¶
Overview ¶
+groupName=bitnami.com
Index ¶
Constants ¶
const ( // SealedSecretName is the name used in SealedSecret TPR SealedSecretName = "sealed-secret." + GroupName // SealedSecretPlural is the collection plural used with SealedSecret API SealedSecretPlural = "sealedsecrets" // SealedSecretClusterWideAnnotation is the name for the annotation for // setting the secret to be availible cluster wide. SealedSecretClusterWideAnnotation = annoNs + "cluster-wide" )
const GroupName = "bitnami.com"
GroupName is the group name used in this package
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // SchemeBuilder adds this group to scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type SealedSecret ¶
type SealedSecret struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SealedSecretSpec `json:"spec"` }
SealedSecret is the K8s representation of a "sealed Secret" - a regular k8s Secret that has been sealed (encrypted) using the controller's key.
func NewSealedSecret ¶
func NewSealedSecret(codecs runtimeserializer.CodecFactory, pubKey *rsa.PublicKey, secret *v1.Secret) (*SealedSecret, error)
NewSealedSecret creates a new SealedSecret object wrapping the provided secret. This encrypts only the values of each secrets individually, so secrets can be updated one by one.
func NewSealedSecretV1 ¶ added in v0.7.0
func NewSealedSecretV1(codecs runtimeserializer.CodecFactory, pubKey *rsa.PublicKey, secret *v1.Secret) (*SealedSecret, error)
NewSealedSecretV1 creates a new SealedSecret object wrapping the provided secret. This encrypts all the secrets into a single encrypted blob and stores it in the `Data` attribute. Keeping this for backward compatibility.
func (*SealedSecret) DeepCopy ¶
func (in *SealedSecret) DeepCopy() *SealedSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SealedSecret.
func (*SealedSecret) DeepCopyInto ¶
func (in *SealedSecret) DeepCopyInto(out *SealedSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SealedSecret) DeepCopyObject ¶
func (in *SealedSecret) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SealedSecret) Unseal ¶
func (s *SealedSecret) Unseal(codecs runtimeserializer.CodecFactory, privKey *rsa.PrivateKey) (*v1.Secret, error)
Unseal decypts and returns the embedded v1.Secret.
type SealedSecretList ¶
type SealedSecretList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SealedSecret `json:"items"` }
SealedSecretList represents a list of SealedSecrets
func (*SealedSecretList) DeepCopy ¶
func (in *SealedSecretList) DeepCopy() *SealedSecretList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SealedSecretList.
func (*SealedSecretList) DeepCopyInto ¶
func (in *SealedSecretList) DeepCopyInto(out *SealedSecretList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SealedSecretList) DeepCopyObject ¶
func (in *SealedSecretList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SealedSecretSpec ¶
type SealedSecretSpec struct { // Data is deprecated and will be removed eventually. Use per-value EncryptedData instead. Data []byte `json:"data,omitempty"` EncryptedData map[string][]byte `json:"encryptedData"` }
SealedSecretSpec is the specification of a SealedSecret
func (*SealedSecretSpec) DeepCopy ¶
func (in *SealedSecretSpec) DeepCopy() *SealedSecretSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SealedSecretSpec.
func (*SealedSecretSpec) DeepCopyInto ¶
func (in *SealedSecretSpec) DeepCopyInto(out *SealedSecretSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.