mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 17:38:50 +00:00
Remove duplicated def of IsEtcdNodeExist
This commit is contained in:
@@ -88,11 +88,6 @@ func IsEtcdNotFound(err error) bool {
|
|||||||
return isEtcdErrorNum(err, EtcdErrorCodeNotFound)
|
return isEtcdErrorNum(err, EtcdErrorCodeNotFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns true iff err is an etcd key node exists error.
|
|
||||||
func IsEtcdNodeExist(err error) bool {
|
|
||||||
return isEtcdErrorNum(err, EtcdErrorCodeNodeExist)
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsEtcdTestFailed returns true iff err is an etcd write conflict.
|
// IsEtcdTestFailed returns true iff err is an etcd write conflict.
|
||||||
func IsEtcdTestFailed(err error) bool {
|
func IsEtcdTestFailed(err error) bool {
|
||||||
return isEtcdErrorNum(err, EtcdErrorCodeTestFailed)
|
return isEtcdErrorNum(err, EtcdErrorCodeTestFailed)
|
||||||
|
Reference in New Issue
Block a user