Skip to content

Commit 22e7334

Browse files
committed
Fix tests
Signed-off-by: David VIEJO <[email protected]>
1 parent 0cec526 commit 22e7334

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kubectl-hlf/cmd/ca/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type Options struct {
3535
DBType string
3636
DBDataSource string
3737
ImagePullSecrets []string
38+
CredentialStore string
3839
}
3940

4041
func (o Options) Validate() error {
@@ -140,6 +141,7 @@ func (c *createCmd) run(_ []string) error {
140141
Namespace: c.caOpts.NS,
141142
},
142143
Spec: v1alpha1.FabricCASpec{
144+
CredentialStore: v1alpha1.CredentialStore(c.caOpts.CredentialStore),
143145
Database: v1alpha1.FabricCADatabase{
144146
Type: c.caOpts.DBType,
145147
Datasource: c.caOpts.DBDataSource,
@@ -341,6 +343,7 @@ func newCreateCACmd(out io.Writer, errOut io.Writer) *cobra.Command {
341343
f.StringVarP(&c.caOpts.GatewayApiNamespace, "gateway-api-namespace", "", "default", "Namespace of GatewayApi")
342344
f.IntVarP(&c.caOpts.GatewayApiPort, "gateway-api-port", "", 443, "Gateway port of GatewayApi")
343345
f.StringArrayVarP(&c.caOpts.ImagePullSecrets, "image-pull-secrets", "", []string{}, "Image Pull Secrets for the CA Image")
346+
f.StringVarP(&c.caOpts.CredentialStore, "credential-store", "", "kubernetes", "Credential store to use for the CA")
344347
return cmd
345348
}
346349

0 commit comments

Comments
 (0)