mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Whitespace and old comment removal
This commit is contained in:
parent
1ffc82dfe6
commit
bc748fadfa
@ -40,6 +40,7 @@ func (s *Scheme) Decode(data []byte) (interface{}, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// yaml is a superset of json, so we use it to decode here. That way,
|
// yaml is a superset of json, so we use it to decode here. That way,
|
||||||
// we understand both.
|
// we understand both.
|
||||||
err = yaml.Unmarshal(data, obj)
|
err = yaml.Unmarshal(data, obj)
|
||||||
|
@ -74,7 +74,6 @@ func (e *EndpointController) SyncServiceEndpoints() error {
|
|||||||
}
|
}
|
||||||
currentEndpoints, err := e.client.GetEndpoints(nsCtx, service.Name)
|
currentEndpoints, err := e.client.GetEndpoints(nsCtx, service.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO this is brittle as all get out, refactor the client libraries to return a structured error.
|
|
||||||
if errors.IsNotFound(err) {
|
if errors.IsNotFound(err) {
|
||||||
currentEndpoints = &api.Endpoints{
|
currentEndpoints = &api.Endpoints{
|
||||||
TypeMeta: api.TypeMeta{
|
TypeMeta: api.TypeMeta{
|
||||||
|
Loading…
Reference in New Issue
Block a user