-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from layer5io/remove-meshkit
Remove meshkit
- Loading branch information
Showing
13 changed files
with
265 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
run: | ||
tests: true | ||
|
||
linters: | ||
enable: | ||
- goconst | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- golint | ||
- gosec | ||
- govet | ||
- misspell | ||
- unused | ||
- whitespace | ||
|
||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/openservicemesh/osm | ||
|
||
issues: | ||
exclude-rules: | ||
# Ignore error for ginkgo and gomega dot imports | ||
- linters: | ||
- golint | ||
source: ". \"github.com/onsi/(ginkgo|gomega)\"" | ||
text: "dot imports" | ||
# Ignore error for test framework imports | ||
- linters: | ||
- golint | ||
source: ". \"github.com/openservicemesh/osm/tests/framework\"" | ||
text: "dot imports" | ||
# ignore unused linters on keyvault as this code isn't being used | ||
# TODO: disable this rule once keyvault is integrated | ||
- path: pkg/certificate/providers/keyvault/ | ||
linters: | ||
- unused | ||
- deadcode | ||
# Exclude staticcheck messages for deprecated function, variable or constant | ||
# This causes issues with package github.com/golang/protobuf/proto | ||
- linters: | ||
- staticcheck | ||
text: "SA1019:" | ||
exclude-use-default: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.PHONY: go-lint | ||
go-lint: | ||
go run github.com/golangci/golangci-lint/cmd/golangci-lint run --config .golangci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"github.com/layer5io/learn-layer5/smi-conformance/grpc" | ||
"os" | ||
"sigs.k8s.io/controller-runtime/pkg/log" | ||
"time" | ||
|
||
"github.com/layer5io/gokit/logger" | ||
"github.com/layer5io/learn-layer5/smi-conformance/grpc" | ||
) | ||
|
||
func main() { | ||
|
||
service := &grpc.Service{ | ||
Name: "smi-conformance", | ||
Port: "10011", | ||
Version: "v1.0.0", | ||
StartedAt: time.Now(), | ||
} | ||
|
||
// Initialize Logger instance | ||
log, err := logger.New(service.Name) | ||
if err != nil { | ||
fmt.Println("Logger Init Failed", err.Error()) | ||
os.Exit(1) | ||
} | ||
|
||
logger := log.Log.WithName(service.Name) | ||
logger.Info("Conformance tool Started") | ||
// Server Initialization | ||
log.Info("Conformance tool Started") | ||
err = grpc.Start(service) | ||
err := grpc.Start(service) | ||
if err != nil { | ||
log.Err("Conformance tool crashed!!", err.Error()) | ||
logger.Error(err, "Conformance tool crashed!!") | ||
os.Exit(1) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.