Skip to content

Adapt Windows installation script to breaking change in v0.31.1 #3118

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

Closed
wants to merge 7 commits into from
Closed

Adapt Windows installation script to breaking change in v0.31.1 #3118

wants to merge 7 commits into from

Conversation

stefanes
Copy link
Contributor

PR Description

Adapt Windows installation script to breaking change in v0.31.1

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@stefanes stefanes changed the title Stefanes patch 1 Adapt Windows installation script to breaking change in v0.31.1 Feb 28, 2023
@tpaschalis tpaschalis requested review from ptodev and marctc March 7, 2023 10:22
@marctc marctc requested a review from erikbaranowski March 30, 2023 14:21
Copy link
Contributor

@erikbaranowski erikbaranowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @marctc I do not have merge permissions yet so up to you when to merge

@marctc
Copy link
Contributor

marctc commented Mar 31, 2023

Hey @stefanes, do you want fix the conflicts prior merging? thanks

@stefanes
Copy link
Contributor Author

stefanes commented Apr 5, 2023

Not really sure how this is maintained, the installation script downloaded from https://storage.googleapis.com/cloud-onboarding/agent/scripts/grafanacloud-install.ps1 is different from the one on main in this repo...

Not sure if this PR should go in or not, but regardless - I did update my branch with the version from googleapis.com and made a few minor changes:

Write-Host "ERROR: Required argument GCLOUD_API_KEY missing"
exit
if ($GCLOUD_HOSTED_LOGS_URL -eq "") {
Write-Host "ERROR: Required argument GCLOUD_HOSTED_LOGS_URL missing"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to do a throw instead. Please see this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I instead changed it to verify that these parameters has been passed "the PowerShell way" (using [Parameter(Mandatory = $true)).

However, I now see this on main: 11f9010

Not sure what this new mechanism is since the instructions still mentions downloading and running this script: https://storage.googleapis.com/cloud-onboarding/agent/scripts/grafanacloud-install.ps1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I would argue that this script should still be updated with the changes in this PR somehow...

@rfratto
Copy link
Member

rfratto commented Apr 13, 2023

Hi @stefanes, thanks for the PR! Unfortunately, we've removed these scripts from the repo in #3485, so I have to close this PR.

We wanted to take the Grafana Cloud scripts out of this repository as a part of keeping this repo be focused on Grafana Agent as an open-source, vendor-neutral project, so Grafana Cloud scripts are now managed fully by Grafana.

Sorry for how this one turned out, but we do appreciate you taking the time to help keep the code base healthy!

@rfratto rfratto closed this Apr 13, 2023
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Mar 1, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants