forked from linkerd/linkerd2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add default-inbound-policy to inject flags
PR linkerd#6750 adds the config.linkerd.io/default-inbound-policy annotation for setting the default inbound policy for an injected proxy. This commit adds support for a default-inbound-policy flag in makeProxyFlags so that it can be set with the linkerd inject command. Closes linkerd#6754 Signed-off-by: ahmedalhulaibi <ahmed.alhulaibi41@gmail.com> tests: use all-authenticated constant
- Loading branch information
1 parent
8ddba7a
commit 99776d8
Showing
9 changed files
with
112 additions
and
0 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
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
3 changes: 3 additions & 0 deletions
3
cli/cmd/testdata/inject_emojivoto_deployment_default_inbound_policy.golden.report
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 @@ | ||
|
||
deployment "web" injected | ||
|
10 changes: 10 additions & 0 deletions
10
cli/cmd/testdata/inject_emojivoto_deployment_default_inbound_policy.golden.report.verbose
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,10 @@ | ||
|
||
√ pods do not use host networking | ||
√ pods do not have a 3rd party proxy or initContainer already injected | ||
√ pods are not annotated to disable injection | ||
√ at least one resource can be injected or annotated | ||
√ pod specs do not include UDP ports | ||
√ pods do not have automountServiceAccountToken set to "false" or service account token projection is enabled | ||
|
||
deployment "web" injected | ||
|
34 changes: 34 additions & 0 deletions
34
cli/cmd/testdata/inject_emojivoto_deployment_default_inbound_policy.golden.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
cli/cmd/testdata/inject_emojivoto_pod_default_inbound_policy.golden.report
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 @@ | ||
|
||
pod "vote-bot" injected | ||
|
10 changes: 10 additions & 0 deletions
10
cli/cmd/testdata/inject_emojivoto_pod_default_inbound_policy.golden.report.verbose
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,10 @@ | ||
|
||
√ pods do not use host networking | ||
√ pods do not have a 3rd party proxy or initContainer already injected | ||
√ pods are not annotated to disable injection | ||
√ at least one resource can be injected or annotated | ||
√ pod specs do not include UDP ports | ||
√ pods do not have automountServiceAccountToken set to "false" or service account token projection is enabled | ||
|
||
pod "vote-bot" injected | ||
|
20 changes: 20 additions & 0 deletions
20
cli/cmd/testdata/inject_emojivoto_pod_default_inbound_policy.golden.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.