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"` +}