kustomize.yaml becomes kustomization.yaml

This commit is contained in:
Jeffrey Regan
2018-04-17 11:16:49 -07:00
parent da0682cdeb
commit 4d2b8d4e1d
22 changed files with 59 additions and 43 deletions

View File

@@ -19,10 +19,12 @@ package error
import (
"strings"
"testing"
"k8s.io/kubectl/pkg/kustomize/constants"
)
func TestConfigmapError_Error(t *testing.T) {
filepath := "/path/to/kustomize.yaml"
filepath := "/path/to/" + constants.KustomizationFileName
errorMsg := "configmap name is missing"
me := ConfigmapError{Path: filepath, ErrorMsg: errorMsg}

View File

@@ -20,10 +20,12 @@ import (
"fmt"
"strings"
"testing"
"k8s.io/kubectl/pkg/kustomize/constants"
)
func TestKustomizationError_Error(t *testing.T) {
filepath := "/path/to/kustomize.yaml"
filepath := "/path/to/" + constants.KustomizationFileName
errorMsg := "Kustomization not found"
me := KustomizationError{KustomizationPath: filepath, ErrorMsg: errorMsg}

View File

@@ -19,10 +19,12 @@ package error
import (
"strings"
"testing"
"k8s.io/kubectl/pkg/kustomize/constants"
)
func TestPatchError_Error(t *testing.T) {
filepath := "/path/to/kustomize.yaml"
filepath := "/path/to/" + constants.KustomizationFileName
patchfilepath := "/path/to/patch/patch.yaml"
errorMsg := "file not found"
me := PatchError{KustomizationPath: filepath, PatchFilepath: patchfilepath, ErrorMsg: errorMsg}

View File

@@ -19,10 +19,12 @@ package error
import (
"strings"
"testing"
"k8s.io/kubectl/pkg/kustomize/constants"
)
func TestResourceError_Error(t *testing.T) {
filepath := "/path/to/kustomize.yaml"
filepath := "/path/to/" + constants.KustomizationFileName
resourcefilepath := "/path/to/resource/deployment.yaml"
errorMsg := "file not found"
me := ResourceError{KustomizationPath: filepath, ResourceFilepath: resourcefilepath, ErrorMsg: errorMsg}