Skip to content

Commit c5b53cc

Browse files
Linking container images to releases and remove gcloud image build (#4628)
* Linking container images and remove gcloud image build Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Remove kpt-gcloud images from the documentation Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> * Applying comments from Copilot review Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com> Assisted-by: GitHub Copilot: Claude Haiku 4.5 --------- Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
1 parent d30910b commit c5b53cc

3 files changed

Lines changed: 9 additions & 53 deletions

File tree

‎documentation/content/en/installation/kpt-cli.md‎

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ Use one of the kpt docker images.
8686

8787
Running kpt via Docker does not install kpt on your machine. Each `docker run ...` invocation starts a temporary container, runs the command inside that container, prints output, and then exits.
8888

89-
| Feature | `kpt` | `kpt-gcloud` |
90-
| --------- | :---: | :----------: |
91-
| kpt | ✓ | ✓ |
92-
| git | ✓ | ✓ |
93-
| diffutils | ✓ | ✓ |
94-
| gcloud | | ✓ |
95-
9689
### `kpt`
9790

9891
```shell
@@ -116,25 +109,7 @@ This pattern ensures kpt reads and writes files under `/workdir`, which maps to
116109

117110
### `kpt-gcloud`
118111

119-
An image which includes kpt based upon the Google [cloud-sdk] alpine image.
120-
121-
```shell
122-
docker run ghcr.io/kptdev/kpt-gcloud:{{< kpt_version >}} version
123-
```
124-
125-
Optionally, you can define a shell alias so Docker-based usage feels like a local CLI:
126-
127-
```shell
128-
alias kpt='docker run --rm -v "$PWD":/workdir -w /workdir ghcr.io/kptdev/kpt:{{< kpt_version >}}'
129-
```
130-
131-
On Windows PowerShell, you can define a function with a similar effect:
132-
133-
```shell
134-
function kpt { docker run --rm -v "${PWD}.Path:/workdir" -w /workdir ghcr.io/kptdev/kpt:{{< kpt_version >}} $args }
135-
```
136-
137-
After setting the alias, `kpt version` runs kpt in a container, and file changes persist in your current directory.
112+
The `kpt-gcloud` images are deprecated.
138113

139114
## Source
140115

‎release/images/Dockerfile-gcloud‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎release/tag/goreleaser.yaml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ dockers:
7070
image_templates:
7171
- "ghcr.io/kptdev/kpt:{{ .Tag }}"
7272
dockerfile: "release/images/Dockerfile"
73-
- ids:
74-
- linux-amd64
75-
image_templates:
76-
- "ghcr.io/kptdev/kpt-gcloud:{{ .Tag }}"
77-
dockerfile: "release/images/Dockerfile-gcloud"
73+
build_flag_templates:
74+
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
75+
- "--label=org.opencontainers.image.description=kpt - Automate Kubernetes Configuration Editing"
76+
- "--label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_REPOSITORY | default \"kptdev/kpt\" }}"
77+
- "--label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_REPOSITORY | default \"kptdev/kpt\" }}"
78+
- "--label=org.opencontainers.image.version={{ .Tag }}"
79+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
80+
- "--label=org.opencontainers.image.created={{ now | date \"2006-01-02T15:04:05Z07:00\" }}"
7881
archives:
7982
- id: archived
8083
builds:

0 commit comments

Comments
 (0)