-
Notifications
You must be signed in to change notification settings - Fork 71
Sync olm 12-16 #233
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
Closed
Closed
Sync olm 12-16 #233
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…test failures (#2442) * Introduce mechanism for gathering test artifacts during individual test failures Update the testing e2e suite and add a mechanism for gathering test artifacts during individual test failures. Currently, container logs are gathered when deprovisioning upstream kind clusters, yet we lack fine-grain ability to diagnose test failures further. Note: test failures use the `CurrentGinkgoTestDescription.Failed` field to determine failures. Testing artifacts are only gathered when the base $ARTIFACTS_DIR environment variable has been specified. Add a collect-ci-artifacts.sh bash script, responsible for gathering OLM native resources for an individual testing namespace. This bash script will be called when tearing down the generated testing namespace for relevant e2e packages. Currently, the artifact gathering process is restricted to only a single namespace - longer term, it might be possible to instead migrate towards collecting resources that all share a similar label selector, and utilizing that label selector to handle multi-namespace testing scenarios. Introduce another helper function in test/e2e/util_test.go that's responsible for gathering test artifacts (i.e. calling this newly introduced script) when the test case had failed, and in either case, delete the namespace. Signed-off-by: timflannagan <[email protected]> * test/e2e: Refactor the bundle e2e tests to avoid using global test namespace Signed-off-by: timflannagan <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 4cc28bb74ff6721eb41491ec57c55cc47bc1ad84
Update the testing e2e packages and ensure that the $KUBECONFIG environment variable is correctly set before running the bash script responsible for collecting CI artifacts. This should fix the following error message that was popping up in individual CI runs: ``` collecting logs in the ./artifacts/ artifacts directory ../test/e2e/collect-ci-artifacts.sh: line 7: KUBECONFIG: parameter null or not set failed to collect namespace artifacts: exit status 1 ``` Update the kind provisioner to avoid prematurely removing the temporary directory that contains the constructed (and ephemeral) kubeconfig file and track that metadata in the TestContext structure. In the case that field is unset for that object, fall back to the os.Getenv("KUBECONFIG") value. Signed-off-by: timflannagan <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 6dc902654d4f2089da9da56cc6b1d574be995d20
Signed-off-by: Daniel Sover <[email protected]> Co-authored-by: Daniel Sover <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: d36949bb3b7353a43d8e8fc02033e0f09b7252bb
…parser (openshift#203) * feat(constraints): add compound constraints and olm.constraint value parser Signed-off-by: Eric Stroczynski <[email protected]> * renaming and add yaml tags Signed-off-by: Eric Stroczynski <[email protected]> Upstream-repository: api Upstream-commit: 40cb9fd4036ae1a58d84d29d4d14a47649b5f7f4
Upstream-repository: api Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
* go.*,vendor: Bump controller-runtime to v0.10.1 Signed-off-by: timflannagan <[email protected]> * pkg/controller: Update the CRD testEnv field to use the CRD type Update the CRD field to use the apiextensionsv1.CustomResourceDefinition type instead of the client.Object interface. It looks like this change was introduced during the sweep to k8s 1.22 bump: kubernetes-sigs/controller-runtime@b5eeb71 Signed-off-by: timflannagan <[email protected]> * go.*,vendor: Bump the o/api dependency for v1 CRDs Update the o/api dependency and pull in a new version that contains v1 CRDs. Newer controller-runtime versions don't support v1beta1 CRDs Signed-off-by: timflannagan <[email protected]> * pkg/controller: Update openshift-related tests after bumping o/api dependency Signed-off-by: timflannagan <[email protected]> * pkg,test: Update test fixtures that are instantiated with status fields Update the adoption controller test subscription fixture and remove the status sub-resource block that's shared between tests. When an object is created, it's status sub-resource is now removed, so changes are centered around setting this resource before firing off any Update calls used throughout this test package. Update any test/e2e APIs that also follow a similiar pattern. Upstream-repository: operator-lifecycle-manager Upstream-commit: 1f2472f3a190ae794f8983473f0cf81dd472d9ca
Signed-off-by: Eric Stroczynski <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 82fbb1aa0c391a2197e9a665759c3f94764850ab
…es (#2418) Signed-off-by: Eric Stroczynski <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 7a9e1af72b7d961e95dbe53d8878e9605576d8b5
* feat(resolver): support generic constraint using CEL Introduce the new type of constraint that uses CEL (Common Expression Language) as an expression language to define the constraint in a generic way. This type of constraint will allow operator authors to specify a dependency on any arbitrary properties in the bundle. This constraint also supports logical operator such as AND and OR in the CEL expression. Signed-off-by: Vu Dinh <[email protected]> * Add unit test for generic constraint and add some context on CEL library Add unit test cases for generic constraint using CEL to ensure it works properly in the resolver. Add some context for the custom library for semver comparison in CEL. Signed-off-by: Vu Dinh <[email protected]> * Use constraints library from api with simplified CEL library Signed-off-by: Vu Dinh <[email protected]> * Rebase against master to use property converter interface Signed-off-by: Vu Dinh <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: e3dfbc50dc67a31fef181cc560a537a17e51817b
Signed-off-by: Per G. da Silva <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: be0c556043441662899d19ddf048c77ee61ed34c
Problem: Within the catalogSource resource, the RegistryServiceStatus stores service information that is used to generate an address that OLM relies on in order to establish a connection with the associated pod. If the RegistryStatusService is not nil and is missing the namespace, name, and port information for its service, OLM is unable to recover until the catalogService's associated pod has an invalid image or spec. Solution: When reconciling a CatalogSource, OLM will now ensure that the RegistryServiceStatus of the catalogSource is valid and will update the catalogSource's status to reflect the change. Additionally, this address is stored within the status of the catalogSource within the status.GRPCConnectionState.Address field. If the address changes, OLM will update this field to reflect the new address as well. Signed-off-by: Alexander Greene <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: cabe200bdabed1cb10c35cf434f7e426e3a8cb65
…r init hooks (#2523) Signed-off-by: Per G. da Silva <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: b414e6e881066115b4c5dc63840e8d47c624a405
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120 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 |
/retest |
3 similar comments
/retest |
/retest |
/retest |
/hold cancel |
/hold |
/retest |
timflannagan
pushed a commit
to timflannagan/operator-framework-olm
that referenced
this pull request
Jul 26, 2022
…penshift#233) * add: new validator to check MultiArchitetures configuration * Update pkg/validation/internal/multiarch.go Co-authored-by: Brett Tofel <[email protected]> Co-authored-by: Brett Tofel <[email protected]> Upstream-repository: api Upstream-commit: decf74800a179da9f002ae2234204c7e6b866f9a
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.
do-not-merge/hold
Indicates that a PR should not merge because someone has issued a /hold command.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rebased on top of #232 .
/hold for 232 to go in first