Skip to content

Backport of [NET-6465] Consider init container resources when determining if existing + desired deployments are equal into release/1.4.x#3579

Merged
hc-github-team-consul-core merged 3 commits intorelease/1.4.xfrom
backport/consider-init-containers-when-diffing/honestly-integral-maggot
Feb 7, 2024
Merged

Backport of [NET-6465] Consider init container resources when determining if existing + desired deployments are equal into release/1.4.x#3579
hc-github-team-consul-core merged 3 commits intorelease/1.4.xfrom
backport/consider-init-containers-when-diffing/honestly-integral-maggot

Conversation

@hc-github-team-consul-core
Copy link
Collaborator

Backport

This PR is auto-generated from #3575 to be assessed for backporting due to the inclusion of the label backport/1.4.x.

The below text is copied from the body of the original PR.


Note

This is a followup to #3531

Changes proposed in this PR

When there's an existing Deployment in the cluster and we're comparing it against our desired state to determine if there's an update to be made, the comparison needs to consider whether the resources for the init container(s) have been updated.

How I've tested this PR

  1. Create a Gateway on a cluster having helm install-ed with or without a value for .Values.connectInject.initContainer.resources.
  2. Change the value of .Values.connectInject.initContainer.resources and helm upgrade
  3. Verify that cycling the gateway Pod triggers an update to the resources of the init container to match your values. This cycling requirement is consistent with how regular service Deployments in Consul mesh behave due to needing some action to trigger the reconciliation process.

How I expect reviewers to test this PR

See above

Checklist


Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/consider-init-containers-when-diffing/honestly-integral-maggot branch from 739a77b to 4b8f675 Compare February 7, 2024 21:44
Copy link
Member

@nathancoleman nathancoleman left a comment

Choose a reason for hiding this comment

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

Matches source PR

@hc-github-team-consul-core hc-github-team-consul-core merged commit c1f763d into release/1.4.x Feb 7, 2024
@hc-github-team-consul-core hc-github-team-consul-core deleted the backport/consider-init-containers-when-diffing/honestly-integral-maggot branch February 7, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants