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

Minor improvements to addons #1414

Merged
merged 3 commits into from
Jul 9, 2021
Merged

Conversation

xmudrii
Copy link
Member

@xmudrii xmudrii commented Jul 9, 2021

What this PR does / why we need it:

This PR introduces the following changes to addons:

  1. Replace stringData with data in Secrets
    • kubectl apply is keeping the manifest used to apply the object in the kubectl.kubernetes.io/last-applied-configuration annotation
    • If stringData is used for creating the Secret, the annotation will contain the plain-text Secret instead of base64 encoded
    • Packet CCM is still using stringData. This will be fixed in a follow-up
  2. Add caBundle-hash annotation to vSphere and OpenStack CCM addons
    • This was forgotten when migrating from the Go templates
  3. Add cloudConfig-hash annotation to vSphere and OpenStack CCM addons
    • This is a new annotation. It's used to restart the CCM pods if the cloud-config is changed
    • Some CCMs can automatically reload the config, but it might be delayed. I believe it's safer to explicitly restart the pods using the annotation (similar as we do for the CA bundle)

Does this PR introduce a user-facing change?:

NONE

/assign @kron4eg

xmudrii added 3 commits July 9, 2021 11:47
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@xmudrii xmudrii requested a review from kron4eg July 9, 2021 10:47
@kubermatic-bot kubermatic-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Jul 9, 2021
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xmudrii

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 9, 2021
@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2021
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: e76dbc8ad105b86475851c6d70f7badebd8bc9e2

@kubermatic-bot kubermatic-bot merged commit c1ab3b0 into master Jul 9, 2021
@kubermatic-bot kubermatic-bot added this to the KubeOne 1.3 milestone Jul 9, 2021
@kubermatic-bot kubermatic-bot deleted the replace-stringdata-data branch July 9, 2021 10:56
hwuethrich added a commit to hwuethrich/kubeone that referenced this pull request Aug 3, 2021
* upstream/master: (75 commits)
  Fix addind second container to machinecontroller webhook deployment (kubermatic#1433)
  Update digitalocean CCM to v0.1.33 (kubermatic#1429)
  Update hetzner CCM manifest to v1.9.1 (kubermatic#1428)
  Improve the v1.3.0-alpha.0 changelog (kubermatic#1425)
  Update CHANGELOG for v1.3.0-alpha.0 (kubermatic#1424)
  Upgrade machinecontroller addon apiextensions to v1 API (kubermatic#1423)
  New drainer (kubermatic#1422)
  Add .clusterNetwork.kubeProxy config example (kubermatic#1421)
  New kube-proxy configuration API (kubermatic#1420)
  Run E2E tests if addons are changed (kubermatic#1417)
  Replace stringData with data in Packet cloud-config Secret (kubermatic#1415)
  Fix kubeone reset error when trying to list Machines (kubermatic#1416)
  Hetzner CSI addon (kubermatic#1418)
  Minor improvements to addons (kubermatic#1414)
  machine-controller: Inject EnvVarBindings only for needed credentials (kubermatic#1413)
  Migrate machine-controller to new addons mechanism (kubermatic#1412)
  Replace the vSphere CCM Go template with an embedded addon (kubermatic#1410)
  Replace the metrics-server CCM Go template with an embedded addon (kubermatic#1411)
  Replace the OpenStack CCM Go template with an embedded addon (kubermatic#1402)
  Migrate WeaveNet to YAML addons (kubermatic#1407)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants