blob: 4ee461d5d0c9b03031a3661f0708df896d1d138e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Winston Astrachan <winston dot astrachan at gmail dot com>
pkgname=google-cloud-cli-gke-gcloud-auth-plugin
pkgver=502.0.0
pkgrel=1
pkgdesc="A google-cloud-cli component that provides a kubectl authentication plugin for GKE."
arch=('x86_64')
url="https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke"
license=('Apache-2.0')
depends=('google-cloud-cli' 'kubectl>=1.26')
options=('!strip')
source=("https://dl.google.com/dl/cloudsdk/release/downloads/for_packagers/linux/${pkgname}_${pkgver}.orig_amd64.tar.gz")
sha256sums=('2a3efaf7c26cdfa20799c38bc5139be4ef57cfc29d1797ba0674c047a0dd39b4')
package() {
cd "$srcdir/google-cloud-sdk" # Does not match naming convention google-cloud-cli
# Install plugin manifests and snapshots
manifests=(
"gke-gcloud-auth-plugin-linux-${CARCH}.manifest"
"gke-gcloud-auth-plugin-linux-${CARCH}.snapshot.json"
"gke-gcloud-auth-plugin.manifest"
"gke-gcloud-auth-plugin.snapshot.json"
)
for item in ${manifests[@]}; do
install -Dm644 \
".install/${item}" \
"${pkgdir}/opt/google-cloud-cli/.install/${item}"
done
# Install plugin binary
install -Dm755 \
"bin/gke-gcloud-auth-plugin" \
"${pkgdir}/opt/google-cloud-cli/bin/gke-gcloud-auth-plugin"
# Symlink plugin binary
install -dm755 "${pkgdir}/usr/bin/"
ln -s \
"/opt/google-cloud-cli/bin/gke-gcloud-auth-plugin" \
"${pkgdir}/usr/bin/gke-gcloud-auth-plugin"
}
|