Skip to content

Commit

Permalink
Merge pull request #208 from 0xff-dev/main
Browse files Browse the repository at this point in the history
fix: should always set InitRequired to false during chaincode deployment
  • Loading branch information
bjwswang authored Mar 22, 2023
2 parents 806d095 + 0e1e949 commit 13fbecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1beta1/chaincode_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ type ChaincodeSpec struct {
// current version
Version string `json:"version,omitempty"`
// +kubebuilder:validation:Pattern:=`^[[:alnum:]][[:alnum:]-]*$`
Label string `json:"label,omitempty"`
InitRequired bool `json:"initRequired"`
Label string `json:"label,omitempty"`
// +kubebuilder:validation:Enum=false
InitRequired bool `json:"initRequired"`

EndorsePolicyRef `json:"endorsePolicyRef"`
// ExternalBuilder used, default is k8s
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/ibp.com_chaincodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ spec:
- name
type: object
initRequired:
enum:
- false
type: boolean
label:
pattern: ^[[:alnum:]][[:alnum:]-]*$
Expand Down

0 comments on commit 13fbecc

Please sign in to comment.