Skip to content

Commit

Permalink
add more logging and switch consul image
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava committed Oct 19, 2022
1 parent dc13139 commit f092e46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ jobs:
- run: mkdir -p $TEST_RESULTS
- run-acceptance-tests:
failfast: true
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -consul-image=hashicorppreview/consul-enterprise:1.14-dev
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -consul-image=ishustava/consul:latest@sha256:3985a25200ef3f593c75ffbbbadc9fcc3a1d07da4aafb2222ab65e9e893d468a
- store_test_results:
path: /tmp/test-results
- store_artifacts:
Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
- run: mkdir -p $TEST_RESULTS
- run-acceptance-tests:
failfast: true
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -enable-transparent-proxy -consul-image=hashicorppreview/consul-enterprise:1.14-dev
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -enable-transparent-proxy -consul-image=ishustava/consul:latest@sha256:3985a25200ef3f593c75ffbbbadc9fcc3a1d07da4aafb2222ab65e9e893d468a
- store_test_results:
path: /tmp/test-results
- store_artifacts:
Expand Down Expand Up @@ -585,7 +585,7 @@ jobs:
- run: mkdir -p $TEST_RESULTS
- run-acceptance-tests:
failfast: true
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -enable-transparent-proxy -enable-cni
additional-flags: -use-kind -kubecontext="kind-dc1" -secondary-kubecontext="kind-dc2" -enable-transparent-proxy -enable-cni -consul-image=ishustava/consul:latest@sha256:3985a25200ef3f593c75ffbbbadc9fcc3a1d07da4aafb2222ab65e9e893d468a
- store_test_results:
path: /tmp/test-results
- store_artifacts:
Expand Down
7 changes: 6 additions & 1 deletion control-plane/subcommand/connect-init/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,12 @@ func (c *Command) applyTrafficRedirectionRules(svc *api.AgentService) error {
}

// Configure any relevant information from the proxy service
return iptables.Setup(c.iptablesConfig)
err = iptables.Setup(c.iptablesConfig)
if err != nil {
return err
}
c.logger.Info("Successfully applied traffic redirection rules")
return nil
}

const synopsis = "Inject connect init command."
Expand Down

0 comments on commit f092e46

Please sign in to comment.