use ObjectMeta instead of name and namespace fields

This commit is contained in:
Seth Pollack
2019-06-29 23:28:56 -04:00
parent 558be8b923
commit 2126b6cf23
18 changed files with 77 additions and 54 deletions

View File

@@ -23,8 +23,8 @@ func TestSomeServiceGeneratorPlugin(t *testing.T) {
apiVersion: someteam.example.com/v1
kind: SomeServiceGenerator
metadata:
name: myGenerator
name: my-service
name: my-service
namespace: test
port: "12345"
`)
th.AssertActualEqualsExpected(m, `
@@ -34,6 +34,7 @@ metadata:
labels:
app: dev
name: my-service
namespace: test
spec:
ports:
- port: 12345