mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Remove duplicated def of IsEtcdNodeExist
This commit is contained in:
parent
c7947abd9c
commit
c1ec1d6d72
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user