Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit 692d4b2

Browse files
feat: Update to Keptn 0.14.1 (#73)
Signed-off-by: Raphael Ludwig <[email protected]>
1 parent 2775dcd commit 692d4b2

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Future versions of this service may support additional integrations with other c
2121
| 0.10.x | keptncontrib/argo-service:0.9.1 |
2222
| 0.12.x | keptncontrib/argo-service:0.9.2 |
2323
| 0.13.x | keptncontrib/argo-service:0.9.3 |
24+
| 0.14.x | keptncontrib/argo-service:0.9.4 |
2425

25-
**Note**: This integration is currently incompatible with Keptn 0.14.x and newer.
2626

2727
## Argo Rollout Support Explained
2828

chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373
cpu: "100m"
7474
env:
7575
- name: PUBSUB_URL
76-
value: 'nats://keptn-nats-cluster'
76+
value: 'nats://keptn-nats'
7777
- name: PUBSUB_TOPIC
7878
value: 'sh.keptn.event.release.triggered,sh.keptn.event.rollback.triggered,sh.keptn.event.test.triggered'
7979
- name: PUBSUB_RECIPIENT

chart/templates/serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ rules:
110110
verbs:
111111
- list
112112
- update
113+
- watch
113114
# pods eviction needed for restart
114115
- apiGroups:
115116
- ""

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ distributor:
1717
image:
1818
repository: docker.io/keptn/distributor # Container Image Name
1919
pullPolicy: IfNotPresent # Kubernetes Image Pull Policy
20-
tag: "0.13.4" # Container Tag
20+
tag: "0.14.1" # Container Tag
2121

2222
remoteControlPlane:
2323
enabled: false # Enables remote execution plane mode

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"fmt"
7+
"github.com/cloudevents/sdk-go/v2/types"
78
"log"
89
"net/http"
910
"os"
@@ -93,8 +94,7 @@ func _main(args []string, env envConfig) int {
9394
* Handles incoming events
9495
*/
9596
func gotEvent(ctx context.Context, event cloudevents.Event) error {
96-
var shkeptncontext string
97-
event.Context.ExtensionAs("shkeptncontext", &shkeptncontext)
97+
shkeptncontext, err := types.ToString(event.Context.GetExtensions()["shkeptncontext"])
9898

9999
logger := keptnutils.NewLogger(shkeptncontext, event.Context.GetID(), ServiceName)
100100
myKeptn, err := keptnv2.NewKeptn(&event, keptnutils.KeptnOpts{})

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/keptn-contrib/argo-service
33
go 1.17
44

55
require (
6-
github.com/cloudevents/sdk-go/v2 v2.8.0
6+
github.com/cloudevents/sdk-go/v2 v2.9.0
77
github.com/kelseyhightower/envconfig v1.4.0
8-
github.com/keptn/go-utils v0.13.0
8+
github.com/keptn/go-utils v0.14.0
99
)
1010

1111
require (

go.sum

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ github.com/cloudevents/sdk-go/observability/opentelemetry/v2 v2.0.0-202110012128
1313
github.com/cloudevents/sdk-go/observability/opentelemetry/v2 v2.8.0 h1:TPRL3taWO7zvhmZDYOyWCIgLvjrER5Ks+d0vbKXjxRI=
1414
github.com/cloudevents/sdk-go/observability/opentelemetry/v2 v2.8.0/go.mod h1:Ptr2VPryHkCzN5tsESVvMWBNNr6qZIEpq9JHVDfH8kE=
1515
github.com/cloudevents/sdk-go/v2 v2.5.0/go.mod h1:nlXhgFkf0uTopxmRXalyMwS2LG70cRGPrxzmjJgSG0U=
16-
github.com/cloudevents/sdk-go/v2 v2.8.0 h1:kmRaLbsafZmidZ0rZ6h7WOMqCkRMcVTLV5lxV/HKQ9Y=
1716
github.com/cloudevents/sdk-go/v2 v2.8.0/go.mod h1:GpCBmUj7DIRiDhVvsK5d6WCbgTWs8DxAWTRtAwQmIXs=
17+
github.com/cloudevents/sdk-go/v2 v2.9.0 h1:StQ9q2JuGvclGFoT7kpTdQm+qjW0LQzg51CgUF4ncpY=
18+
github.com/cloudevents/sdk-go/v2 v2.9.0/go.mod h1:GpCBmUj7DIRiDhVvsK5d6WCbgTWs8DxAWTRtAwQmIXs=
1819
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
1920
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
2021
github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
@@ -73,8 +74,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr
7374
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
7475
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
7576
github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
76-
github.com/keptn/go-utils v0.13.0 h1:jQ8EoWWa4EPamu4dis+AMzVD4YG2Yu/FEwvpgwslFrE=
77-
github.com/keptn/go-utils v0.13.0/go.mod h1:yJM7pnCUj23VHKa2az9eWUTAmLDv94f6DVHON9qV1kU=
77+
github.com/keptn/go-utils v0.14.0 h1:1EDbYjKdQdhcvp6ErbDyyR/pd7pa4dksT509/GRzQ24=
78+
github.com/keptn/go-utils v0.14.0/go.mod h1:CIRwnEp/QYaSBa/r146x3h4yqWB4FS3YNKHzftoyhVA=
7879
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
7980
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
8081
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
@@ -184,6 +185,7 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
184185
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
185186
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
186187
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
188+
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
187189
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
188190
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
189191
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

0 commit comments

Comments
 (0)