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

Update Dependencies, add OpenTofu package repo #936

Merged
merged 4 commits into from
May 4, 2024
Merged

Update Dependencies, add OpenTofu package repo #936

merged 4 commits into from
May 4, 2024

Conversation

Nuru
Copy link
Sponsor Contributor

@Nuru Nuru commented May 4, 2024

Breaking Changes

  • Google Cloud SDK is no longer pre-installed. The Google Cloud Debian package repository is installed, so you can install it into Debian with apt-get.
  • AWS CLI v1 is no longer installed in Debian. The CLI v2 has been the default for Debian Geodesic for almost 3 years, so this should not impact many people, if any.
  • Python dependencies of AWS CLI v2 (including boto3) are also no longer pre-installed on Debian.

what

All OSes

  • Update repository default branch name master -> main
  • Google Cloud SDK is no longer installed

Debian only

  • Update Debian 12.4 -> 12.5
  • Update Python 3.12.2 -> 3.12.3
  • Add OpenTofu Debian package repository
  • Pin kubectl package to Cloud Posse repository over Google Cloud SDK repository

Alpine only

  • Update bindfs on Alpine 1.17.6 -> 1.17.7
  • Install Alpine v3.19 community package repo as @opentofu

why

  • Branch name: Conform to Cloud Posse and GitHub standards.
  • The google-cloud-sdk package is deprecated in favor of google-cloud-cli and additional packages. For example, the current version of the Google Cloud CLI is 474.0.0, but the latest google-cloud-sdk package version is 467.0.0.
  • Recent releases of Google Cloud SDK (474.0.0, 473.0.0, and 470.0.0) have had breaking changes, making it important that users have control over which version they use and when they change versions. There is no longer a single good choice of which version to install, so Cloud Posse does not want force one on anyone.
  • Reduce size of distributed Docker image.
  • Debian version, Debian Python version, Alpine BindFS version: Stay current.
  • Enable OpenTofu to be installed easily:
    • On Debian: apt-get update && apt-get install tofu (or ... tofu=1.6.2)
    • On Alpine: apk update && apk add opentofu@opentofu
  • Google Cloud SDK package repo has a package named kubectl that installs multiple versions of kubectl, causing excessive bloat. Cloud Posse's kubectl package installs only the latest version, sufficient for kubectl-auto-select to determine and install the correct version for your cluster. Cloud Posse provides kubectl-1.x packages which take advantage of the Debian Alternatives system to allow both versions to be present but automatically select the more specific package's version to be used by default, but this feature is not compatible with Google's package.

references

Comment on lines 24 to 29
Example:
# Load the latest version of kube-prometheus standard Kubernetes Grafana dashboards, replacing any already uploaded
grafana-db --overwrite https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/master/manifests/grafana-dashboardDefinitions.yaml
grafana-db --overwrite https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/main/manifests/grafana-dashboardDefinitions.yaml

# Load the Kubernetes Capacity dashboard with gnetId 5228 from Grafana.com
grafana-db 5228
Copy link
Member

Choose a reason for hiding this comment

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

I think we should drop this script. We haven't used it in many years.

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

We have seen renewed interest in Grafana in just the past few weeks. Let's leave this in for now and revisit in 3 months.

@Nuru Nuru merged commit 55a609d into main May 4, 2024
6 checks passed
@Nuru Nuru deleted the open-tofu-repo branch May 4, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants