Skip to content

Commit

Permalink
Kubectl plugin, parameters for the peer and gossip state transfer by …
Browse files Browse the repository at this point in the history
…default (#5)

- Kubectl plugin
- Enable Gossip state transfer by default
- Parametrise peer with storage
- Decouple service creation from peer manifests
- Create external peers and orderers from the command line
- Add goreleaser
- Add credits
- Add genesis channel parameters
* Add golangci lint
  • Loading branch information
Dviejopomata authored Dec 19, 2020
1 parent 25f8b03 commit 7ac362c
Show file tree
Hide file tree
Showing 83 changed files with 29,360 additions and 2,045 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
bin
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ bin

crypto-config
keystore
miscertificados

kubectl-hlf/kubectl-hlf
*.minisig
*.zip
dist/
37 changes: 37 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
run:
skip-dirs:
- internal

linters-settings:
golint:
min-confidence: 0

misspell:
locale: US

linters:
enable:
- typecheck
- goimports
- misspell
- govet
- golint
- ineffassign
- gosimple
- deadcode
- structcheck

issues:
exclude-use-default: false
exclude:
- should have a package comment
- error strings should not be capitalized or end with punctuation or a newline
exclude-rules:
# Exclude linters from running on auto-generated files.
- path: pkg/client
linters:
- golint
- deadcode

service:
golangci-lint-version: 1.27.0 # use the fixed version to not introduce new linters unexpectedly
72 changes: 72 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: hlf-operator

release:
name_template: "Version {{.Version}}"
github:
owner: kfsoftware
name: hlf-operator
extra_files:
- glob: "*.minisig"
- glob: "*.zip"

before:
hooks:
- go mod tidy
- go mod download

builds:
-
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Tag}}
flags:
- -trimpath
hooks:
post: ./package.sh {{ .Path }}
-
id: kubectl-hlf
dir: kubectl-hlf
binary: kubectl-hlf
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Tag}}
flags:
- -trimpath
hooks:
post: ./package.sh {{ .Path }}

archives:
-
format: binary
allow_different_binary_count: true

dockers:
-
# GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "quay.io/kfsoftware/hlf-operator:{{ .Tag }}"
- "quay.io/kfsoftware/hlf-operator:latest"
extra_files:
- charts
- LICENSE
- README.md
- CREDITS
Loading

0 comments on commit 7ac362c

Please sign in to comment.