Skip to content

Conversation

@tonglil
Copy link
Member

@tonglil tonglil commented Aug 21, 2019

No need to specify which version of the SDK since the original intent was to support multiple kubectl versions at the same time (see #90).

Thought about this as I was preparing to tag a release.

@tonglil tonglil requested review from a team and montmanu August 21, 2019 01:27
Copy link
Contributor

@montmanu montmanu left a comment

Choose a reason for hiding this comment

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

LGTM, though I wonder whether we might prefer to preserve the flexibility enabled by the build arg .. ?

In other words, we could just remove the publish_${major}_${minor} drone steps and leave the GCLOUD_SDK_TAG build arg implementation unchanged.. Seems that would achieve the objective of this PR (always building / publishing from latest upstream alpine) without impacting our ability to easily build (and publish) from other base images.. some example uses cases:

  • programmatically build multiple versions locally to aid with the debugging / testing of upstream releases
  • build / publish a drone-gke:slim variant from the upstream's slim variant that selectively preinstalls additional components (via it's INSTALL_COMPONENTS build arg) for user's with non-alpine requirements
  • build / publish a drone-gke:debug variant from the upstream's latest variant to include the kitchen sink of preinstalled components (e.g., for experimenting w/ krew plugins that interact with non-gke APIs)
  • etc..

i don't feel too strongly either way, just figured i'd mention it!

@tonglil
Copy link
Member Author

tonglil commented Aug 21, 2019

Sounds good, kept that in.

README.md Outdated
The last two-three minor releases are supported ([same as GKE](https://cloud.google.com/kubernetes-engine/versioning-and-upgrades)).
Since the [237.0.0 (2019-03-05) Google Cloud SDK][sdk], the container image contains multiple versions of `kubectl`.
The corresponding client version that matches the cluster version will be used automatically.
This follows the minor release support that ([GKE offers](https://cloud.google.com/kubernetes-engine/versioning-and-upgrades)).
Copy link
Member

Choose a reason for hiding this comment

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

are the parentheses around GKE offers intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right it's not.

@mlclmj
Copy link
Member

mlclmj commented Aug 23, 2019

whoops sorry about the double approve

@tonglil tonglil merged commit 6ac83b9 into master Aug 26, 2019
@tonglil tonglil deleted the refactor-build branch August 26, 2019 17:40
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.

3 participants