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

Fix e2e test #244

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Fix e2e test #244

merged 3 commits into from
Aug 10, 2023

Conversation

jepio
Copy link
Member

@jepio jepio commented Aug 10, 2023

the e2e test is currently testing the operator from quay.io instead of the one built+pushed to the local registry. Fix this.

@fidencio @mythi

Copy link
Member

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

lgtm, thanks @jepio!

jepio added 2 commits August 10, 2023 11:51
The 'kustomize edit set image' step needs to specify the correct 'name' to
override before the '=' sign otherwise it only overrides the tag for the image.
The previous version results in this entry (which does nothing to the manifest)

images:
- name: localhost:5000/cc-operator
  newTag: latest

and the new version does this:

images:
- name: quay.io/confidential-containers/operator
  newName: localhost:5000/cc-operator
  newTag: latest

The 'name' needs to be the quay entry and not 'controller' because there is
already a previous override in config/manager/kustomization.yaml.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
The kind cluster is connected to a different bridge than the registry , which
means the kind cluster can't pull from 'localhost:5000'. Connect the registry
to the same kind bridge and use the container name as a mirror for 'localhost'
so that pulling works.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@jepio jepio force-pushed the fix-e2e-test branch 4 times, most recently from 39ad91c to e65bdde Compare August 10, 2023 10:45
@fidencio
Copy link
Member

@jepio, please, add my commit from #245 as part of your series, and then drop c82b239, that was a regression introduced by me, sorry.

36664b5 introduced a regression as the
runtimeClass creation was left to the runtime payload, but we never
checked whether this actually was created neither updated the status on
the Operator side.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
@jepio
Copy link
Member Author

jepio commented Aug 10, 2023

/test

@fidencio
Copy link
Member

/test-tdx

@fidencio
Copy link
Member

Copy link
Contributor

@mythi mythi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the registry fixes @jepio!

@fidencio
Copy link
Member

@fidencio fidencio merged commit 85ec4a0 into confidential-containers:main Aug 10, 2023
@jepio jepio deleted the fix-e2e-test branch August 10, 2023 13:28
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.

3 participants