-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Adding the routing policy Co-authored-by: psikka1 <[email protected]> Co-authored-by: vgonuguntla <[email protected]>
- Loading branch information
1 parent
42e10d3
commit 4378d0a
Showing
48 changed files
with
2,254 additions
and
59 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 |
---|---|---|
|
@@ -32,6 +32,7 @@ CUSTOM_RESOURCE_VERSION=v1 | |
|
||
MAIN_PATH_ADMIRAL=./admiral/cmd/admiral/main.go | ||
OPSYS:=$(shell $(GOCMD) env GOOS) | ||
DEEPCOPYGEN=deepcopy-gen | ||
|
||
PATH:=$(GOBIN):$(PATH) | ||
|
||
|
@@ -56,8 +57,10 @@ dep: | |
setup: | ||
$(GOGET) -u github.com/golang/protobuf/[email protected] | ||
|
||
model-gen: | ||
$(DEEPCOPYGEN) -i ./admiral/pkg/apis/admiral/model/ -O zz_generated.deepcopy | ||
|
||
gen-all: api-gen crd-gen | ||
gen-all: api-gen model-gen crd-gen | ||
|
||
install-protoc-mac: | ||
curl -OL https://github.com/google/protobuf/releases/download/v$(PROTOC_VER)/$(PROTOC_ZIP) | ||
|
@@ -167,4 +170,5 @@ gen-yaml: | |
cp ./install/sample/gtp_topology.yaml ./out/yaml/gtp_topology.yaml | ||
cp ./install/sample/grpc-client.yaml ./out/yaml/grpc-client.yaml | ||
cp ./install/prometheus/prometheus.yaml ./out/yaml/prometheus.yaml | ||
cp ./install/scripts/*.sh ./out/scripts/ | ||
cp ./install/sample/rp.yaml ./out/yaml/rp.yaml | ||
cp ./install/scripts/*.sh ./out/scripts/ |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: routingpolicies.admiral.io | ||
spec: | ||
group: admiral.io | ||
version: v1alpha1 | ||
names: | ||
kind: RoutingPolicy | ||
plural: routingpolicies | ||
shortNames: | ||
- rp | ||
- rps | ||
scope: Namespaced |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
|
||
package admiral.global.v1alpha; | ||
|
||
option go_package = "model"; | ||
|
||
//``` | ||
// apiVersion: admiral.io/v1alpha1 | ||
// kind: RoutingPolicy | ||
// metadata: | ||
// name: greeting-routing-policy | ||
// annotations: | ||
// admiral.io/env: stage | ||
// labels: | ||
// identity: greeting | ||
// spec: | ||
// plugin: greeting | ||
// hosts: | ||
// - qal.greeting.mesh | ||
// config: | ||
// cachePrefix: cache-v1 | ||
// cachettlSec: "86400" | ||
// dispatcherUrl: qal.greeting.dispatcher.mesh | ||
// algo: greetingDispatcher | ||
// pathPrefix: "/wpcatalog,/consumercatalog,/v1/company/{id}/auth/hydrate,/consumercatalog" | ||
//``` | ||
|
||
message RoutingPolicy { | ||
string plugin = 1; | ||
repeated string hosts = 2; | ||
map<string, string> config = 3; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
admiral/pkg/client/clientset/versioned/typed/admiral/v1/admiral_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
admiral/pkg/client/clientset/versioned/typed/admiral/v1/fake/fake_admiral_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.