use appsv1beta1 for statefulsets and controller

history
This commit is contained in:
Mayank Kumar
2017-06-18 02:09:45 -07:00
parent a57c33bd28
commit 5ee1831fa9
2 changed files with 6 additions and 6 deletions

View File

@@ -56,7 +56,7 @@ func (ssu *realStatefulSetStatusUpdater) UpdateStatefulSetStatus(
// don't wait due to limited number of clients, but backoff after the default number of steps
return retry.RetryOnConflict(retry.DefaultRetry, func() error {
set.Status = *status
_, updateErr := ssu.client.Apps().StatefulSets(set.Namespace).UpdateStatus(set)
_, updateErr := ssu.client.AppsV1beta1().StatefulSets(set.Namespace).UpdateStatus(set)
if updateErr == nil {
return nil
}