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

✨ Support IPAM and runtime extension providers #7288

Conversation

fabriziopandini
Copy link
Member

What this PR does / why we need it:
This PR adds support for IPAM provider and runtime extensions in clusterctl, Tilt, and E2E tests; also test-extension has been reworked to be compliant with the clusterctl contract for providers + the handling of the ConfigMap has been simplified

Which issue(s) this PR fixes:
Fixes #6154

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 26, 2022
@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

/retest
(looks like a flake, although I've never seen that one before)

Copy link
Member

@sbueringer sbueringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good!

cmd/clusterctl/cmd/delete.go Outdated Show resolved Hide resolved
cmd/clusterctl/cmd/delete.go Outdated Show resolved Hide resolved
docs/book/src/clusterctl/provider-contract.md Outdated Show resolved Hide resolved
docs/book/src/developer/tilt.md Outdated Show resolved Hide resolved
docs/book/src/developer/tilt.md Outdated Show resolved Hide resolved
test/framework/clusterctl/client.go Outdated Show resolved Hide resolved
test/framework/clusterctl/e2e_config.go Show resolved Hide resolved
Tiltfile Outdated Show resolved Hide resolved
test/extension/handlers/lifecycle/handlers.go Show resolved Hide resolved
@sbueringer
Copy link
Member

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

Okay probably related:

      <*errors.withStack | 0xc0021c9db8>: {
          error: <*errors.withMessage | 0xc002128f60>{
              cause: <errors.aggregate | len:1, cap:1>[
                  <*errors.fundamental | 0xc0021c9d70>{
                      msg: "provider runtime-extension-test-extension not found in the target cluster",
                      stack: [0x1bba692, 0x1bb0596, 0x1bfc82a, 0x1bfc679, 0x1c05159, 0x1c97748, 0x85936d, 0x470521],
                  },
              ],
              msg: "failed to check providers in target cluster",
          },
          stack: [0x1bb0645, 0x1bfc82a, 0x1bfc679, 0x1c05159, 0x1c97748, 0x85936d, 0x470521],

@@ -129,43 +130,27 @@ func clusterUpgradeWithRuntimeSDKSpec(ctx context.Context, inputGetter func() cl
})

It("Should create, upgrade and delete a workload cluster", func() {
By("Deploy Test Extension")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the test extension deployed after removing this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test extension is deployed by clusterctl init because it is defined as a provider in the E2E config file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right - so to test using an existing cluster the test-extension should be deployed before running the test e.g. with tilt. That's why I couldn't get it working 🙂

@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

1 similar comment
@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@fabriziopandini
Copy link
Member Author

/test

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test pull-cluster-api-build-main
  • /test pull-cluster-api-e2e-main
  • /test pull-cluster-api-test-main
  • /test pull-cluster-api-test-mink8s-main
  • /test pull-cluster-api-verify-main

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-apidiff-main
  • /test pull-cluster-api-e2e-full-main
  • /test pull-cluster-api-e2e-informing-ipv6-main
  • /test pull-cluster-api-e2e-informing-main
  • /test pull-cluster-api-e2e-workload-upgrade-1-25-latest-main

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-apidiff-main
  • pull-cluster-api-build-main
  • pull-cluster-api-e2e-informing-ipv6-main
  • pull-cluster-api-e2e-informing-main
  • pull-cluster-api-e2e-main
  • pull-cluster-api-test-main
  • pull-cluster-api-test-mink8s-main
  • pull-cluster-api-verify-main

In response to this:

/test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-workload-upgrade-1-25-latest-main

@fabriziopandini
Copy link
Member Author

@sbueringer @killianmuldoon all the E2E tests are good, PTAL

bootstrap/kubeadm/config/default/manager_image_patch.yaml Outdated Show resolved Hide resolved
test/framework/clusterctl/repository.go Outdated Show resolved Hide resolved
test/framework/clusterctl/repository.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 29, 2022
@fabriziopandini fabriziopandini force-pushed the support-ipam-and-runtime-extension-providers branch from ebd86eb to 6881c75 Compare September 30, 2022 13:01
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 30, 2022
@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-test-full-main

@k8s-ci-robot
Copy link
Contributor

@fabriziopandini: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-cluster-api-build-main
  • /test pull-cluster-api-e2e-main
  • /test pull-cluster-api-test-main
  • /test pull-cluster-api-test-mink8s-main
  • /test pull-cluster-api-verify-main

The following commands are available to trigger optional jobs:

  • /test pull-cluster-api-apidiff-main
  • /test pull-cluster-api-e2e-full-main
  • /test pull-cluster-api-e2e-informing-ipv6-main
  • /test pull-cluster-api-e2e-informing-main
  • /test pull-cluster-api-e2e-workload-upgrade-1-25-latest-main

Use /test all to run the following jobs that were automatically triggered:

  • pull-cluster-api-apidiff-main
  • pull-cluster-api-build-main
  • pull-cluster-api-e2e-informing-ipv6-main
  • pull-cluster-api-e2e-informing-main
  • pull-cluster-api-e2e-main
  • pull-cluster-api-test-main
  • pull-cluster-api-test-mink8s-main
  • pull-cluster-api-verify-main

In response to this:

/test pull-cluster-api-test-full-main

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@fabriziopandini fabriziopandini force-pushed the support-ipam-and-runtime-extension-providers branch from 6881c75 to 64d8866 Compare September 30, 2022 13:34
@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

sbueringer commented Sep 30, 2022

Great work!

/lgtm

@fabriziopandini fabriziopandini force-pushed the support-ipam-and-runtime-extension-providers branch from 916e9ea to 09e290f Compare October 1, 2022 13:59
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2022
@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@fabriziopandini
Copy link
Member Author

rebased
renamed the flag from --extension to --runtime-extension (more specific)

@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 4, 2022
Copy link
Contributor

@ykakarap ykakarap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@fabriziopandini fabriziopandini force-pushed the support-ipam-and-runtime-extension-providers branch from 09e290f to 2fb12b1 Compare October 5, 2022 11:03
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 5, 2022
@fabriziopandini
Copy link
Member Author

fabriziopandini commented Oct 5, 2022

removed shortcut from --runtime-extension flag

@fabriziopandini
Copy link
Member Author

/test pull-cluster-api-e2e-full-main

@sbueringer
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 5, 2022
@killianmuldoon
Copy link
Contributor

/lgtm

@sbueringer
Copy link
Member

/approve

e2e-full is green

Great work 🎉

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 5, 2022
@sbueringer
Copy link
Member

cc @schrej :)

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for optional providers to clusterctl
5 participants