diff --git a/k8s_state.go b/k8s_state.go index 1e6d1d9..3392925 100644 --- a/k8s_state.go +++ b/k8s_state.go @@ -44,7 +44,7 @@ func (k *k8sStateStore) ReadState(id ipn.StateKey) ([]byte, error) { if err != nil { if !apierrors.IsNotFound(err) { // unexpected - return nil, fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.name, err) + return nil, fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.secret, err) } return nil, ipn.ErrStateNotExist } @@ -74,7 +74,7 @@ func (k *k8sStateStore) WriteState(id ipn.StateKey, bs []byte) error { if err != nil { if !apierrors.IsNotFound(err) { // unexpected - return fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.name, err) + return fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.secret, err) } // item wasn't found, start with a new one needsCreate = true