Documentation ¶
Index ¶
- Variables
- type CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) APIVersion(v string) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DeepCopy() *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DeepCopyObject() runtime.Object
- func (d *CertificateSigningRequestDie) DieDefaultTypeMetadata() *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieDiff(opts ...cmp.Option) string
- func (d *CertificateSigningRequestDie) DieFeed(r certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieFeedJSON(j []byte) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieFeedYAML(y []byte) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieFeedYAMLFile(name string) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieImmutable(immutable bool) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *CertificateSigningRequestDie) DieRelease() certificatesv1.CertificateSigningRequest
- func (d *CertificateSigningRequestDie) DieReleaseJSON() []byte
- func (d *CertificateSigningRequestDie) DieReleasePtr() *certificatesv1.CertificateSigningRequest
- func (d *CertificateSigningRequestDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CertificateSigningRequestDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *CertificateSigningRequestDie) DieReleaseYAML() []byte
- func (d *CertificateSigningRequestDie) DieSeal() *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieSealFeed(r certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieSealRelease() certificatesv1.CertificateSigningRequest
- func (d *CertificateSigningRequestDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequest
- func (d *CertificateSigningRequestDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequest)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) DieWith(fns ...func(d *CertificateSigningRequestDie)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) GetObjectKind() schema.ObjectKind
- func (d *CertificateSigningRequestDie) Kind(v string) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) MarshalJSON() ([]byte, error)
- func (d *CertificateSigningRequestDie) Metadata(v apismetav1.ObjectMeta) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) Spec(v certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) SpecDie(fn func(d *CertificateSigningRequestSpecDie)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) Status(v certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) StatusDie(fn func(d *CertificateSigningRequestStatusDie)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) TypeMetadata(v apismetav1.TypeMeta) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CertificateSigningRequestDie
- func (d *CertificateSigningRequestDie) UnmarshalJSON(b []byte) error
- type CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) AddExtra(key string, value certificatesv1.ExtraValue) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DeepCopy() *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *CertificateSigningRequestSpecDie) DieFeed(r certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieFeedJSON(j []byte) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieFeedYAML(y []byte) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieFeedYAMLFile(name string) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieImmutable(immutable bool) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *CertificateSigningRequestSpecDie) DieRelease() certificatesv1.CertificateSigningRequestSpec
- func (d *CertificateSigningRequestSpecDie) DieReleaseJSON() []byte
- func (d *CertificateSigningRequestSpecDie) DieReleasePtr() *certificatesv1.CertificateSigningRequestSpec
- func (d *CertificateSigningRequestSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CertificateSigningRequestSpecDie) DieReleaseYAML() []byte
- func (d *CertificateSigningRequestSpecDie) DieSeal() *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieSealFeed(r certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieSealRelease() certificatesv1.CertificateSigningRequestSpec
- func (d *CertificateSigningRequestSpecDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequestSpec
- func (d *CertificateSigningRequestSpecDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequestSpec)) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) DieWith(fns ...func(d *CertificateSigningRequestSpecDie)) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) ExpirationSeconds(v *int32) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) Extra(v map[string]certificatesv1.ExtraValue) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) Groups(v ...string) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) Request(v []byte) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) SignerName(v string) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) UID(v string) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) Usages(v ...certificatesv1.KeyUsage) *CertificateSigningRequestSpecDie
- func (d *CertificateSigningRequestSpecDie) Username(v string) *CertificateSigningRequestSpecDie
- type CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) Certificate(v []byte) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) Conditions(v ...certificatesv1.CertificateSigningRequestCondition) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DeepCopy() *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *CertificateSigningRequestStatusDie) DieFeed(r certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieFeedJSON(j []byte) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieFeedYAML(y []byte) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieFeedYAMLFile(name string) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieImmutable(immutable bool) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *CertificateSigningRequestStatusDie) DieRelease() certificatesv1.CertificateSigningRequestStatus
- func (d *CertificateSigningRequestStatusDie) DieReleaseJSON() []byte
- func (d *CertificateSigningRequestStatusDie) DieReleasePtr() *certificatesv1.CertificateSigningRequestStatus
- func (d *CertificateSigningRequestStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *CertificateSigningRequestStatusDie) DieReleaseYAML() []byte
- func (d *CertificateSigningRequestStatusDie) DieSeal() *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieSealFeed(r certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieSealRelease() certificatesv1.CertificateSigningRequestStatus
- func (d *CertificateSigningRequestStatusDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequestStatus
- func (d *CertificateSigningRequestStatusDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequestStatus)) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestStatusDie
- func (d *CertificateSigningRequestStatusDie) DieWith(fns ...func(d *CertificateSigningRequestStatusDie)) *CertificateSigningRequestStatusDie
Constants ¶
This section is empty.
Variables ¶
var CertificateSigningRequestBlank = (&CertificateSigningRequestDie{}).DieFeed(certificatesv1.CertificateSigningRequest{})
var CertificateSigningRequestSpecBlank = (&CertificateSigningRequestSpecDie{}).DieFeed(certificatesv1.CertificateSigningRequestSpec{})
var CertificateSigningRequestStatusBlank = (&CertificateSigningRequestStatusDie{}).DieFeed(certificatesv1.CertificateSigningRequestStatus{})
Functions ¶
This section is empty.
Types ¶
type CertificateSigningRequestDie ¶
type CertificateSigningRequestDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*CertificateSigningRequestDie) APIVersion ¶
func (d *CertificateSigningRequestDie) APIVersion(v string) *CertificateSigningRequestDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*CertificateSigningRequestDie) DeepCopy ¶
func (d *CertificateSigningRequestDie) DeepCopy() *CertificateSigningRequestDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CertificateSigningRequestDie) DeepCopyObject ¶
func (d *CertificateSigningRequestDie) DeepCopyObject() runtime.Object
func (*CertificateSigningRequestDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieDefaultTypeMetadata() *CertificateSigningRequestDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "certificates.k8s.io/v1" and "CertificateSigningRequest" respectively.
func (*CertificateSigningRequestDie) DieDiff ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*CertificateSigningRequestDie) DieFeed ¶
func (d *CertificateSigningRequestDie) DieFeed(r certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
DieFeed returns a new die with the provided resource.
func (*CertificateSigningRequestDie) DieFeedJSON ¶
func (d *CertificateSigningRequestDie) DieFeedJSON(j []byte) *CertificateSigningRequestDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CertificateSigningRequestDie) DieFeedPtr ¶
func (d *CertificateSigningRequestDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestDie) DieFeedRawExtension ¶
func (d *CertificateSigningRequestDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestDie) DieFeedYAML ¶
func (d *CertificateSigningRequestDie) DieFeedYAML(y []byte) *CertificateSigningRequestDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CertificateSigningRequestDie) DieFeedYAMLFile ¶
func (d *CertificateSigningRequestDie) DieFeedYAMLFile(name string) *CertificateSigningRequestDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CertificateSigningRequestDie) DieImmutable ¶
func (d *CertificateSigningRequestDie) DieImmutable(immutable bool) *CertificateSigningRequestDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CertificateSigningRequestDie) DiePatch ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*CertificateSigningRequestDie) DieRelease ¶
func (d *CertificateSigningRequestDie) DieRelease() certificatesv1.CertificateSigningRequest
DieRelease returns the resource managed by the die.
func (*CertificateSigningRequestDie) DieReleaseJSON ¶
func (d *CertificateSigningRequestDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CertificateSigningRequestDie) DieReleasePtr ¶
func (d *CertificateSigningRequestDie) DieReleasePtr() *certificatesv1.CertificateSigningRequest
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CertificateSigningRequestDie) DieReleaseRawExtension ¶
func (d *CertificateSigningRequestDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestDie) DieReleaseUnstructured ¶
func (d *CertificateSigningRequestDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*CertificateSigningRequestDie) DieReleaseYAML ¶
func (d *CertificateSigningRequestDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CertificateSigningRequestDie) DieSeal ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieSeal() *CertificateSigningRequestDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CertificateSigningRequestDie) DieSealFeed ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieSealFeed(r certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CertificateSigningRequestDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequest) *CertificateSigningRequestDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestDie) DieSealRelease ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieSealRelease() certificatesv1.CertificateSigningRequest
DieSealRelease returns the sealed resource managed by the die.
func (*CertificateSigningRequestDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequest
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*CertificateSigningRequestDie) DieStamp ¶
func (d *CertificateSigningRequestDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequest)) *CertificateSigningRequestDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CertificateSigningRequestDie) DieStampAt ¶
func (d *CertificateSigningRequestDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CertificateSigningRequestDie) DieWith ¶
func (d *CertificateSigningRequestDie) DieWith(fns ...func(d *CertificateSigningRequestDie)) *CertificateSigningRequestDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CertificateSigningRequestDie) GetObjectKind ¶
func (d *CertificateSigningRequestDie) GetObjectKind() schema.ObjectKind
func (*CertificateSigningRequestDie) Kind ¶
func (d *CertificateSigningRequestDie) Kind(v string) *CertificateSigningRequestDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*CertificateSigningRequestDie) MarshalJSON ¶
func (d *CertificateSigningRequestDie) MarshalJSON() ([]byte, error)
func (*CertificateSigningRequestDie) Metadata ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) Metadata(v apismetav1.ObjectMeta) *CertificateSigningRequestDie
Metadata standard object's metadata.
func (*CertificateSigningRequestDie) MetadataDie ¶
func (d *CertificateSigningRequestDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *CertificateSigningRequestDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*CertificateSigningRequestDie) Spec ¶
func (d *CertificateSigningRequestDie) Spec(v certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestDie
spec contains the certificate request, and is immutable after creation.
Only the request, signerName, expirationSeconds, and usages fields can be set on creation.
Other fields are derived by Kubernetes and cannot be modified by users.
func (*CertificateSigningRequestDie) SpecDie ¶
func (d *CertificateSigningRequestDie) SpecDie(fn func(d *CertificateSigningRequestSpecDie)) *CertificateSigningRequestDie
SpecDie stamps the resource's spec field with a mutable die.
func (*CertificateSigningRequestDie) Status ¶
func (d *CertificateSigningRequestDie) Status(v certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestDie
status contains information about whether the request is approved or denied,
and the certificate issued by the signer, or the failure condition indicating signer failure.
func (*CertificateSigningRequestDie) StatusDie ¶
func (d *CertificateSigningRequestDie) StatusDie(fn func(d *CertificateSigningRequestStatusDie)) *CertificateSigningRequestDie
StatusDie stamps the resource's status field with a mutable die.
func (*CertificateSigningRequestDie) TypeMetadata ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) TypeMetadata(v apismetav1.TypeMeta) *CertificateSigningRequestDie
TypeMetadata standard object's type metadata.
func (*CertificateSigningRequestDie) TypeMetadataDie ¶ added in v0.13.0
func (d *CertificateSigningRequestDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *CertificateSigningRequestDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*CertificateSigningRequestDie) UnmarshalJSON ¶
func (d *CertificateSigningRequestDie) UnmarshalJSON(b []byte) error
type CertificateSigningRequestSpecDie ¶
type CertificateSigningRequestSpecDie struct {
// contains filtered or unexported fields
}
func (*CertificateSigningRequestSpecDie) AddExtra ¶
func (d *CertificateSigningRequestSpecDie) AddExtra(key string, value certificatesv1.ExtraValue) *CertificateSigningRequestSpecDie
func (*CertificateSigningRequestSpecDie) DeepCopy ¶
func (d *CertificateSigningRequestSpecDie) DeepCopy() *CertificateSigningRequestSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CertificateSigningRequestSpecDie) DieDiff ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*CertificateSigningRequestSpecDie) DieFeed ¶
func (d *CertificateSigningRequestSpecDie) DieFeed(r certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
DieFeed returns a new die with the provided resource.
func (*CertificateSigningRequestSpecDie) DieFeedJSON ¶
func (d *CertificateSigningRequestSpecDie) DieFeedJSON(j []byte) *CertificateSigningRequestSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CertificateSigningRequestSpecDie) DieFeedPtr ¶
func (d *CertificateSigningRequestSpecDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestSpecDie) DieFeedRawExtension ¶
func (d *CertificateSigningRequestSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestSpecDie) DieFeedYAML ¶
func (d *CertificateSigningRequestSpecDie) DieFeedYAML(y []byte) *CertificateSigningRequestSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CertificateSigningRequestSpecDie) DieFeedYAMLFile ¶
func (d *CertificateSigningRequestSpecDie) DieFeedYAMLFile(name string) *CertificateSigningRequestSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CertificateSigningRequestSpecDie) DieImmutable ¶
func (d *CertificateSigningRequestSpecDie) DieImmutable(immutable bool) *CertificateSigningRequestSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CertificateSigningRequestSpecDie) DiePatch ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*CertificateSigningRequestSpecDie) DieRelease ¶
func (d *CertificateSigningRequestSpecDie) DieRelease() certificatesv1.CertificateSigningRequestSpec
DieRelease returns the resource managed by the die.
func (*CertificateSigningRequestSpecDie) DieReleaseJSON ¶
func (d *CertificateSigningRequestSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CertificateSigningRequestSpecDie) DieReleasePtr ¶
func (d *CertificateSigningRequestSpecDie) DieReleasePtr() *certificatesv1.CertificateSigningRequestSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CertificateSigningRequestSpecDie) DieReleaseRawExtension ¶
func (d *CertificateSigningRequestSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestSpecDie) DieReleaseYAML ¶
func (d *CertificateSigningRequestSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CertificateSigningRequestSpecDie) DieSeal ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieSeal() *CertificateSigningRequestSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CertificateSigningRequestSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieSealFeed(r certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CertificateSigningRequestSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequestSpec) *CertificateSigningRequestSpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieSealRelease() certificatesv1.CertificateSigningRequestSpec
DieSealRelease returns the sealed resource managed by the die.
func (*CertificateSigningRequestSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CertificateSigningRequestSpecDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequestSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*CertificateSigningRequestSpecDie) DieStamp ¶
func (d *CertificateSigningRequestSpecDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequestSpec)) *CertificateSigningRequestSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CertificateSigningRequestSpecDie) DieStampAt ¶
func (d *CertificateSigningRequestSpecDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestSpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CertificateSigningRequestSpecDie) DieWith ¶
func (d *CertificateSigningRequestSpecDie) DieWith(fns ...func(d *CertificateSigningRequestSpecDie)) *CertificateSigningRequestSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*CertificateSigningRequestSpecDie) ExpirationSeconds ¶
func (d *CertificateSigningRequestSpecDie) ExpirationSeconds(v *int32) *CertificateSigningRequestSpecDie
expirationSeconds is the requested duration of validity of the issued
certificate. The certificate signer may issue a certificate with a different
validity duration so a client must check the delta between the notBefore and
and notAfter fields in the issued certificate to determine the actual duration.
The v1.22+ in-tree implementations of the well-known Kubernetes signers will
honor this field as long as the requested duration is not greater than the
maximum duration they will honor per the --cluster-signing-duration CLI
flag to the Kubernetes controller manager.
Certificate signers may not honor this field for various reasons:
1. Old signer that is unaware of the field (such as the in-tree
implementations prior to v1.22)
2. Signer whose configured maximum is shorter than the requested duration
3. Signer whose configured minimum is longer than the requested duration
The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.
func (*CertificateSigningRequestSpecDie) Extra ¶
func (d *CertificateSigningRequestSpecDie) Extra(v map[string]certificatesv1.ExtraValue) *CertificateSigningRequestSpecDie
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
func (*CertificateSigningRequestSpecDie) Groups ¶
func (d *CertificateSigningRequestSpecDie) Groups(v ...string) *CertificateSigningRequestSpecDie
groups contains group membership of the user that created the CertificateSigningRequest.
Populated by the API server on creation and immutable.
func (*CertificateSigningRequestSpecDie) Request ¶
func (d *CertificateSigningRequestSpecDie) Request(v []byte) *CertificateSigningRequestSpecDie
request contains an x509 certificate signing request encoded in a "CERTIFICATE REQUEST" PEM block.
When serialized as JSON or YAML, the data is additionally base64-encoded.
func (*CertificateSigningRequestSpecDie) SignerName ¶
func (d *CertificateSigningRequestSpecDie) SignerName(v string) *CertificateSigningRequestSpecDie
signerName indicates the requested signer, and is a qualified name.
List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector.
Well-known Kubernetes signers are:
1. "kubernetes.io/kube-apiserver-client": issues client certificates that can be used to authenticate to kube-apiserver.
Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the "csrsigning" controller in kube-controller-manager.
2. "kubernetes.io/kube-apiserver-client-kubelet": issues client certificates that kubelets use to authenticate to kube-apiserver.
Requests for this signer can be auto-approved by the "csrapproving" controller in kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager.
3. "kubernetes.io/kubelet-serving" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.
Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the "csrsigning" controller in kube-controller-manager.
More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers
Custom signerNames can also be specified. The signer defines:
1. Trust distribution: how trust (CA bundles) are distributed.
2. Permitted subjects: and behavior when a disallowed subject is requested.
3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.
4. Required, permitted, or forbidden key usages / extended key usages.
5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.
6. Whether or not requests for CA certificates are allowed.
func (*CertificateSigningRequestSpecDie) UID ¶
func (d *CertificateSigningRequestSpecDie) UID(v string) *CertificateSigningRequestSpecDie
uid contains the uid of the user that created the CertificateSigningRequest.
Populated by the API server on creation and immutable.
func (*CertificateSigningRequestSpecDie) Usages ¶
func (d *CertificateSigningRequestSpecDie) Usages(v ...certificatesv1.KeyUsage) *CertificateSigningRequestSpecDie
usages specifies a set of key usages requested in the issued certificate.
Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth".
Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth".
Valid values are:
"signing", "digital signature", "content commitment",
"key encipherment", "key agreement", "data encipherment",
"cert sign", "crl sign", "encipher only", "decipher only", "any",
"server auth", "client auth",
"code signing", "email protection", "s/mime",
"ipsec end system", "ipsec tunnel", "ipsec user",
"timestamping", "ocsp signing", "microsoft sgc", "netscape sgc"
func (*CertificateSigningRequestSpecDie) Username ¶
func (d *CertificateSigningRequestSpecDie) Username(v string) *CertificateSigningRequestSpecDie
username contains the name of the user that created the CertificateSigningRequest.
Populated by the API server on creation and immutable.
type CertificateSigningRequestStatusDie ¶
type CertificateSigningRequestStatusDie struct {
// contains filtered or unexported fields
}
func (*CertificateSigningRequestStatusDie) Certificate ¶
func (d *CertificateSigningRequestStatusDie) Certificate(v []byte) *CertificateSigningRequestStatusDie
certificate is populated with an issued certificate by the signer after an Approved condition is present.
This field is set via the /status subresource. Once populated, this field is immutable.
If the certificate signing request is denied, a condition of type "Denied" is added and this field remains empty.
If the signer cannot issue the certificate, a condition of type "Failed" is added and this field remains empty.
Validation requirements:
1. certificate must contain one or more PEM blocks.
2. All PEM blocks must have the "CERTIFICATE" label, contain no headers, and the encoded data
must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.
3. Non-PEM content may appear before or after the "CERTIFICATE" PEM blocks and is unvalidated,
to allow for explanatory text as described in section 5.2 of RFC7468.
If more than one PEM block is present, and the definition of the requested spec.signerName ¶
does not indicate otherwise, the first block is the issued certificate,
and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.
The certificate is encoded in PEM format.
When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:
base64(
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
)
func (*CertificateSigningRequestStatusDie) Conditions ¶
func (d *CertificateSigningRequestStatusDie) Conditions(v ...certificatesv1.CertificateSigningRequestCondition) *CertificateSigningRequestStatusDie
conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed".
func (*CertificateSigningRequestStatusDie) ConditionsDie ¶
func (d *CertificateSigningRequestStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *CertificateSigningRequestStatusDie
func (*CertificateSigningRequestStatusDie) DeepCopy ¶
func (d *CertificateSigningRequestStatusDie) DeepCopy() *CertificateSigningRequestStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*CertificateSigningRequestStatusDie) DieDiff ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*CertificateSigningRequestStatusDie) DieFeed ¶
func (d *CertificateSigningRequestStatusDie) DieFeed(r certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
DieFeed returns a new die with the provided resource.
func (*CertificateSigningRequestStatusDie) DieFeedJSON ¶
func (d *CertificateSigningRequestStatusDie) DieFeedJSON(j []byte) *CertificateSigningRequestStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*CertificateSigningRequestStatusDie) DieFeedPtr ¶
func (d *CertificateSigningRequestStatusDie) DieFeedPtr(r *certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestStatusDie) DieFeedRawExtension ¶
func (d *CertificateSigningRequestStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *CertificateSigningRequestStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestStatusDie) DieFeedYAML ¶
func (d *CertificateSigningRequestStatusDie) DieFeedYAML(y []byte) *CertificateSigningRequestStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*CertificateSigningRequestStatusDie) DieFeedYAMLFile ¶
func (d *CertificateSigningRequestStatusDie) DieFeedYAMLFile(name string) *CertificateSigningRequestStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*CertificateSigningRequestStatusDie) DieImmutable ¶
func (d *CertificateSigningRequestStatusDie) DieImmutable(immutable bool) *CertificateSigningRequestStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*CertificateSigningRequestStatusDie) DiePatch ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*CertificateSigningRequestStatusDie) DieRelease ¶
func (d *CertificateSigningRequestStatusDie) DieRelease() certificatesv1.CertificateSigningRequestStatus
DieRelease returns the resource managed by the die.
func (*CertificateSigningRequestStatusDie) DieReleaseJSON ¶
func (d *CertificateSigningRequestStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*CertificateSigningRequestStatusDie) DieReleasePtr ¶
func (d *CertificateSigningRequestStatusDie) DieReleasePtr() *certificatesv1.CertificateSigningRequestStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*CertificateSigningRequestStatusDie) DieReleaseRawExtension ¶
func (d *CertificateSigningRequestStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*CertificateSigningRequestStatusDie) DieReleaseYAML ¶
func (d *CertificateSigningRequestStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*CertificateSigningRequestStatusDie) DieSeal ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieSeal() *CertificateSigningRequestStatusDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*CertificateSigningRequestStatusDie) DieSealFeed ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieSealFeed(r certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*CertificateSigningRequestStatusDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieSealFeedPtr(r *certificatesv1.CertificateSigningRequestStatus) *CertificateSigningRequestStatusDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*CertificateSigningRequestStatusDie) DieSealRelease ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieSealRelease() certificatesv1.CertificateSigningRequestStatus
DieSealRelease returns the sealed resource managed by the die.
func (*CertificateSigningRequestStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *CertificateSigningRequestStatusDie) DieSealReleasePtr() *certificatesv1.CertificateSigningRequestStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*CertificateSigningRequestStatusDie) DieStamp ¶
func (d *CertificateSigningRequestStatusDie) DieStamp(fn func(r *certificatesv1.CertificateSigningRequestStatus)) *CertificateSigningRequestStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*CertificateSigningRequestStatusDie) DieStampAt ¶
func (d *CertificateSigningRequestStatusDie) DieStampAt(jp string, fn interface{}) *CertificateSigningRequestStatusDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*CertificateSigningRequestStatusDie) DieWith ¶
func (d *CertificateSigningRequestStatusDie) DieWith(fns ...func(d *CertificateSigningRequestStatusDie)) *CertificateSigningRequestStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.