Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installer #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix installer #70

wants to merge 1 commit into from

Conversation

AlecIsaacson
Copy link

@AlecIsaacson AlecIsaacson commented Dec 18, 2024

The installer script throws an error and then fails silently.

The call to tk init tries to force the k8s version to 1.22, which is no longer supported by k8s-libsonnet. This results in a Golang panic because the 1.22 files aren't found. The panic doesn't seem to block the installation, but it's there on the screen for all to see. This is fixed by removing the command line argument that forces the version to 1.22.

Later in the script, the bash read command is used to generate a dynamic config for the Grafana instrumentation.. The read works as expected, generating the dynamic config. However, by design when read finishes and encounters the EOF marker, it sets the errorlevel to 1. Because the -e option is set, even though no real error condition exists, the script exits rather than deploy the app. This is fixed by removing the read stanza and replacing it with an environment variable and command substitution.

@CLAassistant
Copy link

CLAassistant commented Dec 18, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants