Skip to content

Commit 1bce5f8

Browse files
dependabot[bot]sanketsudakeCopilot
authored
Bump the github-actions group with 5 updates (#178)
* Bump the github-actions group with 5 updates Bumps the github-actions group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.7` | `4.2.2` | | [github/codeql-action](https://github.com/github/codeql-action) | `3.25.10` | `3.28.18` | | [actions/setup-go](https://github.com/actions/setup-go) | `5.0.1` | `5.5.0` | | [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) | `6.0.1` | `8.0.0` | | [ko-build/setup-ko](https://github.com/ko-build/setup-ko) | `0.7` | `0.9` | Updates `actions/checkout` from 4.1.7 to 4.2.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@692973e...11bd719) Updates `github/codeql-action` from 3.25.10 to 3.28.18 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@23acc5c...ff0a06e) Updates `actions/setup-go` from 5.0.1 to 5.5.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](actions/setup-go@cdcb360...d35c59a) Updates `golangci/golangci-lint-action` from 6.0.1 to 8.0.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@a4f60bb...4afd733) Updates `ko-build/setup-ko` from 0.7 to 0.9 - [Release notes](https://github.com/ko-build/setup-ko/releases) - [Commits](ko-build/setup-ko@3aebd05...d006021) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 4.2.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 3.28.18 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/setup-go dependency-version: 5.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: golangci/golangci-lint-action dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: ko-build/setup-ko dependency-version: '0.9' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * Update golangci-lint Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * Update golangci-lint version Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * update kafka deployment Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * Update gcp-pubsub-http-connector/main.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * update go version 1.24.3 Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> * update dependabot yml Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Sanket Sudake <sanketsudake@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sanket Sudake <sanketsudake@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fc35340 commit 1bce5f8

File tree

10 files changed

+106
-75
lines changed

10 files changed

+106
-75
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: github-actions
44
directory: /
55
schedule:
6-
interval: weekly
6+
interval: monthly
77
open-pull-requests-limit: 5
88
groups:
99
github-actions:
@@ -13,7 +13,7 @@ updates:
1313
- package-ecosystem: gomod
1414
directory: /
1515
schedule:
16-
interval: weekly
16+
interval: monthly
1717
open-pull-requests-limit: 5
1818
groups:
1919
go-dependencies:

.github/workflows/ci.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ on:
77
branches:
88
- main
99

10+
concurrency:
11+
group: integration-test-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
check:
1216
runs-on: ubuntu-latest
1317
outputs:
1418
packages: ${{ steps.filter.outputs.changes }}
1519
steps:
1620
- name: Check out code
17-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1822

1923
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2024
id: filter
@@ -39,28 +43,27 @@ jobs:
3943
runs-on: ubuntu-latest
4044
steps:
4145
- name: Check out code
42-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4347

4448
- name: Setup Keda
4549
uses: ./.github/actions/setup-keda
4650

4751
- name: Deploy Kafka Cluster
4852
run: |
4953
kubectl create namespace kafka
50-
curl -L http://strimzi.io/install/latest | sed 's/namespace: .*/namespace: kafka/' | kubectl create -f - -n kafka
54+
kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
55+
kubectl rollout status deployment strimzi-cluster-operator -n kafka --timeout=120s
5156
sleep 10s
52-
kubectl create -f kafka-http-connector/test/kubernetes/kafka-cluster.yaml
57+
kubectl create -f kafka-http-connector/test/kubernetes/kafka-cluster.yaml -n kafka
5358
echo "Kafka Cluster is getting up."
54-
kubectl wait -f kafka-http-connector/test/kubernetes/kafka-cluster.yaml --for=condition=ready --timeout=-1s -n kafka
55-
sleep 10s
59+
kubectl wait kafka/my-cluster-test --for=condition=ready --timeout=300s -n kafka
5660
kubectl get pods -n kafka
57-
kubectl wait pod -l app.kubernetes.io/name=zookeeper --for=condition=ready --timeout=-1s -n kafka
5861
5962
- name: Create Kafka topics
6063
run: |
61-
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-req-topic.yaml
62-
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-err-topic.yaml
63-
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-res-topic.yaml
64+
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-req-topic.yaml -n kafka
65+
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-err-topic.yaml -n kafka
66+
kubectl apply -f kafka-http-connector/test/kubernetes/kafka-res-topic.yaml -n kafka
6467
6568
- name: Deploy Kafka Keda Connector and Keda ScaledObject
6669
run: |
@@ -90,7 +93,7 @@ jobs:
9093
runs-on: ubuntu-latest
9194
steps:
9295
- name: Check out code
93-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
96+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9497

9598
- name: Setup Keda
9699
uses: ./.github/actions/setup-keda
@@ -134,7 +137,7 @@ jobs:
134137
runs-on: ubuntu-latest
135138
steps:
136139
- name: Check out code
137-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
140+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138141

139142
- name: Setup Keda
140143
uses: ./.github/actions/setup-keda
@@ -170,7 +173,7 @@ jobs:
170173
runs-on: ubuntu-latest
171174
steps:
172175
- name: Check out code
173-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
176+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
174177

175178
- name: Setup Keda
176179
uses: ./.github/actions/setup-keda
@@ -219,7 +222,7 @@ jobs:
219222
runs-on: ubuntu-latest
220223
steps:
221224
- name: Check out code
222-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
225+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
223226

224227
- name: Setup Keda
225228
uses: ./.github/actions/setup-keda
@@ -264,7 +267,7 @@ jobs:
264267
runs-on: ubuntu-latest
265268
steps:
266269
- name: Check out code
267-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
270+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
268271

269272
- name: Setup Keda
270273
uses: ./.github/actions/setup-keda

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
schedule:
2121
- cron: '43 18 * * 1'
2222

23+
concurrency:
24+
group: codeql-analysis-${{ github.ref }}
25+
cancel-in-progress: true
26+
2327
jobs:
2428
analyze:
2529
name: Analyze
@@ -39,11 +43,11 @@ jobs:
3943

4044
steps:
4145
- name: Check out code
42-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4347

4448
# Initializes the CodeQL tools for scanning.
4549
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
50+
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
4751
with:
4852
languages: ${{ matrix.language }}
4953
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +58,7 @@ jobs:
5458
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5559
# If this step fails, then you should remove it and run the build manually (see below)
5660
- name: Autobuild
57-
uses: github/codeql-action/autobuild@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
61+
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
5862

5963
# ℹ️ Command-line programs to run using the OS shell.
6064
# 📚 https://git.io/JvXDl
@@ -68,4 +72,4 @@ jobs:
6872
# make release
6973

7074
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3.25.10
75+
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18

.github/workflows/lint.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
GOLANGCI_LINT_VERSION: v1.61.0
14-
GOLANGCI_LINT_TIMEOUT: 5m
13+
GOLANGCI_LINT_VERSION: v2.1.6
14+
GOLANGCI_LINT_TIMEOUT: 10m
15+
16+
concurrency:
17+
group: lint-${{ github.ref }}
18+
cancel-in-progress: true
1519

1620
jobs:
1721
lint:
1822
runs-on: ubuntu-latest
1923

2024
steps:
2125
- name: Check out code
22-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2327

2428
- name: Set up Go
25-
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
29+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2630
with:
2731
go-version-file: "go.mod"
2832
cache: true
@@ -33,7 +37,7 @@ jobs:
3337
go mod download
3438
3539
- name: Run golangci-lint
36-
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
40+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3741
with:
3842
version: ${{ env.GOLANGCI_LINT_VERSION }}
3943
args: --timeout=${{ env.GOLANGCI_LINT_TIMEOUT }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
packages: ${{ steps.filter.outputs.changes }}
1515
steps:
1616
- name: Check out code
17-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

1919
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2020
id: filter
@@ -45,10 +45,10 @@ jobs:
4545
runs-on: ubuntu-latest
4646
steps:
4747
- name: Checkout sources
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
48+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949

5050
- name: Set up Go
51-
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
51+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
5252
with:
5353
go-version-file: "go.mod"
5454
cache: true
@@ -57,7 +57,7 @@ jobs:
5757
run: cd ${{ matrix.run }}; version=$(cat version);echo "version=$version" >> $GITHUB_ENV
5858

5959
- name: Setup Ko
60-
uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7
60+
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
6161

6262
- name: Build
6363
shell: bash

.golangci.yaml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
1+
version: "2"
12
linters:
23
enable:
3-
- errcheck
4-
- gosimple
5-
- govet
6-
- ineffassign
7-
- staticcheck
8-
- typecheck
9-
- unused
10-
# Additional linters
11-
- gofmt
12-
- goimports
13-
- misspell
14-
- nakedret
15-
- unconvert
164
- bodyclose
175
- dogsled
186
- dupl
19-
# - gosec
7+
- misspell
8+
- nakedret
209
- nilerr
2110
- prealloc
22-
# - revive
11+
- unconvert
2312
- unparam
24-
# - wrapcheck
25-
# - gocritic
26-
linters-settings:
27-
errcheck:
28-
ignore: go.uber.org/zap:Sync
29-
goimports:
30-
# put imports beginning with prefix after 3rd-party packages;
31-
# it's a comma-separated list of prefixes
32-
local-prefixes: github.com/fission/fission,github.com/fission/keda-connectors
13+
settings:
14+
errcheck:
15+
exclude-functions:
16+
- (*go.uber.org/zap.Logger).Sync
17+
exclusions:
18+
generated: lax
19+
presets:
20+
- comments
21+
- common-false-positives
22+
- legacy
23+
- std-error-handling
24+
paths:
25+
- third_party$
26+
- builtin$
27+
- examples$
28+
formatters:
29+
enable:
30+
- gofmt
31+
- goimports
32+
settings:
33+
goimports:
34+
local-prefixes:
35+
- github.com/fission/fission
36+
- github.com/fission/keda-connectors
37+
exclusions:
38+
generated: lax
39+
paths:
40+
- third_party$
41+
- builtin$
42+
- examples$

gcp-pubsub-http-connector/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ func GetGCPInfo() (*GCPPubsubConnInfo, error) {
188188
return connInfo, nil
189189
}
190190

191-
return nil, errors.New("Provide credentials ")
191+
return nil, errors.New("provide credentials")
192192

193193
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fission/keda-connectors
22

3-
go 1.23.1
3+
go 1.24.3
44

55
require (
66
cloud.google.com/go/pubsub v1.39.0

kafka-http-connector/scram_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ type XDGSCRAMClient struct {
2525
}
2626

2727
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
28-
x.Client, err = x.HashGeneratorFcn.NewClient(userName, password, authzID)
28+
x.Client, err = x.NewClient(userName, password, authzID)
2929
if err != nil {
3030
return err
3131
}
32-
x.ClientConversation = x.Client.NewConversation()
32+
x.ClientConversation = x.NewConversation()
3333
return nil
3434
}
3535

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,34 @@
11
apiVersion: kafka.strimzi.io/v1beta2
2+
kind: KafkaNodePool
3+
metadata:
4+
name: dual-role
5+
labels:
6+
strimzi.io/cluster: my-cluster-test
7+
spec:
8+
replicas: 1
9+
roles:
10+
- controller
11+
- broker
12+
storage:
13+
type: jbod
14+
volumes:
15+
- id: 0
16+
type: persistent-claim
17+
size: 20Gi
18+
deleteClaim: false
19+
kraftMetadata: shared
20+
---
21+
apiVersion: kafka.strimzi.io/v1beta2
222
kind: Kafka
323
metadata:
424
name: my-cluster-test
5-
namespace: kafka
25+
annotations:
26+
strimzi.io/node-pools: enabled
27+
strimzi.io/kraft: enabled
628
spec:
729
kafka:
8-
replicas: 1
30+
version: 4.0.0
31+
metadataVersion: 4.0-IV3
932
listeners:
1033
- name: plain
1134
port: 9092
@@ -15,29 +38,16 @@ spec:
1538
port: 9093
1639
type: internal
1740
tls: true
18-
authentication:
19-
type: tls
2041
- name: external
2142
port: 9094
2243
type: nodeport
2344
tls: false
24-
storage:
25-
type: jbod
26-
volumes:
27-
- id: 0
28-
type: persistent-claim
29-
size: 20Gi
30-
deleteClaim: false
3145
config:
3246
offsets.topic.replication.factor: 1
3347
transaction.state.log.replication.factor: 1
3448
transaction.state.log.min.isr: 1
35-
zookeeper:
36-
replicas: 1
37-
storage:
38-
type: persistent-claim
39-
size: 20Gi
40-
deleteClaim: false
49+
default.replication.factor: 1
50+
min.insync.replicas: 1
4151
entityOperator:
4252
topicOperator: {}
4353
userOperator: {}

0 commit comments

Comments
 (0)