Port forwarding error immediately after installing the GitOps Dashboard not on the same run when installing Flux #2497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2489
It looks like the bug was caused by a big "typo": when moving the "wait for dashboard ready"code to a separate file, I copied only the wait for reconciliation code, twice. 馃う
So, I've added code to wait for the dashboard reconciliation and pod running properly. It is working as expected now.
Questions:
I also have some old code which seems to work for our purpose, but it uses a HelmRelease:
But I think it's better to use the pod instead of the HelmRelease, correct?
Is it OK to add getting the pod the way I did with
GetPodFromSpecMap
? Because I don't actually need the whole specmap.Also added getting any type of pods, including non-running pods with
GetPodFromSpecMap
.@chanwit, @ozamosi are you OK with that or do you know of a better way? Would it be better to wait for the deployment object ready instead? If yes, how can I get it?
ww-gitops-weave-gitops-96b7c495f-vsp8c
and names without this suffix do not work.So, if you know how to get the pod directly with kubeClient based on the name without the suffix, I would not need to use
GetPodFromSpecMap
.