We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9db7cf8 + 4b3ec3a commit 38a6fdbCopy full SHA for 38a6fdb
pkg/cmd/cli/cmd/rollback.go
@@ -234,7 +234,7 @@ func (o *RollbackOptions) Run() error {
234
},
235
}
236
newConfig, err := o.oc.DeploymentConfigs(o.Namespace).Rollback(rollback)
237
- if kerrors.IsNotFound(err) {
+ if kerrors.IsNotFound(err) || kerrors.IsForbidden(err) {
238
// Fallback to the old path for new clients talking to old servers.
239
newConfig, err = o.oc.DeploymentConfigs(o.Namespace).RollbackDeprecated(rollback)
240
0 commit comments