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

Multi master #47

Closed
wants to merge 55 commits into from
Closed

Multi master #47

wants to merge 55 commits into from

Commits on May 4, 2020

  1. v1alpha3 first cut

    deitch committed May 4, 2020
    Configuration menu
    Copy the full SHA
    8594a5a View commit details
    Browse the repository at this point in the history
  2. fix drone

    deitch committed May 4, 2020
    Configuration menu
    Copy the full SHA
    22a200d View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. remove the projectID from PacketMachine crd

    It does not look like the PacketMachine needs a ProjectID. It is a value
    that we get from the PacketCluster.
    
    It is not even generated from the `make examples` file and when applied
    via kubectl it fails because PachetMachine.ProjectID is a required field
    in openapi.
    Gianluca Arbezzano committed May 5, 2020
    Configuration menu
    Copy the full SHA
    f3ff217 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #13 from gianarb/fix/packet-machine-crd-spec-proje…

    …ctID
    
    remove the projectID from PacketMachine crd
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    ec6b1ee View commit details
    Browse the repository at this point in the history
  3. v0.3.3

    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    536b3a0 View commit details
    Browse the repository at this point in the history
  4. update the cluster template with required fields

    Gianluca Arbezzano committed May 5, 2020
    Configuration menu
    Copy the full SHA
    c8f801e View commit details
    Browse the repository at this point in the history
  5. Merge pull request #15 from gianarb/fix/cluster-example-fields

    update the cluster template with required fields
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    fd70e71 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    044c112 View commit details
    Browse the repository at this point in the history
  7. fix ci installing kubebuilder

    At the end of the story it took me an hour to understand the issue and 1
    minutes to fix it. I suppose.
    
    The kubebuilder installation process is already part of the Makefile,
    but it was not used in CI.
    
    now it should work.
    Gianluca Arbezzano committed May 5, 2020
    Configuration menu
    Copy the full SHA
    4f08400 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #17 from gianarb/fix/kubebuilder-in-ci

    fix ci installing kubebuilder
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    360a60a View commit details
    Browse the repository at this point in the history
  9. fix ci image build test

    It is cool that we cache the go dependency as a separate layer so images
    will take care of caching for us! But it does not come for free!!
    Gianluca Arbezzano committed May 5, 2020
    Configuration menu
    Copy the full SHA
    20ed1ce View commit details
    Browse the repository at this point in the history
  10. Merge pull request #18 from gianarb/fix/ci-image-build

    fix ci image build test
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    ca0fb08 View commit details
    Browse the repository at this point in the history
  11. Fix image build

    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    dd07139 View commit details
    Browse the repository at this point in the history
  12. Merge pull request #20 from packethost/align-dockerfile

    Fix image build
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    7771d02 View commit details
    Browse the repository at this point in the history
  13. fix manager adding custerv1 schema types

    The types.Machine or Cluster from v1alpha3 where not right registered to
    the manager
    Gianluca Arbezzano committed May 5, 2020
    Configuration menu
    Copy the full SHA
    ab06c61 View commit details
    Browse the repository at this point in the history
  14. Merge pull request #21 from gianarb/fix/register-cluterv1-schema

    fix manager adding custerv1 schema types
    deitch committed May 5, 2020
    Configuration menu
    Copy the full SHA
    60483cd View commit details
    Browse the repository at this point in the history

Commits on May 6, 2020

  1. Configuration menu
    Copy the full SHA
    c237615 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #23 from packethost/fix-kubebuilder-annotations

    fix annotations so the CRDs are correct
    gianarb committed May 6, 2020
    Configuration menu
    Copy the full SHA
    99f68e8 View commit details
    Browse the repository at this point in the history
  3. set correct provider ID

    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    8001489 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #24 from packethost/set-provider-id

    set correct provider ID
    gianarb committed May 6, 2020
    Configuration menu
    Copy the full SHA
    9f2a056 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fd5a224 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #26 from packethost/proper-packetcluster-status

    proper cluster reconcile loop, remove finalizers on delete
    gianarb committed May 6, 2020
    Configuration menu
    Copy the full SHA
    5134d42 View commit details
    Browse the repository at this point in the history
  7. trigger finalizer even if the machine is already deleted from packet

    If we attempt to remove a machine that is not running on Packet (for any
    reason), we are in a loop where the reconciler returns 404 from Packet
    API and the source never gets deleted.
    
    This code should check for a 404, and it should pass forward the
    finalizer trigger a garbage collection.
    
    I presume we do not need to check for the number of `instances` anymore,
    because if they are `0` we never get over the `not found error`.
    Gianluca Arbezzano committed May 6, 2020
    Configuration menu
    Copy the full SHA
    a293edd View commit details
    Browse the repository at this point in the history
  8. bootstrap data secret must be set

    From v1alpha2 to v1alpha3 the Bootstrap.Data field got deprecated in
    favour of Bootstrap.DataSecretName as you can see:
    
    https://cluster-api.sigs.k8s.io/developer/providers/v1alpha2-to-v1alpha3.html#data-generated-from-a-bootstrap-provider-is-now-stored-in-a-secret
    Gianluca Arbezzano committed May 6, 2020
    Configuration menu
    Copy the full SHA
    49ef02f View commit details
    Browse the repository at this point in the history
  9. handle no ID on creation

    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b0bbc4b View commit details
    Browse the repository at this point in the history
  10. Merge pull request #25 from gianarb/feature/skip-device-delete-if-not…

    …-present
    
    trigger finalizer even if the machine is already deleted from packet
    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    2cd36af View commit details
    Browse the repository at this point in the history
  11. Merge pull request #28 from gianarb/fix/bootstrap-data-secret-check

    bootstrap data secret must be set
    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    b430e34 View commit details
    Browse the repository at this point in the history
  12. Merge pull request #29 from packethost/creation-id

    handle no ID on creation
    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    e59d076 View commit details
    Browse the repository at this point in the history
  13. fix packet go client wrong import

    Gianluca Arbezzano committed May 6, 2020
    Configuration menu
    Copy the full SHA
    6ab5908 View commit details
    Browse the repository at this point in the history
  14. Merge pull request #30 from gianarb/fix/packet-client-wrong-import

    fix packet go client wrong import
    deitch committed May 6, 2020
    Configuration menu
    Copy the full SHA
    0be9274 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2020

  1. fix device tags

    The tags generated by the machine controller where not merged with the
    one passed from the MachineSpec. This PR fixes the issue. Now we can use
    those labels to filter devices via packet api.
    Gianluca Arbezzano committed May 7, 2020
    Configuration menu
    Copy the full SHA
    da73f9d View commit details
    Browse the repository at this point in the history
  2. get ip from control plan during cluster reconciliation

    Gianluca Arbezzano committed May 7, 2020
    Configuration menu
    Copy the full SHA
    330baca View commit details
    Browse the repository at this point in the history
  3. Merge pull request #31 from gianarb/fix/merge-basetags

    fix device tags
    gianarb committed May 7, 2020
    Configuration menu
    Copy the full SHA
    aa900b3 View commit details
    Browse the repository at this point in the history
  4. handle more status coming from packet device api

    By default we mark a machine failed when it returns a status that we do
    not know. I think it is very reasonable. But we were not handled a few
    status: provisioning and queued.
    Gianluca Arbezzano committed May 7, 2020
    Configuration menu
    Copy the full SHA
    8b6f4e7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #32 from gianarb/feature/get-master-ip

    get ip from control plan during cluster reconciliation
    deitch committed May 7, 2020
    Configuration menu
    Copy the full SHA
    8c78b08 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2020

  1. Configuration menu
    Copy the full SHA
    e8f4f46 View commit details
    Browse the repository at this point in the history
  2. add requeue timeouts for when machine cannot start because cluster or…

    … bootstrap is not ready
    deitch committed May 8, 2020
    Configuration menu
    Copy the full SHA
    deeab30 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #35 from packethost/requeue-workers

    add requeue timeouts for when machine cannot start because cluster or…
    gianarb committed May 8, 2020
    Configuration menu
    Copy the full SHA
    c29e9b9 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #34 from packethost/simplify-build

    simplify manual install of a new cluster with make target
    deitch committed May 8, 2020
    Configuration menu
    Copy the full SHA
    5ffcc3c View commit details
    Browse the repository at this point in the history
  5. handle device in provisioning state

    By default we mark a machine as failed when we receive an unrecognized
    state. We were not handling the `provisioning` state.
    Gianluca Arbezzano committed May 8, 2020
    Configuration menu
    Copy the full SHA
    d6a4cad View commit details
    Browse the repository at this point in the history
  6. bump cluster api to 0.3.5

    because why not?
    Gianluca Arbezzano committed May 8, 2020
    Configuration menu
    Copy the full SHA
    a3814d1 View commit details
    Browse the repository at this point in the history
  7. Merge pull request #38 from gianarb/handle-provisioning-state

    handle device in provisioning state
    gianarb committed May 8, 2020
    Configuration menu
    Copy the full SHA
    e14ee34 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2020

  1. Merge pull request #39 from gianarb/chore/bump-cluster-api-0.3.5

    bump cluster api to 0.3.5
    deitch committed May 11, 2020
    Configuration menu
    Copy the full SHA
    7f9b54d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7858ace View commit details
    Browse the repository at this point in the history
  3. Merge pull request #42 from packethost/update-controller-gen

    ensure controller-gen exists and is minimum right version
    gianarb committed May 11, 2020
    Configuration menu
    Copy the full SHA
    3931dd1 View commit details
    Browse the repository at this point in the history
  4. move from APIEndpoint to control plane endpoint

    Gianluca Arbezzano committed May 11, 2020
    Configuration menu
    Copy the full SHA
    dfbdc7c View commit details
    Browse the repository at this point in the history
  5. Merge pull request #40 from gianarb/feature/from-apiendpoint-to-contr…

    …ol-endpoint
    
    move from APIEndpoint to control plane endpoint
    gianarb committed May 11, 2020
    Configuration menu
    Copy the full SHA
    9bc9b20 View commit details
    Browse the repository at this point in the history
  6. kubelet runs on master

    with the userdata currently it place in this PR the master gets a
    running kubelet.
    
    As reported on Jira, the kubelet is not running because we do not
    install a CNI yet, but this is not crucial at the moment.
    
    The userdata has some fixed values that we have to remove, like the
    ROLE. We will get there moving forward.
    
    I would like to fix the certificate issue first
    Gianluca Arbezzano committed May 11, 2020
    Configuration menu
    Copy the full SHA
    ece43f8 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2020

  1. make kubelet Status=Ready on master

    Gianluca Arbezzano committed May 12, 2020
    Configuration menu
    Copy the full SHA
    c082c7e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #44 from gianarb/feature/kubelet-works-on-mater

    kubelet runs on master
    gianarb committed May 12, 2020
    Configuration menu
    Copy the full SHA
    6dff23a View commit details
    Browse the repository at this point in the history
  3. add support for packetmachinetemplate types

    This is the generated code required to support a PacketMachineTemplate
    Gianluca Arbezzano committed May 12, 2020
    Configuration menu
    Copy the full SHA
    eebc6d8 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #45 from gianarb/feature/add-machinetemplates-types

    add support for packetmachinetemplate types
    gianarb committed May 12, 2020
    Configuration menu
    Copy the full SHA
    6b15da6 View commit details
    Browse the repository at this point in the history
  5. update example to use MachineDeployment

    The right way to go here is via MachineSet, MachineDeployment.
    Those are almost the equivalent of ReplicaSet and Deployment for pod.
    
    * MachineSet represents an immutable group of Machine
    * MachineDeployment manage the lifecycle of MachineSet
    
    I updated our example to use those for pod rollout.
    By consequence the example also uses KubeadmConfigTemplate and
    PacketMachineTemplate
    
    Control Plane management will come in another PR.
    Gianluca Arbezzano committed May 12, 2020
    Configuration menu
    Copy the full SHA
    4ee1adf View commit details
    Browse the repository at this point in the history
  6. Merge pull request #46 from gianarb/example/machine-deployment

    update example to use MachineDeployment
    gianarb committed May 12, 2020
    Configuration menu
    Copy the full SHA
    f82fe55 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

  1. template for multi master support via kubeadmcontrolplane

    Gianluca Arbezzano committed May 13, 2020
    Configuration menu
    Copy the full SHA
    ee6954c View commit details
    Browse the repository at this point in the history