mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
DS: kubectl changes
This commit is contained in:
parent
14d5793869
commit
ca38850ab1
@ -58,7 +58,7 @@ func HistoryViewerFor(kind schema.GroupKind, c clientset.Interface) (HistoryView
|
|||||||
return &DeploymentHistoryViewer{c}, nil
|
return &DeploymentHistoryViewer{c}, nil
|
||||||
case apps.Kind("StatefulSet"):
|
case apps.Kind("StatefulSet"):
|
||||||
return &StatefulSetHistoryViewer{c}, nil
|
return &StatefulSetHistoryViewer{c}, nil
|
||||||
case extensions.Kind("DaemonSet"):
|
case extensions.Kind("DaemonSet"), apps.Kind("DaemonSet"):
|
||||||
return &DaemonSetHistoryViewer{c}, nil
|
return &DaemonSetHistoryViewer{c}, nil
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no history viewer has been implemented for %q", kind)
|
return nil, fmt.Errorf("no history viewer has been implemented for %q", kind)
|
||||||
|
@ -57,7 +57,7 @@ func RollbackerFor(kind schema.GroupKind, c clientset.Interface) (Rollbacker, er
|
|||||||
switch kind {
|
switch kind {
|
||||||
case extensions.Kind("Deployment"), apps.Kind("Deployment"):
|
case extensions.Kind("Deployment"), apps.Kind("Deployment"):
|
||||||
return &DeploymentRollbacker{c}, nil
|
return &DeploymentRollbacker{c}, nil
|
||||||
case extensions.Kind("DaemonSet"):
|
case extensions.Kind("DaemonSet"), apps.Kind("DaemonSet"):
|
||||||
return &DaemonSetRollbacker{c}, nil
|
return &DaemonSetRollbacker{c}, nil
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("no rollbacker has been implemented for %q", kind)
|
return nil, fmt.Errorf("no rollbacker has been implemented for %q", kind)
|
||||||
|
@ -38,7 +38,7 @@ func StatusViewerFor(kind schema.GroupKind, c internalclientset.Interface) (Stat
|
|||||||
switch kind {
|
switch kind {
|
||||||
case extensions.Kind("Deployment"), apps.Kind("Deployment"):
|
case extensions.Kind("Deployment"), apps.Kind("Deployment"):
|
||||||
return &DeploymentStatusViewer{c.Extensions()}, nil
|
return &DeploymentStatusViewer{c.Extensions()}, nil
|
||||||
case extensions.Kind("DaemonSet"):
|
case extensions.Kind("DaemonSet"), apps.Kind("DaemonSet"):
|
||||||
return &DaemonSetStatusViewer{c.Extensions()}, nil
|
return &DaemonSetStatusViewer{c.Extensions()}, nil
|
||||||
case apps.Kind("StatefulSet"):
|
case apps.Kind("StatefulSet"):
|
||||||
return &StatefulSetStatusViewer{c.Apps()}, nil
|
return &StatefulSetStatusViewer{c.Apps()}, nil
|
||||||
|
@ -75,7 +75,7 @@ func ReaperFor(kind schema.GroupKind, c internalclientset.Interface) (Reaper, er
|
|||||||
case extensions.Kind("ReplicaSet"):
|
case extensions.Kind("ReplicaSet"):
|
||||||
return &ReplicaSetReaper{c.Extensions(), Interval, Timeout}, nil
|
return &ReplicaSetReaper{c.Extensions(), Interval, Timeout}, nil
|
||||||
|
|
||||||
case extensions.Kind("DaemonSet"):
|
case extensions.Kind("DaemonSet"), apps.Kind("DaemonSet"):
|
||||||
return &DaemonSetReaper{c.Extensions(), Interval, Timeout}, nil
|
return &DaemonSetReaper{c.Extensions(), Interval, Timeout}, nil
|
||||||
|
|
||||||
case api.Kind("Pod"):
|
case api.Kind("Pod"):
|
||||||
|
@ -146,6 +146,7 @@ func describerMap(c clientset.Interface) map[schema.GroupKind]printers.Describer
|
|||||||
batch.Kind("CronJob"): &CronJobDescriber{c},
|
batch.Kind("CronJob"): &CronJobDescriber{c},
|
||||||
apps.Kind("StatefulSet"): &StatefulSetDescriber{c},
|
apps.Kind("StatefulSet"): &StatefulSetDescriber{c},
|
||||||
apps.Kind("Deployment"): &DeploymentDescriber{c, versionedClientsetForDeployment(c)},
|
apps.Kind("Deployment"): &DeploymentDescriber{c, versionedClientsetForDeployment(c)},
|
||||||
|
apps.Kind("DaemonSet"): &DaemonSetDescriber{c},
|
||||||
certificates.Kind("CertificateSigningRequest"): &CertificateSigningRequestDescriber{c},
|
certificates.Kind("CertificateSigningRequest"): &CertificateSigningRequestDescriber{c},
|
||||||
storage.Kind("StorageClass"): &StorageClassDescriber{c},
|
storage.Kind("StorageClass"): &StorageClassDescriber{c},
|
||||||
policy.Kind("PodDisruptionBudget"): &PodDisruptionBudgetDescriber{c},
|
policy.Kind("PodDisruptionBudget"): &PodDisruptionBudgetDescriber{c},
|
||||||
|
Loading…
Reference in New Issue
Block a user