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

feat(apiservices): implement apiservice mock server #579

Closed
wants to merge 3 commits into from

Conversation

njhale
Copy link
Member

@njhale njhale commented Nov 21, 2018

Description

  • Implements a mock extension api-server (mock-ext-server) which can be configured to register mock GVKs with discovery.
  • Uses mock-ext-server in TestCreateCSVWithOwnedAPIService e2e test.
  • Uses default ServiceAccount if none are listed in a CSVs owned APIService deployment spec.
  • Runs goimports on project.

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 21, 2018
@njhale
Copy link
Member Author

njhale commented Nov 21, 2018

/assign @jpeeler
/assign @alecmerdler

@alecmerdler
Copy link
Member

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alecmerdler

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 21, 2018
Copy link
Member

@alecmerdler alecmerdler left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2018
@njhale njhale closed this Nov 26, 2018
@njhale njhale reopened this Nov 26, 2018
@njhale
Copy link
Member Author

njhale commented Nov 26, 2018

/retest

1 similar comment
@njhale
Copy link
Member Author

njhale commented Nov 26, 2018

/retest

@njhale njhale closed this Nov 26, 2018
@njhale njhale reopened this Nov 26, 2018
@njhale
Copy link
Member Author

njhale commented Nov 26, 2018

/test e2e-aws

3 similar comments
@njhale
Copy link
Member Author

njhale commented Nov 26, 2018

/test e2e-aws

@njhale
Copy link
Member Author

njhale commented Nov 26, 2018

/test e2e-aws

@njhale
Copy link
Member Author

njhale commented Nov 27, 2018

/test e2e-aws

package v1alpha1

import (
// "k8s.io/apimachinery/pkg/runtime"
Copy link
Member

Choose a reason for hiding this comment

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

Lots commented here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thought I had already removed this. Will do soon.

@@ -14,6 +14,7 @@ WORKDIR /
COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager/bin/olm /bin/olm
COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager/bin/catalog /bin/catalog
COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager/bin/package-server /bin/package-server
COPY --from=builder /go/src/github.com/operator-framework/operator-lifecycle-manager/bin/mock-ext-server /bin/mock-ext-server
Copy link
Member

Choose a reason for hiding this comment

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

do we want this in non-test containers?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes you are correct. This should only be in test containers.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 28, 2018
@openshift-ci-robot
Copy link
Collaborator

New changes are detected. LGTM label has been removed.

@openshift-bot
Copy link
Contributor

@njhale: PR needs rebase.

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.

@njhale njhale closed this Nov 30, 2018
@njhale njhale reopened this Nov 30, 2018
@openshift-bot
Copy link
Contributor

@njhale: PR needs rebase.

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.

@openshift-ci-robot
Copy link
Collaborator

@njhale: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/schema-check 19675f4 link /test schema-check
ci/prow/verify 19675f4 link /test verify
ci/prow/e2e-aws 19675f4 link /test e2e-aws
ci/prow/e2e-aws-olm 19675f4 link /test e2e-aws-olm
ci/prow/images 19675f4 link /test images
ci/prow/unit 19675f4 link /test unit

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

@njhale: PR needs rebase.

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.

@njhale
Copy link
Member Author

njhale commented Dec 3, 2018

Superseded by #593

@njhale njhale closed this Dec 3, 2018
@njhale njhale deleted the mock-ext-server branch September 30, 2019 21:37
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. 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.

6 participants