Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/kubernetes agent/v1 #351

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/kubernetes-agent-publish-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ jobs:

if [[ "${{steps.branch_names.outputs.branch_name}}" != "release-kubernetes-agent-v1" ]]
then
pre_release="-${{steps.branch_names.outputs.branch_name}}-$(date +'%Y%m%d%H%M%S')"
# underscores in branches make for illegal version-string, replace with "-"
cleansed_branch=`echo ${{steps.branch_names.outputs.branch_name}} | sed s/_/-/g`
pre_release="-${cleansed_branch}-$(date +'%Y%m%d%H%M%S')"
fi

full_version="$chart_version$pre_release"
Expand Down Expand Up @@ -143,4 +145,4 @@ jobs:
project: 'Octopus Kubernetes Agent'
release_number: ${{ needs.version_and_package.outputs.CHART_VERSION }}
package_version: ${{ needs.version_and_package.outputs.CHART_VERSION }}
ignore_existing: true
ignore_existing: true
6 changes: 6 additions & 0 deletions charts/kubernetes-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# kubernetes-agent

## 1.19.1

### Patch Changes

- f55beb1: Updated tentacle to resolve errors during calls to 'helm registry login'

## 1.19.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions charts/kubernetes-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ maintainers:
email: "support@octopus.com"
url: "https://octopus.com"
type: application
version: "1.19.0"
version: "1.19.1"
# This version number should be the same as the agent.image.tag value as this is the primary application version
appVersion: "8.2.2504"
appVersion: "8.2.2514"
4 changes: 2 additions & 2 deletions charts/kubernetes-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kubernetes-agent

![Version: 1.19.0](https://img.shields.io/badge/Version-1.19.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2504](https://img.shields.io/badge/AppVersion-8.2.2504-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.19.1](https://img.shields.io/badge/Version-1.19.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 8.2.2514](https://img.shields.io/badge/AppVersion-8.2.2514-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

Expand Down Expand Up @@ -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.2504","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.2514","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 |
Expand Down
2 changes: 1 addition & 1 deletion charts/kubernetes-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubernetes-agent",
"version": "1.19.0",
"version": "1.19.1",
"private": true,
"description": "The Octopus Kubernetes Agent",
"author": "Octopus Deploy Ptd Ltd",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
name: octopus-agent-auto-upgrader
namespace: NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
name: octopus-agent-scripts
namespace: NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
name: octopus-agent-tentacle
namespace: NAMESPACE
spec:
Expand All @@ -23,8 +23,8 @@ 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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
spec:
affinity:
nodeAffinity:
Expand Down Expand Up @@ -77,7 +77,7 @@ should match snapshot:
- name: OCTOPUS__K8STENTACLE__HELMRELEASENAME
value: RELEASE-NAME
- name: OCTOPUS__K8STENTACLE__HELMCHARTVERSION
value: 1.19.0
value: 1.19.1
- name: OCTOPUS__K8STENTACLE__DISABLEAUTOPODCLEANUP
value: "false"
- name: OCTOPUS__K8STENTACLE__DISABLEPODEVENTSINTASKLOG
Expand All @@ -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.2504
image: octopusdeploy/kubernetes-agent-tentacle:8.2.2514
imagePullPolicy: IfNotPresent
name: octopus-agent-tentacle
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
name: octopus-agent-RELEASE-NAME-pvc
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2504
helm.sh/chart: kubernetes-agent-1.19.0
app.kubernetes.io/version: 8.2.2514
helm.sh/chart: kubernetes-agent-1.19.1
name: octopus-agent-tentacle
namespace: NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ tests:
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: "octopusdeploy/kubernetes-agent-tentacle:8.2.2504-bullseye-slim"
value: "octopusdeploy/kubernetes-agent-tentacle:8.2.2514-bullseye-slim"
2 changes: 1 addition & 1 deletion charts/kubernetes-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ agent:
image:
repository: octopusdeploy/kubernetes-agent-tentacle
pullPolicy: IfNotPresent
tag: "8.2.2504"
tag: "8.2.2514"
tagSuffix: ""

# -- Credentials used during agent-upgrade tasks. To be populated if encountering rate-limiting failures.
Expand Down
1 change: 1 addition & 0 deletions tests/kubernetes-agent/KubernetesAgent.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002EMemberReordering_002EMigrations_002ECSharpFileLayoutPatternRemoveIsAttributeUpgrade/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAddAccessorOwnerDeclarationBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAlwaysTreatStructAsNotReorderableMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
Expand Down
Loading