Skip to content

Commit 3b678b6

Browse files
authoredJul 15, 2024··
chore: upgrade to agent api v2 (#27)
1 parent 2c02800 commit 3b678b6

File tree

9 files changed

+1304
-922
lines changed

9 files changed

+1304
-922
lines changed
 

‎.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# Install Go!
4646
- uses: actions/setup-go@v3
4747
with:
48-
go-version: "~1.20"
48+
go-version: "~1.22"
4949

5050
- name: Test
51-
run: go test ./...
51+
run: go test ./... -race

‎.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- uses: actions/setup-go@v3
3737
with:
38-
go-version: "~1.20"
38+
go-version: "~1.22"
3939

4040
- name: Get Version
4141
run: echo "version=$(./scripts/version.sh)" >> $GITHUB_OUTPUT

‎go.mod

Lines changed: 149 additions & 123 deletions
Large diffs are not rendered by default.

‎go.sum

Lines changed: 523 additions & 623 deletions
Large diffs are not rendered by default.

‎helm/values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ nodeSelector: {}
6363
# affinity -- Allows specifying an affinity rule for the Deployment.
6464
# The default rule prefers to schedule coder pods on different
6565
# nodes, which is only applicable if coder.replicaCount is greater than 1.
66-
affinity: {}
66+
affinity:
67+
{}
6768
# podAntiAffinity:
6869
# preferredDuringSchedulingIgnoredDuringExecution:
6970
# - podAffinityTerm:
@@ -78,12 +79,13 @@ affinity: {}
7879

7980
# tolerations -- Tolerations for tainted nodes.
8081
# See: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
81-
tolerations: {}
82+
tolerations:
83+
{}
8284
# - key: "key"
8385
# operator: "Equal"
8486
# value: "value"
8587
# effect: "NoSchedule"
8688

8789
# labels -- The pod labels for coder-logstream-kube. See:
8890
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
89-
labels: {}
91+
labels: {}

‎logger.go

Lines changed: 315 additions & 120 deletions
Large diffs are not rendered by default.

‎logger_test.go

Lines changed: 308 additions & 48 deletions
Large diffs are not rendered by default.

‎main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func root() *cobra.Command {
6969
namespace: namespace,
7070
fieldSelector: fieldSelector,
7171
labelSelector: labelSelector,
72-
logger: slog.Make(sloghuman.Sink(cmd.ErrOrStderr())),
72+
logger: slog.Make(sloghuman.Sink(cmd.ErrOrStderr())).Leveled(slog.LevelDebug),
7373
})
7474
if err != nil {
7575
return fmt.Errorf("create pod event reporter: %w", err)

‎scripts/helm.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ while true; do
5151
esac
5252
done
5353

54-
version="${version}"
5554
if [[ "$version" == "" ]]; then
5655
version="$(./scripts/version.sh)"
5756
fi

0 commit comments

Comments
 (0)
Please sign in to comment.