From 2d38d37808c786a2bc6e5dd352aa0d3f42288a67 Mon Sep 17 00:00:00 2001 From: Kevin Tchang Date: Mon, 13 Jan 2025 14:43:49 +1100 Subject: [PATCH 1/2] Increase buffer size in bootstrap runner (Tentacle 8.2.2585) (#370) --- .changeset/seven-bats-explain.md | 5 +++++ charts/kubernetes-agent/Chart.yaml | 2 +- charts/kubernetes-agent/README.md | 4 ++-- .../auto-upgrader-serviceaccount_test.yaml.snap | 2 +- .../tests/__snapshot__/pod-serviceaccount_test.yaml.snap | 2 +- .../tests/__snapshot__/tentacle-deployment_test.yaml.snap | 6 +++--- .../tests/__snapshot__/tentacle-pvc_test.yaml.snap | 2 +- .../__snapshot__/tentacle-serviceaccount_test.yaml.snap | 2 +- charts/kubernetes-agent/tests/tentacle-deployment_test.yaml | 2 +- charts/kubernetes-agent/values.yaml | 2 +- 10 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .changeset/seven-bats-explain.md diff --git a/.changeset/seven-bats-explain.md b/.changeset/seven-bats-explain.md new file mode 100644 index 00000000..6ee4d987 --- /dev/null +++ b/.changeset/seven-bats-explain.md @@ -0,0 +1,5 @@ +--- +"kubernetes-agent": patch +--- + +Updated Tentacle to version 8.2.2585, which increases the maximum buffer size for the output scanner in the bootstrap runner. This fix addresses an issue where output lines longer than the previous buffer limit would fail to be written. diff --git a/charts/kubernetes-agent/Chart.yaml b/charts/kubernetes-agent/Chart.yaml index 440ebe42..36faf6a4 100644 --- a/charts/kubernetes-agent/Chart.yaml +++ b/charts/kubernetes-agent/Chart.yaml @@ -11,4 +11,4 @@ maintainers: type: application version: "1.20.0" # This version number should be the same as the agent.image.tag value as this is the primary application version -appVersion: "8.2.2540" +appVersion: "8.2.2585" diff --git a/charts/kubernetes-agent/README.md b/charts/kubernetes-agent/README.md index 71fe09b8..988189c5 100644 --- a/charts/kubernetes-agent/README.md +++ b/charts/kubernetes-agent/README.md @@ -1,6 +1,6 @@ # kubernetes-agent -![Version: 1.20.0](https://img.shields.io/badge/Version-1.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2540](https://img.shields.io/badge/AppVersion-8.2.2540-informational?style=flat-square) ![Octopus Deploy Version: 2024.2.6580+](https://img.shields.io/badge/Octopus_Deploy-2024.2.6580%2B-2F93E0?style=flat-square&logo=octopusdeploy&logoColor=%232F93E0&logoSize=auto) +![Version: 1.20.0](https://img.shields.io/badge/Version-1.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2585](https://img.shields.io/badge/AppVersion-8.2.2585-informational?style=flat-square) ![Octopus Deploy Version: 2024.2.6580+](https://img.shields.io/badge/Octopus_Deploy-2024.2.6580%2B-2F93E0?style=flat-square&logo=octopusdeploy&logoColor=%232F93E0&logoSize=auto) A Helm chart for the Octopus Kubernetes Agent @@ -31,7 +31,7 @@ A Helm chart for the Octopus Kubernetes Agent | agent.debug.disableAutoPodCleanup | bool | `false` | Disables automatic pod cleanup | | agent.defaultNamespace | string | `""` | The default Kubernetes namespace for deployments | | agent.enableMetricsCapture | bool | `true` | True if events should be scraped and added to the metrics config map | -| agent.image | object | `{"pullPolicy":"IfNotPresent","repository":"octopusdeploy/kubernetes-agent-tentacle","tag":"8.2.2540","tagSuffix":""}` | The repository, pullPolicy, tag & tagSuffix to use for the agent image | +| agent.image | object | `{"pullPolicy":"IfNotPresent","repository":"octopusdeploy/kubernetes-agent-tentacle","tag":"8.2.2585","tagSuffix":""}` | The repository, pullPolicy, tag & tagSuffix to use for the agent image | | agent.logLevel | string | `"Info"` | The log level of the agent. Logs are written to the pod logs as well as to file | | agent.machinePolicyName | string | `""` | The machine policy to register the agent with | | agent.metadata | object | `{"annotations":{},"labels":{}}` | Additional metadata to add to the agent pod & container | diff --git a/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap index 504e9d28..31210f27 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap @@ -8,7 +8,7 @@ should match snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 name: octopus-agent-auto-upgrader namespace: NAMESPACE diff --git a/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap index 7a0b5c96..a3c4504d 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap @@ -8,7 +8,7 @@ should match snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 name: octopus-agent-scripts namespace: NAMESPACE diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap index 1f0604f1..466c5c9f 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap @@ -7,7 +7,7 @@ should match snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 name: octopus-agent-tentacle namespace: NAMESPACE @@ -23,7 +23,7 @@ should match snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 spec: affinity: @@ -100,7 +100,7 @@ should match snapshot: value: '{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"kubernetes.io/os","operator":"In","values":["linux"]},{"key":"kubernetes.io/arch","operator":"In","values":["arm64","amd64"]}]}]}}}' - name: OCTOPUS__K8STENTACLE__PERSISTENTVOLUMESIZE value: 10Gi - image: octopusdeploy/kubernetes-agent-tentacle:8.2.2540 + image: octopusdeploy/kubernetes-agent-tentacle:8.2.2585 imagePullPolicy: IfNotPresent name: octopus-agent-tentacle resources: diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap index 6a2be7ff..11609b0a 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap @@ -7,7 +7,7 @@ should match snapshot when storageClassName is set: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 name: octopus-agent-RELEASE-NAME-pvc spec: diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap index cbf52931..02e4d29a 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap @@ -8,7 +8,7 @@ should match snapshot: app.kubernetes.io/instance: RELEASE-NAME app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent - app.kubernetes.io/version: 8.2.2540 + app.kubernetes.io/version: 8.2.2585 helm.sh/chart: kubernetes-agent-1.20.0 name: octopus-agent-tentacle namespace: NAMESPACE diff --git a/charts/kubernetes-agent/tests/tentacle-deployment_test.yaml b/charts/kubernetes-agent/tests/tentacle-deployment_test.yaml index 24fa06db..972e67af 100644 --- a/charts/kubernetes-agent/tests/tentacle-deployment_test.yaml +++ b/charts/kubernetes-agent/tests/tentacle-deployment_test.yaml @@ -266,4 +266,4 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: "octopusdeploy/kubernetes-agent-tentacle:8.2.2540-bullseye-slim" + value: "octopusdeploy/kubernetes-agent-tentacle:8.2.2585-bullseye-slim" diff --git a/charts/kubernetes-agent/values.yaml b/charts/kubernetes-agent/values.yaml index ba91812f..578abd0c 100644 --- a/charts/kubernetes-agent/values.yaml +++ b/charts/kubernetes-agent/values.yaml @@ -103,7 +103,7 @@ agent: image: repository: octopusdeploy/kubernetes-agent-tentacle pullPolicy: IfNotPresent - tag: "8.2.2540" + tag: "8.2.2585" tagSuffix: "" # -- Credentials used during agent-upgrade tasks. To be populated if encountering rate-limiting failures. From 3262916cbd748d6d6921e923f5b080e81bd9a1a5 Mon Sep 17 00:00:00 2001 From: Octopus Build Agent Date: Mon, 13 Jan 2025 13:49:22 +1000 Subject: [PATCH 2/2] Version Kubernetes Agent Chart (#371) --- .changeset/seven-bats-explain.md | 5 ----- charts/kubernetes-agent/CHANGELOG.md | 6 ++++++ charts/kubernetes-agent/Chart.yaml | 2 +- charts/kubernetes-agent/README.md | 2 +- charts/kubernetes-agent/package.json | 2 +- .../auto-upgrader-serviceaccount_test.yaml.snap | 2 +- .../tests/__snapshot__/pod-serviceaccount_test.yaml.snap | 2 +- .../tests/__snapshot__/tentacle-deployment_test.yaml.snap | 6 +++--- .../tests/__snapshot__/tentacle-pvc_test.yaml.snap | 2 +- .../__snapshot__/tentacle-serviceaccount_test.yaml.snap | 2 +- 10 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 .changeset/seven-bats-explain.md diff --git a/.changeset/seven-bats-explain.md b/.changeset/seven-bats-explain.md deleted file mode 100644 index 6ee4d987..00000000 --- a/.changeset/seven-bats-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"kubernetes-agent": patch ---- - -Updated Tentacle to version 8.2.2585, which increases the maximum buffer size for the output scanner in the bootstrap runner. This fix addresses an issue where output lines longer than the previous buffer limit would fail to be written. diff --git a/charts/kubernetes-agent/CHANGELOG.md b/charts/kubernetes-agent/CHANGELOG.md index f78d561d..9780245c 100644 --- a/charts/kubernetes-agent/CHANGELOG.md +++ b/charts/kubernetes-agent/CHANGELOG.md @@ -1,5 +1,11 @@ # kubernetes-agent +## 1.20.1 + +### Patch Changes + +- 2d38d37: Updated Tentacle to version 8.2.2585, which increases the maximum buffer size for the output scanner in the bootstrap runner. This fix addresses an issue where output lines longer than the previous buffer limit would fail to be written. + ## 1.20.0 ### Minor Changes diff --git a/charts/kubernetes-agent/Chart.yaml b/charts/kubernetes-agent/Chart.yaml index 36faf6a4..8750bbc7 100644 --- a/charts/kubernetes-agent/Chart.yaml +++ b/charts/kubernetes-agent/Chart.yaml @@ -9,6 +9,6 @@ maintainers: email: "support@octopus.com" url: "https://octopus.com" type: application -version: "1.20.0" +version: "1.20.1" # This version number should be the same as the agent.image.tag value as this is the primary application version appVersion: "8.2.2585" diff --git a/charts/kubernetes-agent/README.md b/charts/kubernetes-agent/README.md index 988189c5..a9e5bc7b 100644 --- a/charts/kubernetes-agent/README.md +++ b/charts/kubernetes-agent/README.md @@ -1,6 +1,6 @@ # kubernetes-agent -![Version: 1.20.0](https://img.shields.io/badge/Version-1.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2585](https://img.shields.io/badge/AppVersion-8.2.2585-informational?style=flat-square) ![Octopus Deploy Version: 2024.2.6580+](https://img.shields.io/badge/Octopus_Deploy-2024.2.6580%2B-2F93E0?style=flat-square&logo=octopusdeploy&logoColor=%232F93E0&logoSize=auto) +![Version: 1.20.1](https://img.shields.io/badge/Version-1.20.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2585](https://img.shields.io/badge/AppVersion-8.2.2585-informational?style=flat-square) ![Octopus Deploy Version: 2024.2.6580+](https://img.shields.io/badge/Octopus_Deploy-2024.2.6580%2B-2F93E0?style=flat-square&logo=octopusdeploy&logoColor=%232F93E0&logoSize=auto) A Helm chart for the Octopus Kubernetes Agent diff --git a/charts/kubernetes-agent/package.json b/charts/kubernetes-agent/package.json index 5ab24e3a..d4402346 100644 --- a/charts/kubernetes-agent/package.json +++ b/charts/kubernetes-agent/package.json @@ -1,6 +1,6 @@ { "name": "kubernetes-agent", - "version": "1.20.0", + "version": "1.20.1", "private": true, "description": "The Octopus Kubernetes Agent", "author": "Octopus Deploy Ptd Ltd", diff --git a/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap index 31210f27..8bd40d39 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/auto-upgrader-serviceaccount_test.yaml.snap @@ -9,6 +9,6 @@ should match snapshot: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 name: octopus-agent-auto-upgrader namespace: NAMESPACE diff --git a/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap index a3c4504d..f9d8a19a 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/pod-serviceaccount_test.yaml.snap @@ -9,6 +9,6 @@ should match snapshot: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 name: octopus-agent-scripts namespace: NAMESPACE diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap index 466c5c9f..8434a59a 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-deployment_test.yaml.snap @@ -8,7 +8,7 @@ should match snapshot: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 name: octopus-agent-tentacle namespace: NAMESPACE spec: @@ -24,7 +24,7 @@ should match snapshot: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 spec: affinity: nodeAffinity: @@ -77,7 +77,7 @@ should match snapshot: - name: OCTOPUS__K8STENTACLE__HELMRELEASENAME value: RELEASE-NAME - name: OCTOPUS__K8STENTACLE__HELMCHARTVERSION - value: 1.20.0 + value: 1.20.1 - name: OCTOPUS__K8STENTACLE__DISABLEAUTOPODCLEANUP value: "false" - name: OCTOPUS__K8STENTACLE__DISABLEPODEVENTSINTASKLOG diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap index 11609b0a..945b6d69 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-pvc_test.yaml.snap @@ -8,7 +8,7 @@ should match snapshot when storageClassName is set: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 name: octopus-agent-RELEASE-NAME-pvc spec: accessModes: diff --git a/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap b/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap index 02e4d29a..6c3f1cb7 100644 --- a/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap +++ b/charts/kubernetes-agent/tests/__snapshot__/tentacle-serviceaccount_test.yaml.snap @@ -9,6 +9,6 @@ should match snapshot: app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: octopus-agent app.kubernetes.io/version: 8.2.2585 - helm.sh/chart: kubernetes-agent-1.20.0 + helm.sh/chart: kubernetes-agent-1.20.1 name: octopus-agent-tentacle namespace: NAMESPACE