argoproj-labs / argocd-agent

Redefining the multi cluster story of Argo CD
Apache License 2.0
81 stars 15 forks source link

fix-demo: misc demo related fixes #204

Closed mikeshng closed 1 month ago

mikeshng commented 1 month ago

I've tried to setup the demo/dev env and encountered a few issues. This PR is to address those issues:

1) When I ran the setup-vcluster-env.sh script, got the following error:

  --> Creating vcluster control-plane
18:40:36 fatal unknown flag: --switch-context
ERROR: Error occurred, terminating.

switch-context is no longer a valid flag for vcluster create in vcluster version 0.20.1 stable and there are no similar replacement flags. After I removed the flag, the script ran fine and ultimately the demo/dev env setup was successful so for now I think it's safe to remove this flag.

2) When I ran the start-* scripts, I got the following error:

set: Illegal option -o pipefail

The pipefail option seems to be a bash specific feature. I've added the bash shebang in this PR. Also added the set x to start-agent-autonomous.sh to be consistent with the other start scripts.

3) misc demo README fixes for consistency.

jannfis commented 1 month ago

It's weird that the --switch-context is not available in v0.20.1, because it's been introduced in v0.20.0 :thinking:

I just upgraded from v0.20.0 to v0.20.1 to see the switch being gone.

mikeshng commented 1 month ago

@jannfis if you have some cycles, could you PTAL again? I want to add some ocm-io addon steps to this doc and I want to avoid having to deal with conflicts.

jannfis commented 1 month ago

Sure, sorry for the delay @mikeshng. I was wondering about the impact of removing --switch-context without any replacement. I think we had to either switch back context manually, or use --connect=false.

Let me run a quick test.

jannfis commented 1 month ago

OK, it seems to still work as expected.