Skip to content

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

Merged
nathancoleman merged 3 commits intorelease/1.2.xfrom
backport/consider-init-containers-when-diffing/positively-closing-fly
Feb 7, 2024
Merged

Backport of [NET-6465] Consider init container resources when determining if existing + desired deployments are equal into release/1.2.x#3577
nathancoleman merged 3 commits intorelease/1.2.xfrom
backport/consider-init-containers-when-diffing/positively-closing-fly

Conversation

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

@hc-github-team-consul-core hc-github-team-consul-core commented Feb 7, 2024

Backport

This PR is auto-generated from #3575 to be assessed for backporting due to the inclusion of the label backport/1.2.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/positively-closing-fly branch from 139e7d2 to 1ebc86e Compare February 7, 2024 21:44
@nathancoleman nathancoleman marked this pull request as ready for review February 7, 2024 22:25
@nathancoleman nathancoleman enabled auto-merge (squash) February 7, 2024 22:41
@nathancoleman nathancoleman merged commit 7b4510d into release/1.2.x Feb 7, 2024
@nathancoleman nathancoleman deleted the backport/consider-init-containers-when-diffing/positively-closing-fly branch February 7, 2024 22:42
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