Skip to content

Commit b857b05

Browse files
authored
Change k8s.io/api/core/v1 pkg alias to core (#204)
1 parent e52f848 commit b857b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snapshot_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/appscode/pat"
99
api "github.com/appscode/stash/apis/stash/v1alpha1"
1010
"github.com/appscode/stash/pkg/cli"
11-
apiv1 "k8s.io/api/core/v1"
11+
core "k8s.io/api/core/v1"
1212
kerr "k8s.io/apimachinery/pkg/api/errors"
1313
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1414
)
@@ -51,7 +51,7 @@ func ExportSnapshots(w http.ResponseWriter, r *http.Request) {
5151
http.Error(w, "Missing repository secret name", http.StatusBadRequest)
5252
return
5353
}
54-
var secret *apiv1.Secret
54+
var secret *core.Secret
5555
secret, err = kubeClient.CoreV1().Secrets(resource.Namespace).Get(resource.Spec.Backend.StorageSecretName, metav1.GetOptions{})
5656
if kerr.IsNotFound(err) {
5757
http.Error(w, err.Error(), http.StatusNotFound)

0 commit comments

Comments
 (0)