Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + const ChangeCauseAnnotation + const Interval + const Timeout + var ResourcesShortcutStatic = []ResourceShortcuts + func AbortRollingUpdate(c *RollingUpdaterConfig) error + func AddDeploymentKeyToReplicationController(oldRc *api.ReplicationController, ...) (*api.ReplicationController, error) + func AddJsonFilenameFlag(cmd *cobra.Command, value *[]string, usage string) + func AnnotateFlags(cmd *cobra.Command, generators map[string]Generator) + func CreateApplyAnnotation(info *resource.Info, codec runtime.Encoder) error + func CreateNewControllerFromCurrentController(rcClient coreclient.ReplicationControllersGetter, codec runtime.Codec, ...) (*api.ReplicationController, error) + func CreateOrUpdateAnnotation(createAnnotation bool, info *resource.Info, codec runtime.Encoder) error + func DecodeUnknownObject(obj runtime.Object) (runtime.Object, error) + func EnsureFlagsValid(cmd *cobra.Command, generators map[string]Generator, generatorInUse string) error + func FindSourceController(r coreclient.ReplicationControllersGetter, namespace, name string) (*api.ReplicationController, error) + func GetBool(params map[string]string, key string, defValue bool) (bool, error) + func GetModifiedConfiguration(info *resource.Info, annotate bool, codec runtime.Encoder) ([]byte, error) + func GetNextControllerAnnotation(rc *api.ReplicationController) (string, bool) + func GetOriginalConfiguration(mapping *meta.RESTMapping, obj runtime.Object) ([]byte, error) + func HandleResourceRequirements(params map[string]string) (api.ResourceRequirements, error) + func HandleResourceRequirementsV1(params map[string]string) (v1.ResourceRequirements, error) + func IsNoSuchReaperError(err error) bool + func IsZero(i interface{}) bool + func LoadExistingNextReplicationController(c coreclient.ReplicationControllersGetter, namespace, newName string) (*api.ReplicationController, error) + func MakeLabels(labels map[string]string) string + func MakeParams(cmd *cobra.Command, params []GeneratorParam) map[string]interface + func MakeProtocols(protocols map[string]string) string + func ParseLabels(labelSpec interface{}) (map[string]string, error) + func ParseProtocols(protocols interface{}) (map[string]string, error) + func Rename(c coreclient.ReplicationControllersGetter, rc *api.ReplicationController, ...) error + func ResourceAliases(rs []string) []string + func ResourceShortFormFor(resource string) (string, bool) + func ScaleCondition(r Scaler, precondition *ScalePrecondition, namespace, name string, count uint, ...) wait.ConditionFunc + func SetNextControllerAnnotation(rc *api.ReplicationController, name string) + func SetOriginalConfiguration(info *resource.Info, original []byte) error + func UpdateApplyAnnotation(info *resource.Info, codec runtime.Encoder) error + func UpdateExistingReplicationController(rcClient coreclient.ReplicationControllersGetter, ...) (*api.ReplicationController, error) + func ValidateParams(paramSpec []GeneratorParam, params map[string]interface{}) error + type BaseDeploymentGenerator struct + Images []string + Name string + type BasicPod struct + func (BasicPod) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (BasicPod) ParamNames() []GeneratorParam + type BasicReplicationController struct + func (BasicReplicationController) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (BasicReplicationController) ParamNames() []GeneratorParam + type ClusterRoleBindingGeneratorV1 struct + ClusterRole string + Groups []string + Name string + ServiceAccounts []string + Users []string + func (s ClusterRoleBindingGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s ClusterRoleBindingGeneratorV1) ParamNames() []GeneratorParam + func (s ClusterRoleBindingGeneratorV1) StructuredGenerate() (runtime.Object, error) + type ConfigMapGeneratorV1 struct + AppendHash bool + EnvFileSource string + FileSources []string + LiteralSources []string + Name string + Type string + func (s ConfigMapGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s ConfigMapGeneratorV1) ParamNames() []GeneratorParam + func (s ConfigMapGeneratorV1) StructuredGenerate() (runtime.Object, error) + type CronJobV1Beta1 struct + func (CronJobV1Beta1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (CronJobV1Beta1) ParamNames() []GeneratorParam + type CronJobV2Alpha1 struct + func (CronJobV2Alpha1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (CronJobV2Alpha1) ParamNames() []GeneratorParam + type DaemonSetHistoryViewer struct + func (h *DaemonSetHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error) + type DaemonSetReaper struct + func (reaper *DaemonSetReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type DaemonSetRollbacker struct + func (r *DaemonSetRollbacker) Rollback(obj runtime.Object, updatedAnnotations map[string]string, toRevision int64, ...) (string, error) + type DaemonSetStatusViewer struct + func (s *DaemonSetStatusViewer) Status(namespace, name string, revision int64) (string, bool, error) + type DeploymentAppsV1Beta1 struct + func (DeploymentAppsV1Beta1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (DeploymentAppsV1Beta1) ParamNames() []GeneratorParam + type DeploymentBasicAppsGeneratorV1 struct + func (s *DeploymentBasicAppsGeneratorV1) StructuredGenerate() (runtime.Object, error) + type DeploymentBasicGeneratorV1 struct + func (s *DeploymentBasicGeneratorV1) StructuredGenerate() (runtime.Object, error) + type DeploymentHistoryViewer struct + func (h *DeploymentHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error) + type DeploymentReaper struct + func (reaper *DeploymentReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type DeploymentRollbacker struct + func (r *DeploymentRollbacker) Rollback(obj runtime.Object, updatedAnnotations map[string]string, toRevision int64, ...) (string, error) + type DeploymentScaler struct + func (scaler *DeploymentScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + func (scaler *DeploymentScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) + type DeploymentStatusViewer struct + func (s *DeploymentStatusViewer) Status(namespace, name string, revision int64) (string, bool, error) + type DeploymentV1Beta1 struct + func (DeploymentV1Beta1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (DeploymentV1Beta1) ParamNames() []GeneratorParam + type FilterFunc func(runtime.Object, printers.PrintOptions) bool + type Filters []FilterFunc + func NewResourceFilter() Filters + func (f Filters) Filter(obj runtime.Object, opts *printers.PrintOptions) (bool, error) + type Generator interface + Generate func(params map[string]interface{}) (runtime.Object, error) + ParamNames func() []GeneratorParam + type GeneratorParam struct + Name string + Required bool + type HistoryViewer interface + ViewHistory func(namespace, name string, revision int64) (string, error) + func HistoryViewerFor(kind schema.GroupKind, c clientset.Interface) (HistoryViewer, error) + type HorizontalPodAutoscalerV1 struct + func (HorizontalPodAutoscalerV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (HorizontalPodAutoscalerV1) ParamNames() []GeneratorParam + type JobReaper struct + func (reaper *JobReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type JobScaler struct + func (scaler *JobScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + func (scaler *JobScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) + type JobV1 struct + func (JobV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (JobV1) ParamNames() []GeneratorParam + type NamespaceGeneratorV1 struct + Name string + func (g *NamespaceGeneratorV1) StructuredGenerate() (runtime.Object, error) + func (g NamespaceGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (g NamespaceGeneratorV1) ParamNames() []GeneratorParam + type NamespaceInfo struct + Namespace string + type NewControllerConfig struct + Container string + DeploymentKey string + Image string + Namespace string + NewName string + OldName string + PullPolicy api.PullPolicy + type NoSuchReaperError struct + func (n *NoSuchReaperError) Error() string + type PodDisruptionBudgetV1Generator struct + MinAvailable string + Name string + Selector string + func (PodDisruptionBudgetV1Generator) ParamNames() []GeneratorParam + func (s *PodDisruptionBudgetV1Generator) StructuredGenerate() (runtime.Object, error) + func (s PodDisruptionBudgetV1Generator) Generate(params map[string]interface{}) (runtime.Object, error) + type PodDisruptionBudgetV2Generator struct + MaxUnavailable string + MinAvailable string + Name string + Selector string + func (PodDisruptionBudgetV2Generator) ParamNames() []GeneratorParam + func (s *PodDisruptionBudgetV2Generator) StructuredGenerate() (runtime.Object, error) + func (s PodDisruptionBudgetV2Generator) Generate(params map[string]interface{}) (runtime.Object, error) + type PodReaper struct + func (reaper *PodReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type PreconditionError struct + ActualValue string + ExpectedValue string + Precondition string + func (pe PreconditionError) Error() string + type RESTClient interface + Delete func() *client.Request + Get func() *client.Request + Patch func(types.PatchType) *client.Request + Post func() *client.Request + Put func() *client.Request + type Reaper interface + Stop func(namespace, name string, timeout time.Duration, ...) error + func ReaperFor(kind schema.GroupKind, c internalclientset.Interface) (Reaper, error) + func ReaperForReplicationController(rcClient coreclient.ReplicationControllersGetter, timeout time.Duration) (Reaper, error) + type ReplicaSetReaper struct + func (reaper *ReplicaSetReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type ReplicaSetScaler struct + func (scaler *ReplicaSetScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + func (scaler *ReplicaSetScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) + type ReplicationControllerReaper struct + func (reaper *ReplicationControllerReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type ReplicationControllerScaler struct + func (scaler *ReplicationControllerScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + func (scaler *ReplicationControllerScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) + type ResourceQuotaGeneratorV1 struct + Hard string + Name string + Scopes string + func (g *ResourceQuotaGeneratorV1) StructuredGenerate() (runtime.Object, error) + func (g ResourceQuotaGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (g ResourceQuotaGeneratorV1) ParamNames() []GeneratorParam + type ResourceShortcuts struct + LongForm schema.GroupResource + ShortForm schema.GroupResource + type RetryParams struct + Interval time.Duration + Timeout time.Duration + func NewRetryParams(interval, timeout time.Duration) *RetryParams + type RoleBindingGeneratorV1 struct + ClusterRole string + Groups []string + Name string + Role string + ServiceAccounts []string + Users []string + func (s RoleBindingGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s RoleBindingGeneratorV1) ParamNames() []GeneratorParam + func (s RoleBindingGeneratorV1) StructuredGenerate() (runtime.Object, error) + type Rollbacker interface + Rollback func(obj runtime.Object, updatedAnnotations map[string]string, toRevision int64, ...) (string, error) + func RollbackerFor(kind schema.GroupKind, c clientset.Interface) (Rollbacker, error) + type RollingUpdater struct + func NewRollingUpdater(namespace string, rcClient coreclient.ReplicationControllersGetter, ...) *RollingUpdater + func (r *RollingUpdater) Update(config *RollingUpdaterConfig) error + type RollingUpdaterCleanupPolicy string + const DeleteRollingUpdateCleanupPolicy + const PreserveRollingUpdateCleanupPolicy + const RenameRollingUpdateCleanupPolicy + type RollingUpdaterConfig struct + CleanupPolicy RollingUpdaterCleanupPolicy + Interval time.Duration + MaxSurge intstr.IntOrString + MaxUnavailable intstr.IntOrString + MinReadySeconds int32 + NewRc *api.ReplicationController + OldRc *api.ReplicationController + OnProgress func(oldRc, newRc *api.ReplicationController, percentage int) error + Out io.Writer + Timeout time.Duration + UpdatePeriod time.Duration + type RuntimeSort struct + func NewRuntimeSort(field string, objs []runtime.Object) *RuntimeSort + func SortObjects(decoder runtime.Decoder, objs []runtime.Object, fieldInput string) (*RuntimeSort, error) + func (r *RuntimeSort) Len() int + func (r *RuntimeSort) Less(i, j int) bool + func (r *RuntimeSort) OriginalPosition(ix int) int + func (r *RuntimeSort) Swap(i, j int) + type ScaleError struct + ActualError error + FailureType ScaleErrorType + ResourceVersion string + func (c ScaleError) Error() string + type ScaleErrorType int + const ScaleGetFailure + const ScaleUpdateConflictFailure + const ScaleUpdateFailure + type ScalePrecondition struct + ResourceVersion string + Size int + func (precondition *ScalePrecondition) ValidateDeployment(deployment *extensions.Deployment) error + func (precondition *ScalePrecondition) ValidateJob(job *batch.Job) error + func (precondition *ScalePrecondition) ValidateReplicaSet(replicaSet *extensions.ReplicaSet) error + func (precondition *ScalePrecondition) ValidateReplicationController(controller *api.ReplicationController) error + func (precondition *ScalePrecondition) ValidateStatefulSet(ps *apps.StatefulSet) error + type Scaler interface + Scale func(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + ScaleSimple func(namespace, name string, preconditions *ScalePrecondition, newSize uint) (updatedResourceVersion string, err error) + func ScalerFor(kind schema.GroupKind, c internalclientset.Interface) (Scaler, error) + type SecretForDockerRegistryGeneratorV1 struct + AppendHash bool + Email string + Name string + Password string + Server string + Username string + func (s SecretForDockerRegistryGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s SecretForDockerRegistryGeneratorV1) ParamNames() []GeneratorParam + func (s SecretForDockerRegistryGeneratorV1) StructuredGenerate() (runtime.Object, error) + type SecretForTLSGeneratorV1 struct + AppendHash bool + Cert string + Key string + Name string + func (s SecretForTLSGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s SecretForTLSGeneratorV1) ParamNames() []GeneratorParam + func (s SecretForTLSGeneratorV1) StructuredGenerate() (runtime.Object, error) + type SecretGeneratorV1 struct + AppendHash bool + EnvFileSource string + FileSources []string + LiteralSources []string + Name string + Type string + func (s SecretGeneratorV1) Generate(genericParams map[string]interface{}) (runtime.Object, error) + func (s SecretGeneratorV1) ParamNames() []GeneratorParam + func (s SecretGeneratorV1) StructuredGenerate() (runtime.Object, error) + type ServiceAccountGeneratorV1 struct + Name string + func (g *ServiceAccountGeneratorV1) StructuredGenerate() (runtime.Object, error) + type ServiceClusterIPGeneratorV1 struct + func (ServiceClusterIPGeneratorV1) ParamNames() []GeneratorParam + func (s ServiceClusterIPGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) + type ServiceCommonGeneratorV1 struct + ClusterIP string + ExternalName string + Name string + NodePort int + TCP []string + Type api.ServiceType + func (s ServiceCommonGeneratorV1) GenerateCommon(params map[string]interface{}) error + func (s ServiceCommonGeneratorV1) StructuredGenerate() (runtime.Object, error) + type ServiceExternalNameGeneratorV1 struct + func (ServiceExternalNameGeneratorV1) ParamNames() []GeneratorParam + func (s ServiceExternalNameGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) + type ServiceGeneratorV1 struct + func (ServiceGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) + func (ServiceGeneratorV1) ParamNames() []GeneratorParam + type ServiceGeneratorV2 struct + func (ServiceGeneratorV2) Generate(params map[string]interface{}) (runtime.Object, error) + func (ServiceGeneratorV2) ParamNames() []GeneratorParam + type ServiceLoadBalancerGeneratorV1 struct + func (ServiceLoadBalancerGeneratorV1) ParamNames() []GeneratorParam + func (s ServiceLoadBalancerGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) + type ServiceNodePortGeneratorV1 struct + func (ServiceNodePortGeneratorV1) ParamNames() []GeneratorParam + func (s ServiceNodePortGeneratorV1) Generate(params map[string]interface{}) (runtime.Object, error) + type SortingPrinter struct + Decoder runtime.Decoder + Delegate printers.ResourcePrinter + SortField string + func (s *SortingPrinter) AfterPrint(w io.Writer, res string) error + func (s *SortingPrinter) HandledResources() []string + func (s *SortingPrinter) IsGeneric() bool + func (s *SortingPrinter) PrintObj(obj runtime.Object, out io.Writer) error + type StatefulSetHistoryViewer struct + func (h *StatefulSetHistoryViewer) ViewHistory(namespace, name string, revision int64) (string, error) + type StatefulSetReaper struct + func (reaper *StatefulSetReaper) Stop(namespace, name string, timeout time.Duration, ...) error + type StatefulSetRollbacker struct + func (r *StatefulSetRollbacker) Rollback(obj runtime.Object, updatedAnnotations map[string]string, toRevision int64, ...) (string, error) + type StatefulSetScaler struct + func (scaler *StatefulSetScaler) Scale(namespace, name string, newSize uint, preconditions *ScalePrecondition, ...) error + func (scaler *StatefulSetScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint) (string, error) + type StatefulSetStatusViewer struct + func (s *StatefulSetStatusViewer) Status(namespace, name string, revision int64) (string, bool, error) + type StatusViewer interface + Status func(namespace, name string, revision int64) (string, bool, error) + func StatusViewerFor(kind schema.GroupKind, c internalclientset.Interface) (StatusViewer, error) + type StructuredGenerator interface + StructuredGenerate func() (runtime.Object, error)