Skip to content

Commit

Permalink
add crd to helm and cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-k committed Mar 27, 2019
1 parent 3a7d378 commit 141f229
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions install/helm/gloo/templates/100-gloo-crds.yaml
Expand Up @@ -90,4 +90,22 @@ spec:
scope: Namespaced
version: v1
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: upstreamgroups.gloo.solo.io
annotations:
"helm.sh/hook": crd-install
spec:
group: gloo.solo.io
names:
kind: UpstreamGroup
listKind: UpstreamGroupList
plural: upstreamgroups
shortNames:
- ug
singular: upstreamgroup
scope: Namespaced
version: v1
---
{{- end}}
Expand Up @@ -19,7 +19,7 @@ rules:
resources: ["customresourcedefinitions"]
verbs: ["get", "create"]
- apiGroups: ["gloo.solo.io"]
resources: ["settings", "upstreams", "proxies","virtualservices"]
resources: ["settings", "upstreams","upstreamgroups", "proxies","virtualservices"]
verbs: ["*"]
- apiGroups: ["gateway.solo.io"]
resources: ["virtualservices", "gateways"]
Expand Down
2 changes: 1 addition & 1 deletion projects/gloo/cli/pkg/cmd/install/uninstall_test.go
Expand Up @@ -37,7 +37,7 @@ func (k *MockKubectl) Kubectl(stdin io.Reader, args ...string) error {
var _ = Describe("Uninstall", func() {

const (
deleteCrds = "delete crd gateways.gateway.solo.io proxies.gloo.solo.io settings.gloo.solo.io upstreams.gloo.solo.io virtualservices.gateway.solo.io"
deleteCrds = "delete crd gateways.gateway.solo.io proxies.gloo.solo.io settings.gloo.solo.io upstreams.gloo.solo.io upstreamgroups.gloo.solo.io virtualservices.gateway.solo.io"
)

var flagSet *pflag.FlagSet
Expand Down
1 change: 1 addition & 0 deletions projects/gloo/cli/pkg/cmd/install/util.go
Expand Up @@ -49,6 +49,7 @@ func init() {
"proxies.gloo.solo.io",
"settings.gloo.solo.io",
"upstreams.gloo.solo.io",
"upstreamgroups.gloo.solo.io",
"virtualservices.gateway.solo.io",
}

Expand Down

0 comments on commit 141f229

Please sign in to comment.