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 Terraform plugin cache, bastion host login user #669

Merged
merged 1 commit into from
Jan 17, 2021
Merged

Conversation

Nuru
Copy link
Sponsor Contributor

@Nuru Nuru commented Jan 17, 2021

what

  1. Change location of Terraform plugin cache from $HOME/.terraform.d/plugins to $HOME/.terraform.d/plugin-cache
  2. [kopsctl] Change bastion host login user from admin to ubuntu
  3. Restore KUBECONFIG environment variable
  4. Ensure $KUBCONFIG exists with no group or world read permissions
  5. Attempt to disable dependabot PRs

why

  1. $HOME/.terraform.d/plugins is an implied Terraform mirror directory and using it as a plugin cache breaks both the cache and the mirror
  2. kops switched default OS from Debian (with default user admin) to Ubuntu (with default user ubuntu)
  3. Kubernetes prompt from kube-ps1 is disabled if $KUBECONFIG is empty at startup, and kubectl complains if $KUBECONFIG does not exist
  4. kubectl complains if $KUBECONFIG is group or world readable
  5. Not sure exactly why or how dependabot PRs were enabled, but they duplicate the PRs created by Renovate, so they add unnecessary noise

notes

Officially, $KUBECONFIG is a list of possible files to use for configuration, but Geodesic assumes in many places that it points to only a single file. (Issue #457)

references

@Nuru Nuru requested a review from a team as a code owner January 17, 2021 01:04
@Nuru Nuru merged commit 9928adb into master Jan 17, 2021
@Nuru Nuru deleted the tf-cache branch January 17, 2021 01:51
leb4r pushed a commit that referenced this pull request Jan 25, 2022
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