Skip to content

Commit d2017a9

Browse files
authored
Revert "Add -latest suffix to release tags (#1172)" (#1188)
* Revert "Add -latest suffix to release tags (#1172)" This reverts commit 750406d. Signed-off-by: Fiachra Corcoran <[email protected]> * Update VERSIONING.md Signed-off-by: Fiachra Corcoran <[email protected]> * Amend Invocation ex Signed-off-by: Fiachra Corcoran <[email protected]> * Fix failing e2e tests Signed-off-by: Fiachra Corcoran <[email protected]> --------- Signed-off-by: Fiachra Corcoran <[email protected]>
1 parent 28c1a97 commit d2017a9

File tree

7 files changed

+37
-42
lines changed

7 files changed

+37
-42
lines changed

RELEASING.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@ krm-functions-catalog repo.
66

77
1. Checking the [CI status](https://github.com/kptdev/krm-functions-catalog/actions/workflows/ci.yaml) of the master branch.
88
If the CI is failing on the master, we need to fix it before doing a release.
9-
2. Go to the [releases pages] in your browser.
10-
3. Click `Draft a new release` to create a new release for a function. The tag
9+
1. Go to the [releases pages] in your browser.
10+
1. Click `Draft a new release` to create a new release for a function. The tag
1111
version format should be `functions/{language}/{function-name}/{semver}`. e.g.
12-
`functions/go/set-namespace/v1.2.3` and `functions/ts/kubeval/v2.3.4`. The release name should be
12+
`functions/go/set-namespace/v1.2.3`. The release name should be
1313
`{funtion-name} {semver}`. The release notes for this function should be in
1414
the body.
15-
4. Click `Publish release` button.
16-
5. Verify the new functions are released in ghcr.io/kptdev/krm-functions-catalog/{funtion-name}/{semver} or, if using the GitHub based CD flow, check
15+
1. Click `Publish release` button.
16+
1. Verify the new functions are released in ghcr.io/kptdev/krm-functions-catalog/{funtion-name}/{semver} or, if using the GitHub based CD flow, check
1717
the relevant [GitHub packages section](https://github.com/orgs/kptdev/packages?repo_name=krm-functions-catalog)
18-
The example above will push the following tags to the registry:
19-
* v1.2.3
20-
* v1.2-latest
21-
* v1-latest
22-
23-
6. Send an announcement on the [kpt slack channel]
18+
1. Send an announcement on the [kpt slack channel]
2419

2520
> ⚠️ **Warning:** The update docs section is currently being revised. DO NOT USE!!
2621
## Updating function docs

VERSIONING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ The shorter version of semantic versioning is going to be floating tags:
1818
released, `v1` now points to `v1.3.0`. After `v1.3.1` is released, `v1` now
1919
points to `v1.3.1`.
2020

21-
Note: We do NOT support the `latest` tag, since we cannot provide any
21+
Note: We do NOT officially support the `latest` tag, since we cannot provide any
2222
compatibility guarantee for it, and the pipeline won’t produce deterministic
23-
results.
23+
results. The `latest` tag should only be used for testing and development.
2424

2525
## User-facing Surfaces
2626

@@ -105,7 +105,7 @@ There are 2 ways to specify your desired version:
105105
are less maintenance toil, since it automatically pick up the security and bug
106106
fixes.
107107

108-
Don't use `latest` tag if you use your own function images, since
108+
Avoid using the `latest` tag for your own function images, since
109109
it’s [not a best practice] for production and also it
110110
is [not recommended by kubernetes].
111111

examples/enable-gcp-services-advanced/.expected/diff.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,38 @@ index 42300cc..0000000
1515
- projectRef:
1616
- external: proj1
1717
diff --git a/service_proj1-service-compute.yaml b/service_proj1-service-compute.yaml
18-
index a0e4c9b..6635edf 100644
18+
index a0e4c9b..339b364 100644
1919
--- a/service_proj1-service-compute.yaml
2020
+++ b/service_proj1-service-compute.yaml
2121
@@ -4,6 +4,7 @@ metadata:
2222
name: proj1-service-compute
2323
annotations:
2424
blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
25-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
25+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
2626
spec:
2727
resourceID: compute.googleapis.com
2828
projectRef:
2929
diff --git a/service_proj1-service-redis.yaml b/service_proj1-service-redis.yaml
30-
index 2da01b0..888327c 100644
30+
index 2da01b0..2d4f6ac 100644
3131
--- a/service_proj1-service-redis.yaml
3232
+++ b/service_proj1-service-redis.yaml
3333
@@ -4,6 +4,7 @@ metadata:
3434
name: proj1-service-redis
3535
annotations:
3636
blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
37-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
37+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
3838
spec:
3939
resourceID: redis.googleapis.com
4040
projectRef:
4141
diff --git a/service_proj2-service-redis.yaml b/service_proj2-service-redis.yaml
42-
index 6c5cfd8..66ed59c 100644
42+
index 6c5cfd8..cfce9e1 100644
4343
--- a/service_proj2-service-redis.yaml
4444
+++ b/service_proj2-service-redis.yaml
4545
@@ -4,6 +4,7 @@ metadata:
4646
name: proj2-service-redis
4747
annotations:
4848
blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj2-service'
49-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
49+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
5050
spec:
5151
resourceID: redis.googleapis.com
5252
projectRef:

examples/enable-gcp-services-simple/.expected/diff.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
diff --git a/service_proj1-service-compute.yaml b/service_proj1-service-compute.yaml
22
new file mode 100644
3-
index 0000000..6635edf
3+
index 0000000..339b364
44
--- /dev/null
55
+++ b/service_proj1-service-compute.yaml
66
@@ -0,0 +1,11 @@
@@ -10,14 +10,14 @@ index 0000000..6635edf
1010
+ name: proj1-service-compute
1111
+ annotations:
1212
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
13-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
13+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
1414
+spec:
1515
+ resourceID: compute.googleapis.com
1616
+ projectRef:
1717
+ external: proj1
1818
diff --git a/service_proj1-service-redis.yaml b/service_proj1-service-redis.yaml
1919
new file mode 100644
20-
index 0000000..888327c
20+
index 0000000..2d4f6ac
2121
--- /dev/null
2222
+++ b/service_proj1-service-redis.yaml
2323
@@ -0,0 +1,11 @@
@@ -27,7 +27,7 @@ index 0000000..888327c
2727
+ name: proj1-service-redis
2828
+ annotations:
2929
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
30-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
30+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
3131
+spec:
3232
+ resourceID: redis.googleapis.com
3333
+ projectRef:

functions/go/kubeconform/kubeconform_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ package main
1616

1717
import (
1818
"fmt"
19+
"github.com/kptdev/krm-functions-sdk/go/fn"
20+
"github.com/stretchr/testify/assert"
1921
"os"
2022
"path/filepath"
2123
"reflect"
2224
"testing"
23-
"github.com/kptdev/krm-functions-sdk/go/fn"
24-
"github.com/stretchr/testify/assert"
2525
)
2626

2727
func TestExtractConfig(t *testing.T) {

scripts/git-tag-parser.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
VERNUM='0|[1-9][0-9]*'
1818
SEMVER_REGEX="^[vV]?($VERNUM)\\.($VERNUM)\\.($VERNUM)$"
1919

20-
# get_versions return versions: vX.Y.Z, vX.Y-latest and vX-latest if the input matches
20+
# get_versions return versions: vX.Y.Z, vX.Y and vX if the input matches
2121
# SEMVER_REGEX. Otherwise, it returns the input.
2222
# example 1:
2323
# Invocation: get_versions v1.2.3
24-
# Return: v1.2.3 v1.2-latest v1-latest
24+
# Return: v1.2.3 v1.2 v1
2525
# example 2:
2626
# Invocation: get_versions latest
2727
# Return: latest
@@ -33,8 +33,8 @@ function get_versions {
3333
local patch=${BASH_REMATCH[3]}
3434

3535
echo v"${major}"."${minor}"."${patch}"
36-
echo v"${major}"."${minor}"-latest
37-
echo v"${major}"-latest
36+
echo v"${major}"."${minor}"
37+
echo v"${major}"
3838
else
3939
echo "${version}"
4040
fi

tests/enable-gcp-services/nested-packages/.expected/diff.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
diff --git a/bar-project/service_bar-service-cloudbuild.yaml b/bar-project/service_bar-service-cloudbuild.yaml
22
new file mode 100644
3-
index 0000000..14cfd13
3+
index 0000000..5336e67
44
--- /dev/null
55
+++ b/bar-project/service_bar-service-cloudbuild.yaml
66
@@ -0,0 +1,11 @@
@@ -10,14 +10,14 @@ index 0000000..14cfd13
1010
+ name: bar-service-cloudbuild
1111
+ annotations:
1212
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/bar-service'
13-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
13+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
1414
+spec:
1515
+ resourceID: cloudbuild.googleapis.com
1616
+ projectRef:
1717
+ external: bar
1818
diff --git a/foo-project/service_foo-service-compute.yaml b/foo-project/service_foo-service-compute.yaml
1919
new file mode 100644
20-
index 0000000..fed5ef5
20+
index 0000000..cc0f0f2
2121
--- /dev/null
2222
+++ b/foo-project/service_foo-service-compute.yaml
2323
@@ -0,0 +1,11 @@
@@ -27,14 +27,14 @@ index 0000000..fed5ef5
2727
+ name: foo-service-compute
2828
+ annotations:
2929
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/foo-service'
30-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
30+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
3131
+spec:
3232
+ resourceID: compute.googleapis.com
3333
+ projectRef:
3434
+ external: foo
3535
diff --git a/foo-project/service_foo-service-redis.yaml b/foo-project/service_foo-service-redis.yaml
3636
new file mode 100644
37-
index 0000000..160a34c
37+
index 0000000..8a1e355
3838
--- /dev/null
3939
+++ b/foo-project/service_foo-service-redis.yaml
4040
@@ -0,0 +1,11 @@
@@ -44,14 +44,14 @@ index 0000000..160a34c
4444
+ name: foo-service-redis
4545
+ annotations:
4646
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/foo-service'
47-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
47+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
4848
+spec:
4949
+ resourceID: redis.googleapis.com
5050
+ projectRef:
5151
+ external: foo
5252
diff --git a/foo-project/service_foo-service-storage.yaml b/foo-project/service_foo-service-storage.yaml
5353
new file mode 100644
54-
index 0000000..dfcf6e3
54+
index 0000000..07acdd4
5555
--- /dev/null
5656
+++ b/foo-project/service_foo-service-storage.yaml
5757
@@ -0,0 +1,11 @@
@@ -61,14 +61,14 @@ index 0000000..dfcf6e3
6161
+ name: foo-service-storage
6262
+ annotations:
6363
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/foo-service'
64-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
64+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
6565
+spec:
6666
+ resourceID: storage.googleapis.com
6767
+ projectRef:
6868
+ external: foo
6969
diff --git a/service_proj1-service-compute.yaml b/service_proj1-service-compute.yaml
7070
new file mode 100644
71-
index 0000000..6635edf
71+
index 0000000..339b364
7272
--- /dev/null
7373
+++ b/service_proj1-service-compute.yaml
7474
@@ -0,0 +1,11 @@
@@ -78,14 +78,14 @@ index 0000000..6635edf
7878
+ name: proj1-service-compute
7979
+ annotations:
8080
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
81-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
81+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
8282
+spec:
8383
+ resourceID: compute.googleapis.com
8484
+ projectRef:
8585
+ external: proj1
8686
diff --git a/service_proj1-service-redis.yaml b/service_proj1-service-redis.yaml
8787
new file mode 100644
88-
index 0000000..888327c
88+
index 0000000..2d4f6ac
8989
--- /dev/null
9090
+++ b/service_proj1-service-redis.yaml
9191
@@ -0,0 +1,11 @@
@@ -95,7 +95,7 @@ index 0000000..888327c
9595
+ name: proj1-service-redis
9696
+ annotations:
9797
+ blueprints.cloud.google.com/ownerReference: 'blueprints.cloud.google.com/ProjectServiceSet/proj1-service'
98-
+ cnrm.cloud.google.com/blueprint: 'kpt-fn'
98+
+ cnrm.cloud.google.com/blueprint: 'krm-fn'
9999
+spec:
100100
+ resourceID: redis.googleapis.com
101101
+ projectRef:

0 commit comments

Comments
 (0)