Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit de531b5

Browse files
committed
Added kudo #3489
1 parent 1eed2a3 commit de531b5

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

@template/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#syntax=docker/dockerfile:1.5.2
22

33
ARG ref=main
4-
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
54

5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,6 +2936,17 @@
29362936
"datasourceTemplate": "github-releases",
29372937
"extractVersionTemplate": "^v(?<version>.+?)$"
29382938
},
2939+
{
2940+
"fileMatch": [
2941+
"^tools/kudo/manifest.yaml$"
2942+
],
2943+
"matchStrings": [
2944+
"version: \"?(?<currentValue>.*?)\"?\\n"
2945+
],
2946+
"depNameTemplate": "kudobuilder/kudo",
2947+
"datasourceTemplate": "github-releases",
2948+
"extractVersionTemplate": "^v(?<version>.+?)$"
2949+
},
29392950
{
29402951
"fileMatch": [
29412952
"^tools/kustomize/manifest.yaml$"

tools/kudo/Dockerfile.template

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
case "${alt_arch}" in
10+
amd64)
11+
export arch_suffix="${arch}"
12+
;;
13+
arm64)
14+
export arch_suffix="${alt_arch}"
15+
;;
16+
*)
17+
echo "ERROR: Unsupported architecture (${alt_arch})."
18+
exit 1
19+
;;
20+
esac
21+
22+
curl --silent --location --fail "https://github.com/kudobuilder/kudo/releases/download/v${version}/kudo_${version}_linux_${arch_suffix}.tar.gz" \
23+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
24+
kubectl-kudo
25+
EOF

tools/kudo/manifest.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: kudo
2+
version: "0.19.0"
3+
binary: kubectl-kudo
4+
check: ${binary} --version | cut -d' ' -f3
5+
platforms:
6+
- linux/amd64
7+
- linux/arm64
8+
tags:
9+
- category/development
10+
- lang/go
11+
- type/cli
12+
- type/plugin
13+
homepage: https://github.com/kudobuilder/kudo
14+
description: Kubernetes Universal Declarative Operator
15+
renovate:
16+
datasource: github-releases
17+
package: kudobuilder/kudo
18+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)