linkerd2/cli/cmd
Steve Jenson 309e8d1210
Validate CNI configurations during pod startup (#9678)
When users use CNI, we want to ensure that network rewriting inside the pod is setup before allowing linkerd to start. When rewriting isn't happening, we want to exit with a clear error message and enough information in the container log for the administrator to either file a bug report with us or fix their configuration.

This change adds a validator initContainer to all injected workloads, when linkerd is installed with "cniEnabled=false". The validator replaces the noop init container, and will prevent pods from starting up if iptables is not configured.

Part of #8120

Signed-off-by: Steve Jenson <stevej@buoyant.io>
2022-10-26 11:14:45 +01:00
..
testdata Validate CNI configurations during pod startup (#9678) 2022-10-26 11:14:45 +01:00
alpha.go Remove SMI-Metrics charts and commands (#4843) 2020-08-24 14:35:33 -07:00
authz.go Update authz help text to indicate that it shows all authorizations (#9235) 2022-08-22 15:01:36 -07:00
check.go Add HttpRoute CRD (#8675) 2022-06-29 09:50:23 -07:00
check_test.go Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
completion.go Add support for server resource aware completion (#6091) 2021-05-18 09:59:59 -04:00
completion_test.go build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (#8717) 2022-06-24 10:47:28 -07:00
controller-metrics.go Remove linkerd-viz dependency from linkerd-mutlicluster `gateways` command (#8467) 2022-05-31 13:51:38 -06:00
diagnostics.go Add diagnostics policy command (#9513) 2022-10-07 16:43:24 -07:00
doc.go Added missing proxy annotations in docs (#9440) 2022-09-23 16:32:34 -05:00
endpoints.go Fix --api-addr flag to be respected (#9270) 2022-09-23 13:28:27 -07:00
endpoints_test.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00
identity.go enable `staticcheck` (#8037) 2022-03-10 15:43:35 -08:00
inject.go inject: add `config.linkerd.io/shutdown-grace-period` annotation (#8923) 2022-07-19 14:43:38 -07:00
inject_test.go Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
inject_util.go Add `gosec` and `errcheck` lints (#7954) 2022-03-03 10:09:51 -07:00
install-cni-plugin.go go: Enable `errorlint` checking (#7885) 2022-02-16 18:32:19 -07:00
install-cni-plugin_test.go test: Diff structured YAML when possible (#8432) 2022-05-10 08:40:29 -07:00
install.go Add PodMonitor resources to the Helm chart (#9113) 2022-10-04 06:19:23 -05:00
install_cni_helm_test.go test: Diff structured YAML when possible (#8432) 2022-05-10 08:40:29 -07:00
install_helm_test.go policy: Remove `gateway.networking.k8s.io` `HTTPRoute` CRD (#8959) 2022-07-25 13:23:02 -07:00
install_test.go Validate CNI configurations during pod startup (#9678) 2022-10-26 11:14:45 +01:00
main_test.go viz: add render golden tests (#5433) 2021-01-12 11:59:16 +05:30
metrics.go feat(cli): add obfuscate flag for diagnostics proxy-metrics cmd (#7442) 2021-12-10 09:54:36 -08:00
metrics_diagnostics_util.go Remove linkerd-viz dependency from linkerd-mutlicluster `gateways` command (#8467) 2022-05-31 13:51:38 -06:00
metrics_diagnostics_util_test.go Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
options.go Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
policy.go Add diagnostics policy command (#9513) 2022-10-07 16:43:24 -07:00
profile.go values: removal of .global field (#5699) 2021-02-11 23:38:34 +05:30
profile_test.go Bump helm.sh/helm/v3 from 3.4.1 to 3.6.1 (#6286) 2021-06-18 09:34:29 -06:00
range_slice.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
range_slice_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
root.go Delete repair command (#7600) 2022-01-13 10:38:50 -08:00
test_helper.go Enable gocritic linting (#7906) 2022-02-17 22:45:25 +00:00
uninject.go Remove namespace from charts and split them into `linkerd-crd` and `linkerd-control-plane` (#6635) 2021-12-10 15:53:08 -05:00
uninject_test.go test: Diff structured YAML when possible (#8432) 2022-05-10 08:40:29 -07:00
uninstall.go Upgrade golangci-lint (#7338) 2021-11-23 12:54:47 -07:00
upgrade.go Add HttpRoute CRD (#8675) 2022-06-29 09:50:23 -07:00
upgrade_test.go Replace usage of io/ioutil package (#9613) 2022-10-13 12:10:58 -05:00
version.go Removed `Version` API from the public-api (#6000) 2021-04-16 11:23:55 -05:00