Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Code and config change: Packet to equinixmetal #1545

Merged
merged 4 commits into from
Sep 9, 2021

Commits on Sep 8, 2021

  1. packet: Migrate from Packet to Equinix Metal

    This commit migrates terraform related resources from Packet to Equinix
    Metal.
    
    It does so by:
    
    - replacing the Terraform provider `packethost/packet` with
      `equinix/metal`.
    - replacing the prefix `packet_` in `assets/terraform/packet/*` *.tf
      files with the prefix `metal_`.
    - Updates the module name from `module.packet` to `module.equinixmetal`,
      renames the directory `assets/terraform-modules/packet` to
      `assets/terraform-modules/equinixmetal`
    - change description in Terraform variables to Equinix Metal
    - rename code references from Packet to EquinixMetal
    - test: rename file and dir to equinixmetal
    - build tags: rename from packet to equinixmetal
    - docs: update packet to equinixmetal in configuration
    - ci: change packet to equinixmetal in cluster config
    - scripts: replace Packet with Equinix Metal
    - test: Rename PlatformPacket to PlatformEquinixMetal
    - update env vars referencing Packet to EM
    - ci: packet to equinixmetal
    
    Signed-off-by: Imran Pochi <imran@kinvolk.io>
    ipochi committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    8507eaf View commit details
    Browse the repository at this point in the history
  2. control-plane: packet-ccm with cloud-provider-equinix-metal

    This commit removes the Packet Cloud Controller Manager a.k.a
    packet-ccm as part of the migration to Equinix Metal.
    
    In its place, `cloud-provider-equinix-metal` is installed.
    
    For new Lokomotive clusters there won't be any difference because well
    the are fresh clusters.
    
    However, for existing clusters, users would need to uninstall the
    `packet-ccm` helm release and then proceed with cluster upgrade using
    `lokoctl cluster apply ...`.
    
    Note: During upgrade the user must pass the flag
    `--skip-pre-update-health-check`.
    
    Execution steps for existing clusters:
    
    1. Uninstall `packet-ccm` helm release
    
    ```
    helm uninstall packet-ccm --namespace kube-system
    
    ```
    
    2. Upgrade Lokomotive cluster to the latest release
    
    Note: Do not forget the `--skip-pre-update-health-check` flag
    
    ```
    lokoctl cluster apply --skip-components --skip-pre-update-health-check
    ```
    
    Signed-off-by: Imran Pochi <imran@kinvolk.io>
    ipochi committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    367539b View commit details
    Browse the repository at this point in the history
  3. control-plane: use custom cloud-provider-equinix-metal image

    This image includes the PR:
    kubernetes-sigs/cloud-provider-equinix-metal#201
    
    Signed-off-by: Imran Pochi <imran@kinvolk.io>
    ipochi committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    2dee6ec View commit details
    Browse the repository at this point in the history
  4. metallb: remove labels and custom values

    This commit removes the labels passed to the MetalLB ConfigMap, from
    nowonwards we only pass annotations.
    
    Also removes the custom values such as `metallb.lokomotive.io/<string>`
    for my-asn, peer-address, peer-asn and source-address.
    
    Since the move from Packet CCM to Cloud Provider Equinix Metal, we have
    removed such custom annotation values from CCM and hence, these values
    are removed from MetalLB as well.
    
    Also updated the MetalLB image to include a fix for supporting multiple
    peers. This image is based on top of peer autodiscovery support
    (metallb/metallb#593) and additionally contains
    the below commit on top.
    
    kinvolk/metallb@86016b7
    
    Signed-off-by: Imran Pochi <imran@kinvolk.io>
    ipochi committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    1136eb2 View commit details
    Browse the repository at this point in the history