blob: 945ea57d189c497925756d2427d13436f4eacc86 (
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=501.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=('dc867c22a3858f5d94b85513f96f61568c6e21d3b312fe758ca224739bf3b18c')
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"
}
|