Skip to content

feat: Add join e2e tests#81

Merged
ryanzhang-oss merged 1 commit intoAzure:mainfrom
helayoty:e2e-join
Jun 24, 2022
Merged

feat: Add join e2e tests#81
ryanzhang-oss merged 1 commit intoAzure:mainfrom
helayoty:e2e-join

Conversation

@helayoty
Copy link
Contributor

@helayoty helayoty commented Jun 10, 2022

Description of your changes

This PR has:

  • Implement join e2e
  • Fix rbac permissions for hub/member charts
  • Introduce secret-token object in the hub-agent chart so we can pull it out into member cluster
  • Remove creating kind clusters and install helm charts from ci as it introduced failure to update hub token/url
  • Update the refresh token tests

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@helayoty helayoty marked this pull request as ready for review June 22, 2022 22:35
env:
KUBECONFIG: /home/runner/.kube/config
KUBECONFIG: '/home/runner/.kube/config'
HUB_SERVER_URL: 'https://172.19.0.2:6443' No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shouldn't be hard coded. I couldn't find a way to pass this variable to the e2e test here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need for multiple nodes in the e2e tests

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Install helm
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to remove all the setup to be makefile targets. It failed to update the token/URL in the previous setup

@helayoty helayoty changed the title feat: Add join e2e tests feat: Add join & leave e2e tests Jun 22, 2022
@helayoty helayoty requested review from Arvindthiru, minhng22 and ryanzhang-oss and removed request for Arvindthiru June 22, 2022 23:39
Copy link
Member

@minhng22 minhng22 left a comment

Choose a reason for hiding this comment

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

Some minors comments. I would do more review on this.

@helayoty helayoty requested a review from minhng22 June 23, 2022 00:10
env:
KUBECONFIG: /home/runner/.kube/config
KUBECONFIG: '/home/runner/.kube/config'
HUB_SERVER_URL: 'https://172.19.0.2:6443' No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this static?

@helayoty helayoty marked this pull request as draft June 23, 2022 22:46
@helayoty helayoty changed the title feat: Add join & leave e2e tests feat: Add join e2e tests Jun 24, 2022
@helayoty helayoty marked this pull request as ready for review June 24, 2022 21:30
Copy link
Contributor

@ryanzhang-oss ryanzhang-oss left a comment

Choose a reason for hiding this comment

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

we can adjust this later

@ryanzhang-oss ryanzhang-oss merged commit c2ee1e5 into Azure:main Jun 24, 2022
britaniar pushed a commit to britaniar/fleet that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants