Skip to content

Commit

Permalink
fix serviceaccount crd (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockspore authored Nov 16, 2020
1 parent 9a61d86 commit 11511b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/provision/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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"`
}

0 comments on commit 11511b9

Please sign in to comment.