From 11511b946ad702099037486ccb3dd6de2de437c0 Mon Sep 17 00:00:00 2001 From: Luwei Ge Date: Mon, 16 Nov 2020 13:03:51 -0500 Subject: [PATCH] fix serviceaccount crd (#101) --- cmd/provision/config.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/provision/config.go b/cmd/provision/config.go index 9c326a6..d1b906a 100644 --- a/cmd/provision/config.go +++ b/cmd/provision/config.go @@ -252,8 +252,8 @@ func (p *provision) createSecretPropertyset(jwk []byte, privateKey []byte, props return err } -func (p *provision) serviceAccountCRD() *server.ConfigMapCRD { - return &server.ConfigMapCRD{ +func (p *provision) serviceAccountCRD() *ServiceAccountCRD { + return &ServiceAccountCRD{ APIVersion: "v1", Kind: "ServiceAccount", Metadata: server.Metadata{ @@ -262,3 +262,9 @@ func (p *provision) serviceAccountCRD() *server.ConfigMapCRD { }, } } + +type ServiceAccountCRD struct { + APIVersion string `yaml:"apiVersion"` + Kind string `yaml:"kind"` + Metadata server.Metadata `yaml:"metadata"` +}