Skip to content

Conversation

@yuvraj-singh-3
Copy link
Contributor

@yuvraj-singh-3 yuvraj-singh-3 commented Aug 26, 2025

Description

This PR make following changes:

  1. Adding support to configure priority class for agent daemonset. Issue: priorityClass is not configurable in agent's daemonset #188
  2. Adding support to make updateStrategy configurable for agent daemonset. Issue: Add support for making the update strategy configurable #187

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

variables.tf Outdated
variable "create_priority_class" {
type = bool
description = "Specify whether or not to create a priority class for the agent daemonset."
default = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this default to true? I'm guessing any user with a general use-case wouldn't need it.
setting this to true, is it your project specific requirement?

Copy link
Contributor Author

@yuvraj-singh-3 yuvraj-singh-3 Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In old module & chart, the daemonset had priority class enabled by default, see here.
Changed it to false

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 1, 2025

/run pipeline

Aashiq-J
Aashiq-J previously approved these changes Sep 1, 2025
Copy link
Member

@Aashiq-J Aashiq-J left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 1, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

Aashiq-J
Aashiq-J previously approved these changes Sep 2, 2025
@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

Aashiq-J
Aashiq-J previously approved these changes Sep 2, 2025
@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments:

  • It would seem some of the new inputs can't be null. for those, please use nullable = false.
  • Please use "monitoring agent" instead of sysdig in the variable descrptions.

variables.tf Outdated

variable "max_surge" {
type = string
description = "The maximum number of nodes that can have an extra DaemonSet pod during a rolling update. Accepts absolute number or percentage (e.g., '1' or '10%')."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value of this is null. What does that mean for the deployment? Please include that detail in the description 9same for DA descrption)

main.tf Outdated
${line}
%{endfor~}
"createPriorityClass": ${var.create_priority_class}
"priorityClassName": ${var.priority_class_name == null ? "null" : var.priority_class_name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "priorityClassName": "null" a supported helm value ? Should we use yaml templating here to simply omit priorityClassName from the yaml if its null?

variables.tf Outdated
}
}

variable "create_priority_class" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this boolean? Can't we just set it to true in the yaml if priority_class_name and priority_class_value have values? That would mean one less user input

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 2, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 3, 2025

/run pipeline

@Aashiq-J Aashiq-J requested a review from ocofaigh September 3, 2025 12:56
@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 3, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 4, 2025

/run pipeline

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few more comments on variable description updates - ensure they are done in both module and DA

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 5, 2025

/run pipeline

1 similar comment
@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 5, 2025

/run pipeline

ocofaigh
ocofaigh previously approved these changes Sep 5, 2025
@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 5, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 5, 2025

/run pipeline

@Aashiq-J
Copy link
Member

Aashiq-J commented Sep 5, 2025

/run pipeline

@ocofaigh ocofaigh merged commit c7b8e26 into terraform-ibm-modules:main Sep 5, 2025
2 checks passed
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants