-
Notifications
You must be signed in to change notification settings - Fork 4
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 #5 from ilrudie/setHeaderRoute
initial implementation of setHeaderRoute behavior
- Loading branch information
Showing
11 changed files
with
705 additions
and
571 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: | ||
- "main" | ||
env: | ||
GOLANG_VERSION: '1.19' | ||
GOLANG_VERSION: '1.23' | ||
|
||
jobs: | ||
unit-tests: | ||
|
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
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,52 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Rollout | ||
metadata: | ||
name: gloo-rollouts-demo | ||
namespace: gloo-rollouts-demo | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: gloo-rollouts-demo | ||
template: | ||
metadata: | ||
labels: | ||
app: gloo-rollouts-demo | ||
spec: | ||
containers: | ||
- image: argoproj/rollouts-demo:blue | ||
imagePullPolicy: IfNotPresent | ||
name: gloo-rollouts-demo | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
strategy: | ||
canary: | ||
canaryService: canary | ||
stableService: stable | ||
trafficRouting: | ||
# managedRoutes are required for using setHeaderRoute | ||
# routes specified here are owned by the plugin | ||
# the plugin will create/delete these routes as needed | ||
# do not specify routes which are already otherwise in use under this field | ||
managedRoutes: | ||
- name: header-canary | ||
plugins: | ||
solo-io/glooplatform: | ||
routeTableSelector: | ||
labels: | ||
app: demo | ||
namespace: gloo-mesh | ||
steps: | ||
- setWeight: 10 | ||
- setHeaderRoute: | ||
match: | ||
- headerName: version | ||
headerValue: | ||
exact: canary | ||
name: header-canary | ||
- pause: {} | ||
- setWeight: 100 |
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.