Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added custom analyzer config #30

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ env:
GO_VERSION: 1.19.3

jobs:
lint-protos:
runs-on: ubuntu-latest
steps:
# Install the `buf` CLI
- uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v3
# Lint your Protobuf sources
- uses: bufbuild/buf-lint-action@v1
with:
input: protobuf
# lint-protos:
# runs-on: ubuntu-latest
#steps:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why commeting these steps?

# Install the `buf` CLI
# - uses: bufbuild/buf-setup-action@v1
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Checkout repository
# uses: actions/checkout@v3
# Lint your Protobuf sources
#- uses: bufbuild/buf-lint-action@v1
# with:
# input: protobuf

buf-format:
runs-on: ubuntu-latest
Expand All @@ -45,8 +45,8 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v3
# Run breaking change detection against the last commit
# Run breaking change detection against the last commit
- uses: bufbuild/buf-breaking-action@v1
with:
input: protobuf
against: 'https://github.com/k8sgpt-ai/schemas.git#branch=main,ref=HEAD~1,subdir=protobuf'
against: "https://github.com/k8sgpt-ai/schemas.git#branch=main,ref=HEAD~1,subdir=protobuf"
12 changes: 12 additions & 0 deletions protobuf/schema/v1/server-service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ message AnalysisItem {
message AddConfigRequest {
Cache cache = 1;
Integrations integrations = 2;
repeated CustomAnalyzer custom_analyzers = 3;
}

message AddConfigResponse {
Expand All @@ -72,6 +73,7 @@ message AddConfigResponse {
message RemoveConfigRequest {
Cache cache = 1;
Integrations integrations = 2;
repeated CustomAnalyzer custom_analyzers = 3;
}

message RemoveConfigResponse {
Expand All @@ -86,6 +88,16 @@ message Cache {
}
}

message CustomAnalyzer {
string name = 1;
Connection connection = 2;
}

message Connection {
string url = 1;
string port = 2;
}

message S3Cache {
string region = 1;
string bucket_name = 2;
Expand Down
Loading