-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add kubernetes monitor sub-chart #354
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 16a57f8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -0,0 +1,5 @@ | |||
--- | |||
"kubernetes-agent": minor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kinda devils advocate, but should this be a major
bump?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's backwards compatible, but adding new functionality, so left it as a minor
according to SemVer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, happy with that. Just wanted to ask the question :)
# Used to enable the Kubernetes Monitor | ||
# Do not use this, as it is not supported at the moment | ||
# @ignored | ||
kubernetes-monitor-chart: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could just be kubernetesMonitor
?
The fact it's a chart is kinda irrelevant for the values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When setting values, the sub-charts name is the root of the values for that particular chart. This allows us to expose (in future) the documentation for the subchart in our readme. If we use kubernetesMonitor
, we'd need to name the chart kubernetesMonitor
, which clashes with the actual image 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha 👍
@@ -0,0 +1,6 @@ | |||
dependencies: | |||
- name: kubernetes-monitor-chart | |||
repository: oci://docker.io/octopusdeploy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to change the repo this chart is pulled from? (say if I want to pull from Artifactory?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, though this is only referenced once during build time, so I didn't see a reason to make it configurable. The build downloads all sub-charts (note the Chart.lock), then packages all subcharts into the helm chart as part of the packaging process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk, we can always change it if we need to in the future 👍
This PR adds the kubernetes monitor to the agent as a helm dependency, and defaults the installation to
false
. This allows us to (in future) allow anyone using the agent to also enable the monitor.