Documentation ¶
Index ¶
- Variables
- func NewConfigMapPatcher(upd, orig *ConfigMap) lifecycle.Persister
- func NewEndpointsBoundPoller(eps *Endpoints) lifecycle.RetryLoader
- func NewImagePullSecretPatcher(upd, orig *ImagePullSecret) lifecycle.Persister
- func NewLimitRangePatcher(upd, orig *LimitRange) lifecycle.Persister
- func NewNamespacePatcher(upd, orig *Namespace) lifecycle.Persister
- func NewOpaqueSecretPatcher(upd, orig *OpaqueSecret) lifecycle.Persister
- func NewPersistentVolumeClaimPatcher(upd, orig *PersistentVolumeClaim) lifecycle.Persister
- func NewPersistentVolumePatcher(upd, orig *PersistentVolume) lifecycle.Persister
- func NewPodPatcher(upd, orig *Pod) lifecycle.Persister
- func NewPodRunningPoller(pod *Pod) lifecycle.RetryLoader
- func NewPodTerminatedPoller(pod *Pod) lifecycle.RetryLoader
- func NewSecretPatcher(upd, orig *Secret) lifecycle.Persister
- func NewServiceAccountPatcher(upd, orig *ServiceAccount) lifecycle.Persister
- func NewServiceAccountTokenSecretPatcher(upd, orig *ServiceAccountTokenSecret) lifecycle.Persister
- func NewServiceAccountTokenSecretsDefaultPresentPoller(sats *ServiceAccountTokenSecrets) lifecycle.RetryLoader
- func NewServicePatcher(upd, orig *Service) lifecycle.Persister
- type ConfigMap
- type Endpoints
- type ImagePullSecret
- type LimitRange
- func (lr *LimitRange) Copy() *LimitRange
- func (lr *LimitRange) MergeItem(item corev1.LimitRangeItem)
- func (lr *LimitRange) SetContainerDefault(lim corev1.ResourceList)
- func (lr *LimitRange) SetContainerDefaultRequest(lim corev1.ResourceList)
- func (lr *LimitRange) SetContainerMax(lim corev1.ResourceList)
- type Namespace
- type OpaqueSecret
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type Secret
- type Service
- type ServiceAccount
- type ServiceAccountTokenSecret
- type ServiceAccountTokenSecrets
- type TLSSecret
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPodTerminated = errors.New("pod terminated") ErrPodRunning = errors.New("pod running") ErrPodWaiting = errors.New("pod waiting to start") )
View Source
var ( ErrNotOpaqueSecret = errors.New("secret is not an unstructured opaque secret") ErrNotImagePullSecret = errors.New("secret is not usable for pulling container images") ErrNotServiceAccountTokenSecret = errors.New("secret is not usable for service accounts") ErrServiceAccountTokenMissingData = errors.New("service account token secret has no token data") ErrNotTLSSecret = errors.New("secret is not usable for TLS") )
View Source
var (
ConfigMapKind = corev1.SchemeGroupVersion.WithKind("ConfigMap")
)
View Source
var (
EndpointsKind = corev1.SchemeGroupVersion.WithKind("Endpoints")
)
View Source
var (
ErrEndpointsNotBound = errors.New("endpoints not bound")
)
View Source
var (
ErrServiceAccountMissingDefaultTokenSecret = errors.New("service account has no default token secret")
)
View Source
var (
LimitRangeKind = corev1.SchemeGroupVersion.WithKind("LimitRange")
)
View Source
var (
NamespaceKind = corev1.SchemeGroupVersion.WithKind("Namespace")
)
View Source
var (
PersistentVolumeClaimKind = corev1.SchemeGroupVersion.WithKind("PersistentVolumeClaim")
)
View Source
var (
PersistentVolumeKind = corev1.SchemeGroupVersion.WithKind("PersistentVolume")
)
View Source
var (
PodKind = corev1.SchemeGroupVersion.WithKind("Pod")
)
View Source
var (
SecretKind = corev1.SchemeGroupVersion.WithKind("Secret")
)
View Source
var (
ServiceAccountKind = corev1.SchemeGroupVersion.WithKind("ServiceAccount")
)
View Source
var (
ServiceKind = corev1.SchemeGroupVersion.WithKind("Service")
)
Functions ¶
func NewConfigMapPatcher ¶
func NewEndpointsBoundPoller ¶
func NewEndpointsBoundPoller(eps *Endpoints) lifecycle.RetryLoader
func NewImagePullSecretPatcher ¶
func NewImagePullSecretPatcher(upd, orig *ImagePullSecret) lifecycle.Persister
func NewLimitRangePatcher ¶
func NewLimitRangePatcher(upd, orig *LimitRange) lifecycle.Persister
func NewNamespacePatcher ¶
func NewOpaqueSecretPatcher ¶
func NewOpaqueSecretPatcher(upd, orig *OpaqueSecret) lifecycle.Persister
func NewPersistentVolumeClaimPatcher ¶
func NewPersistentVolumeClaimPatcher(upd, orig *PersistentVolumeClaim) lifecycle.Persister
func NewPersistentVolumePatcher ¶
func NewPersistentVolumePatcher(upd, orig *PersistentVolume) lifecycle.Persister
func NewPodPatcher ¶
func NewPodRunningPoller ¶
func NewPodRunningPoller(pod *Pod) lifecycle.RetryLoader
func NewPodTerminatedPoller ¶ added in v0.2.0
func NewPodTerminatedPoller(pod *Pod) lifecycle.RetryLoader
func NewSecretPatcher ¶
func NewServiceAccountPatcher ¶
func NewServiceAccountPatcher(upd, orig *ServiceAccount) lifecycle.Persister
func NewServiceAccountTokenSecretPatcher ¶
func NewServiceAccountTokenSecretPatcher(upd, orig *ServiceAccountTokenSecret) lifecycle.Persister
func NewServiceAccountTokenSecretsDefaultPresentPoller ¶
func NewServiceAccountTokenSecretsDefaultPresentPoller(sats *ServiceAccountTokenSecrets) lifecycle.RetryLoader
func NewServicePatcher ¶
Types ¶
type ConfigMap ¶
type ConfigMap struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *corev1.ConfigMap }
func NewConfigMap ¶
func NewConfigMapFromObject ¶
type Endpoints ¶
func NewEndpoints ¶
type ImagePullSecret ¶
type ImagePullSecret struct {
*Secret
}
func NewImagePullSecret ¶
func NewImagePullSecret(key client.ObjectKey) *ImagePullSecret
func (*ImagePullSecret) Copy ¶
func (ips *ImagePullSecret) Copy() *ImagePullSecret
func (*ImagePullSecret) CopyFrom ¶
func (ips *ImagePullSecret) CopyFrom(src *ImagePullSecret)
type LimitRange ¶
type LimitRange struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *corev1.LimitRange }
func NewLimitRange ¶
func NewLimitRange(key client.ObjectKey) *LimitRange
func NewLimitRangeFromObject ¶
func NewLimitRangeFromObject(obj *corev1.LimitRange) *LimitRange
func (*LimitRange) Copy ¶
func (lr *LimitRange) Copy() *LimitRange
func (*LimitRange) MergeItem ¶
func (lr *LimitRange) MergeItem(item corev1.LimitRangeItem)
func (*LimitRange) SetContainerDefault ¶
func (lr *LimitRange) SetContainerDefault(lim corev1.ResourceList)
func (*LimitRange) SetContainerDefaultRequest ¶
func (lr *LimitRange) SetContainerDefaultRequest(lim corev1.ResourceList)
func (*LimitRange) SetContainerMax ¶
func (lr *LimitRange) SetContainerMax(lim corev1.ResourceList)
type Namespace ¶
type Namespace struct { *helper.ClusterScopedAPIObject Name string Object *corev1.Namespace }
func NewNamespace ¶
func NewNamespaceFromObject ¶
type OpaqueSecret ¶
type OpaqueSecret struct {
*Secret
}
func NewOpaqueSecret ¶
func NewOpaqueSecret(key client.ObjectKey) *OpaqueSecret
func (*OpaqueSecret) Copy ¶
func (os *OpaqueSecret) Copy() *OpaqueSecret
type PersistentVolume ¶
type PersistentVolume struct { *helper.ClusterScopedAPIObject Name string Object *corev1.PersistentVolume }
func NewPersistentVolume ¶
func NewPersistentVolume(name string) *PersistentVolume
func NewPersistentVolumeFromObject ¶
func NewPersistentVolumeFromObject(obj *corev1.PersistentVolume) *PersistentVolume
func (*PersistentVolume) Copy ¶
func (pv *PersistentVolume) Copy() *PersistentVolume
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *corev1.PersistentVolumeClaim }
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(key client.ObjectKey) *PersistentVolumeClaim
func NewPersistentVolumeClaimFromObject ¶
func NewPersistentVolumeClaimFromObject(obj *corev1.PersistentVolumeClaim) *PersistentVolumeClaim
func (*PersistentVolumeClaim) Copy ¶
func (pvc *PersistentVolumeClaim) Copy() *PersistentVolumeClaim
type Secret ¶
func NewSecretFromObject ¶
type Service ¶
type Service struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *corev1.Service }
func NewService ¶
func NewServiceFromObject ¶
type ServiceAccount ¶
type ServiceAccount struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *corev1.ServiceAccount }
func NewServiceAccount ¶
func NewServiceAccount(key client.ObjectKey) *ServiceAccount
func NewServiceAccountFromObject ¶
func NewServiceAccountFromObject(obj *corev1.ServiceAccount) *ServiceAccount
func (*ServiceAccount) Copy ¶
func (sa *ServiceAccount) Copy() *ServiceAccount
type ServiceAccountTokenSecret ¶
type ServiceAccountTokenSecret struct {
*Secret
}
func NewServiceAccountTokenSecret ¶
func NewServiceAccountTokenSecret(key client.ObjectKey) *ServiceAccountTokenSecret
func (*ServiceAccountTokenSecret) Copy ¶
func (sats *ServiceAccountTokenSecret) Copy() *ServiceAccountTokenSecret
func (*ServiceAccountTokenSecret) Token ¶
func (sats *ServiceAccountTokenSecret) Token() (string, error)
type ServiceAccountTokenSecrets ¶
type ServiceAccountTokenSecrets struct { ServiceAccount *ServiceAccount DefaultTokenSecret *ServiceAccountTokenSecret AdditionalTokenSecrets []*ServiceAccountTokenSecret }
func NewServiceAccountTokenSecrets ¶
func NewServiceAccountTokenSecrets(sa *ServiceAccount) *ServiceAccountTokenSecrets
type TLSSecret ¶
type TLSSecret struct {
*Secret
}
func NewTLSSecret ¶
func (*TLSSecret) Certificate ¶
func (ts *TLSSecret) Certificate() (tls.Certificate, error)
Certificate returns the TLS certificate encoded in this secret. If the secret contains a ca.crt key that does not also exist in the tls.crt, it will be appended to the certificate bundle.
Click to show internal directories.
Click to hide internal directories.