Skip to content

Commit

Permalink
Revert "qfix: add missed dnsconfigs (networkservicemesh#141)"
Browse files Browse the repository at this point in the history
This reverts commit edaa6f4.

Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin committed May 30, 2022
1 parent edaa6f4 commit 5cf5f7b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 188 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,7 @@ jobs:
name: Check generated files
runs-on: ubuntu-latest
steps:
- name: Setup envs
run: |
echo GOPATH=$GITHUB_WORKSPACE >> $GITHUB_ENV
echo GO111MODULE=on >> $GITHUB_ENV
echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH
- name: Check out code
uses: actions/checkout@v2
with:
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- uses: actions/checkout@v2
- uses: arduino/setup-protoc@master
with:
version: '3.14.0'
Expand All @@ -113,11 +105,9 @@ jobs:
go-version: 1.18.1
- name: Generate files
run: go generate ./...
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- name: Check for changes in generated code
run: |
git diff -- '*.pb.go' || (echo "Rerun go generate ./... locally and resubmit" && exit -1)
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}
excludereplace:
name: Exclude replace in go.mod
Expand Down
213 changes: 47 additions & 166 deletions pkg/api/dns/dns.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 3 additions & 11 deletions pkg/api/dns/dns.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ syntax = "proto3";
package dns;
option go_package = "github.com/networkservicemesh/api/pkg/api/dns";

import "github.com/networkservicemesh/api/pkg/api/networkservice/connectioncontext.proto";
import "google/protobuf/empty.proto";

enum Type {
UNDEFINED = 0;
ASSIGN = 1;
Expand All @@ -32,18 +29,13 @@ enum Type {
message DNSRequest {
Type type = 1;
map<string, string> labels = 2;
repeated string ips = 3;
string ip = 3;
}

message DNSResponse {
repeated string names = 1;
}

message Configs {
repeated connectioncontext.DNSConfig configs = 1;
string name = 1;
}

service DNS {
rpc FetchConfigs(google.protobuf.Empty) returns (Configs);
service DNS {
rpc ManageNames (stream DNSRequest) returns (stream DNSResponse);
}

0 comments on commit 5cf5f7b

Please sign in to comment.