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

[dhctl] mirror: generate DeckhouseRelease manifests for mirrored releases #7697

Merged
merged 5 commits into from
Mar 6, 2024

Conversation

mvasl
Copy link
Member

@mvasl mvasl commented Mar 1, 2024

Description

Added generation of DeckhouseReleases manifests for pulled releases during mirror pull.

Why do we need it, and what problem does it solve?

This is required to correctly update older versions of deckhouse with mirror dumps.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: dhctl
type: feature
summary: "Generate `DeckhouseRelease` manifests for mirrored releases."
impact_level: default

…ases

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
@mvasl mvasl added this to the v1.58.3 milestone Mar 1, 2024
@mvasl mvasl self-assigned this Mar 1, 2024
@github-actions github-actions bot added area/cli Pull requests that update cli go Pull requests that update Go code labels Mar 1, 2024
@mvasl mvasl added the skip/e2e Skip running e2e test for pass pull request check label Mar 1, 2024
@mvasl mvasl marked this pull request as ready for review March 1, 2024 16:26
@mvasl
Copy link
Member Author

mvasl commented Mar 4, 2024

Снимок экрана 2024-03-01 в 18 52 55
---
apiVersion: deckhouse.io/v1alpha1
approved: false
kind: DeckhouseRelease
metadata:
  creationTimestamp: null
  name: v1.58.1
spec:
  changelog:
    cni-cilium:
      fixes:
      - impact: Cilium-agent pods may be reloaded.
        pull_request: https://github.com/deckhouse/deckhouse/pull/7576
        summary: Improve `safe-agent-updater`.
    control-plane-manager:
      fixes:
      - impact: Prevents the Deckhouse version update error from being skipped.
        pull_request: https://github.com/deckhouse/deckhouse/pull/7637
        summary: Fix race reading between the deckhouse pod status and the `minUsedControlPlaneKubernetesVersion`
          variable.
    deckhouse-controller:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7625
        summary: Add CA certificates to the standard `/etc/ssl/` path.
    monitoring-kubernetes:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7622
        summary: Fix `UnsupportedContainerRuntimeVersion` alert to support the newest
          containerd versions (`1.7.*`).
    prometheus:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7636
        summary: Fix validating webhook build for promtool work.
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7636
        summary: Fix Prometheus build to return sample limit patch.
  changelogLink: https://github.com/deckhouse/deckhouse/releases/tag/v1.58.1
  requirements:
    containerdOnAllNodes: "true"
    ingressNginx: "1.1"
    istioVer: "1.16"
    k8s: 1.25.0
    nodesMinimalOSVersionUbuntu: "18.04"
  version: v1.58.1
---
apiVersion: deckhouse.io/v1alpha1
approved: false
kind: DeckhouseRelease
metadata:
  creationTimestamp: null
  name: v1.57.5
spec:
  changelog:
    cni-cilium:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7479
        summary: Update documentation.
    dhctl:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7470
        summary: Change the order in which resources are created. Service accounts
          will be created before secrets.
    log-shipper:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7484
        summary: Minor documentation updates.
    loki:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7442
        summary: Update documentation.
    monitoring-kubernetes:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7483
        summary: Minor documentation updates.
    node-manager:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7465
        summary: Fix panic when the vSphere driver creates a disk.
    prometheus:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7482
        summary: Minor documentation updates.
  changelogLink: https://github.com/deckhouse/deckhouse/releases/tag/v1.57.5
  requirements:
    containerdOnAllNodes: "true"
    ingressNginx: "1.1"
    istioVer: "1.16"
    k8s: 1.24.0
    nodesMinimalOSVersionUbuntu: "18.04"
  version: v1.57.5
---
apiVersion: deckhouse.io/v1alpha1
approved: false
kind: DeckhouseRelease
metadata:
  creationTimestamp: null
  name: v1.58.2
spec:
  changelog:
    docs:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7673
        summary: Add info about using client secrets in Azure.
    ingress-nginx:
      fixes:
      - impact: Ingress nginx controller will restart.
        pull_request: https://github.com/deckhouse/deckhouse/pull/7666
        summary: Add libraries to the final image.
    log-shipper:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7686
        summary: Add missing ca-certs to prevent errors with HTTPS connections.
    openvpn:
      fixes:
      - pull_request: https://github.com/deckhouse/deckhouse/pull/7686
        summary: Add missing ca-certs to prevent errors with HTTPS connections.
  changelogLink: https://github.com/deckhouse/deckhouse/releases/tag/v1.58.2
  requirements:
    containerdOnAllNodes: "true"
    ingressNginx: "1.1"
    istioVer: "1.16"
    k8s: 1.25.0
    nodesMinimalOSVersionUbuntu: "18.04"
  version: v1.58.2

@z9r5 z9r5 modified the milestones: v1.58.3, v1.58.4 Mar 5, 2024
@mvasl mvasl requested a review from yalosev March 5, 2024 14:59
mvasl and others added 3 commits March 6, 2024 10:10
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
Signed-off-by: Maxim Vasilenko <5184586+mvasl@users.noreply.github.com>
…ases

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
…ases' into feature/mirror-gen-deckhousereleases

# Conflicts:
#	dhctl/pkg/apis/v1alpha1/deckhouse_release.go
#	dhctl/pkg/operations/mirror/deckhouse_releases.go
@mvasl mvasl requested a review from name212 March 6, 2024 09:23
Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
@mvasl mvasl force-pushed the feature/mirror-gen-deckhousereleases branch from 8a3de76 to 462dba2 Compare March 6, 2024 11:14
@z9r5 z9r5 modified the milestones: v1.58.4, v1.58.3 Mar 6, 2024
@z9r5 z9r5 added the status/backport Backport pr label Mar 6, 2024
@z9r5 z9r5 merged commit 0edd645 into main Mar 6, 2024
39 checks passed
@z9r5 z9r5 deleted the feature/mirror-gen-deckhousereleases branch March 6, 2024 12:18
github-actions bot pushed a commit that referenced this pull request Mar 6, 2024
…ases (#7697)

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
@deckhouse-BOaTswain
Copy link
Collaborator

Cherry pick PR 7735 to the branch release-1.58 successful!

deckhouse-BOaTswain added a commit that referenced this pull request Mar 6, 2024
…ases (#7697) (#7735)

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
Co-authored-by: Maxim Vasilenko <5184586+mvasl@users.noreply.github.com>
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
@deckhouse-BOaTswain deckhouse-BOaTswain removed the status/backport Backport pr label Mar 6, 2024
pashcovich pushed a commit that referenced this pull request Mar 6, 2024
…ases (#7697)

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
elenashliaga pushed a commit that referenced this pull request Mar 7, 2024
…ases (#7697)

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
Horiodino pushed a commit to Horiodino/deckhouse that referenced this pull request Apr 21, 2024
…ases (deckhouse#7697)

Signed-off-by: Maxim Vasilenko <maksim.vasilenko@flant.com>
Co-authored-by: Nikolay Mitrofanov <30695496+name212@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Pull requests that update cli go Pull requests that update Go code skip/e2e Skip running e2e test for pass pull request check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants