NO-JIRA: Do not import external dependencies into API packages#8355
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@JoelSpeed: This pull request explicitly references no jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ef883fd to
ba1451d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8355 +/- ##
==========================================
+ Coverage 36.30% 36.36% +0.05%
==========================================
Files 764 765 +1
Lines 93019 93138 +119
==========================================
+ Hits 33775 33873 +98
- Misses 56531 56551 +20
- Partials 2713 2714 +1 see 1 file with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
api/go.mod (1)
36-38: Remove orphaned karpenter replace directives.Lines 36-38 contain replace directives for karpenter packages that are no longer in the dependency graph. The
go mod whycommand confirms that neithergithub.com/aws/karpenter-provider-awsnorsigs.k8s.io/karpenterare required by the main module. Go only applies replace directives to modules that are actually needed; these directives serve no purpose and should be deleted to keep the module file clean.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@api/go.mod` around lines 36 - 38, Remove the two orphaned replace directives for modules github.com/aws/karpenter-provider-aws and sigs.k8s.io/karpenter from go.mod: delete the lines starting with "replace github.com/aws/karpenter-provider-aws => github.com/openshift/aws-karpenter-provider-aws ..." and "replace sigs.k8s.io/karpenter => github.com/openshift/kubernetes-sigs-karpenter ...", since go mod why shows neither module is in the dependency graph and replace directives only apply to required modules; after removal run go mod tidy to verify no regressions.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@api/go.mod`:
- Line 17: Remove the unnecessary indirect dependency entry
"github.com/stretchr/testify v1.11.1" from api/go.mod (leave the
"github.com/kr/text v0.2.0 // indirect" entry intact), then run go mod tidy to
update the module graph and regenerate go.sum; ensure only transitive deps
required by the YAML chain remain and verify with go mod why that testify is no
longer listed.
---
Nitpick comments:
In `@api/go.mod`:
- Around line 36-38: Remove the two orphaned replace directives for modules
github.com/aws/karpenter-provider-aws and sigs.k8s.io/karpenter from go.mod:
delete the lines starting with "replace github.com/aws/karpenter-provider-aws =>
github.com/openshift/aws-karpenter-provider-aws ..." and "replace
sigs.k8s.io/karpenter => github.com/openshift/kubernetes-sigs-karpenter ...",
since go mod why shows neither module is in the dependency graph and replace
directives only apply to required modules; after removal run go mod tidy to
verify no regressions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 10ee4d15-7aca-442f-9d2f-678d3a67d641
⛔ Files ignored due to path filters (299)
api/go.sumis excluded by!**/*.sumapi/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/LICENSE.txtis excluded by!**/vendor/**api/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.gois excluded by!**/vendor/**api/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/LICENSEis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/NOTICEis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/apis.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/crds/karpenter.k8s.aws_ec2nodeclasses.yamlis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/crds/karpenter.sh_nodeclaims.yamlis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/crds/karpenter.sh_nodeoverlays.yamlis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/crds/karpenter.sh_nodepools.yamlis excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/doc.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/ec2nodeclass.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/ec2nodeclass_defaults.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/ec2nodeclass_status.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/labels.gois excluded by!**/vendor/**api/vendor/github.com/aws/karpenter-provider-aws/pkg/apis/v1/zz_generated.deepcopy.gois excluded by!**/vendor/**,!**/zz_generated*.go,!**/zz_generated*api/vendor/github.com/aws/smithy-go/LICENSEis excluded by!**/vendor/**api/vendor/github.com/aws/smithy-go/NOTICEis excluded by!**/vendor/**api/vendor/github.com/aws/smithy-go/document/doc.gois excluded by!**/vendor/**api/vendor/github.com/aws/smithy-go/document/document.gois excluded by!**/vendor/**api/vendor/github.com/aws/smithy-go/document/errors.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/LICENSEis excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/NOTICEis excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/metrics/metrics.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/metrics/multi.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/metrics/prometheus.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/metrics/types.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/object/object.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/option/environment.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/option/function.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/serrors/logger.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/serrors/serrors.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/condition.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/condition_set.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/controller.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/doc.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/metrics.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/unstructured_adapter.gois excluded by!**/vendor/**api/vendor/github.com/awslabs/operatorpkg/status/zz_generated.deepcopy.gois excluded by!**/vendor/**,!**/zz_generated*.go,!**/zz_generated*api/vendor/github.com/awslabs/operatorpkg/unstructured/unstructured.gois excluded by!**/vendor/**api/vendor/github.com/beorn7/perks/LICENSEis excluded by!**/vendor/**api/vendor/github.com/beorn7/perks/quantile/exampledata.txtis excluded by!**/vendor/**api/vendor/github.com/beorn7/perks/quantile/stream.gois excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/LICENSE.txtis excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/README.mdis excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/testall.shis excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash.gois excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_amd64.sis excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_arm64.sis excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_asm.gois excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_other.gois excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_safe.gois excluded by!**/vendor/**api/vendor/github.com/cespare/xxhash/v2/xxhash_unsafe.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/LICENSEis excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/bypass.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/bypasssafe.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/common.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/config.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/doc.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/dump.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/format.gois excluded by!**/vendor/**api/vendor/github.com/davecgh/go-spew/spew/spew.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/.goconveyis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/.travis.ymlis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/CHANGES.mdis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/LICENSEis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/Makefileis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/README.mdis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/SECURITY.mdis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/Srcfileis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/bench_test.shis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/compress.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/compressor_cache.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/compressor_pools.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/compressors.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/constants.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/container.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/cors_filter.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/coverage.shis excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/curly.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/curly_route.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/custom_verb.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/doc.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/entity_accessors.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/extensions.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/filter.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/filter_adapter.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/jsr311.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/log/log.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/logger.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/mime.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/options_filter.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/parameter.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/path_expression.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/path_processor.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/request.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/response.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/route.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/route_builder.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/route_reader.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/router.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/service_error.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/web_service.gois excluded by!**/vendor/**api/vendor/github.com/emicklei/go-restful/v3/web_service_container.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/LICENSEis excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/errors.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/decode.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/encode.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/fold.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/fuzz.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/indent.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/scanner.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/stream.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/tables.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/internal/json/tags.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/merge.gois excluded by!**/vendor/**api/vendor/github.com/evanphx/json-patch/v5/patch.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/.cirrus.ymlis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/.mailmapis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/CHANGELOG.mdis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.mdis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/LICENSEis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/README.mdis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/backend_fen.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/backend_inotify.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/backend_kqueue.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/backend_other.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/backend_windows.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/fsnotify.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/darwin.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_linux.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/debug_windows.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/freebsd.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/internal.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/unix.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/unix2.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/internal/windows.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/shared.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/staticcheck.confis excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/system_bsd.gois excluded by!**/vendor/**api/vendor/github.com/fsnotify/fsnotify/system_darwin.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/.editorconfigis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/.golangci.ymlis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/CODE_OF_CONDUCT.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/LICENSEis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/README.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/errors.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonpointer/pointer.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/.golangci.ymlis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/CODE_OF_CONDUCT.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/LICENSEis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/README.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/internal/normalize_url.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/jsonreference/reference.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/.editorconfigis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/.gitattributesis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/.golangci.ymlis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/BENCHMARK.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/CODE_OF_CONDUCT.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/LICENSEis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/README.mdis excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/convert.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/convert_types.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/doc.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/errors.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/file.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/initialism_index.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/json.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/loading.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/name_lexem.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/net.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/path.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/split.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/string_bytes.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/util.gois excluded by!**/vendor/**api/vendor/github.com/go-openapi/swag/yaml.gois excluded by!**/vendor/**api/vendor/github.com/google/btree/LICENSEis excluded by!**/vendor/**api/vendor/github.com/google/btree/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/btree/btree.gois excluded by!**/vendor/**api/vendor/github.com/google/btree/btree_generic.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/LICENSEis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/context.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/error.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/extensions.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/helpers.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/main.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/compiler/reader.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/extensions/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/extensions/extension.pb.gois excluded by!**/*.pb.go,!**/vendor/**,!**/*.pb.goapi/vendor/github.com/google/gnostic-models/extensions/extension.protois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/extensions/extensions.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/base.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/display.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/models.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/operations.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/reader.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/schema.jsonis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/jsonschema/writer.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv2/OpenAPIv2.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv2/OpenAPIv2.pb.gois excluded by!**/*.pb.go,!**/vendor/**,!**/*.pb.goapi/vendor/github.com/google/gnostic-models/openapiv2/OpenAPIv2.protois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv2/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv2/document.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv2/openapi-2.0.jsonis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.gois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.pb.gois excluded by!**/*.pb.go,!**/vendor/**,!**/*.pb.goapi/vendor/github.com/google/gnostic-models/openapiv3/OpenAPIv3.protois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv3/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv3/annotations.pb.gois excluded by!**/*.pb.go,!**/vendor/**,!**/*.pb.goapi/vendor/github.com/google/gnostic-models/openapiv3/annotations.protois excluded by!**/vendor/**api/vendor/github.com/google/gnostic-models/openapiv3/document.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/LICENSEis excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/compare.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/export.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/diff/debug_enable.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/diff/diff.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/flags/flags.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/function/func.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/value/name.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/value/pointer.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/internal/value/sort.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/options.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/path.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_compare.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_references.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_reflect.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_slices.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_text.gois excluded by!**/vendor/**api/vendor/github.com/google/go-cmp/cmp/report_value.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/CHANGELOG.mdis excluded by!**/vendor/**api/vendor/github.com/google/uuid/CONTRIBUTING.mdis excluded by!**/vendor/**api/vendor/github.com/google/uuid/CONTRIBUTORSis excluded by!**/vendor/**api/vendor/github.com/google/uuid/LICENSEis excluded by!**/vendor/**api/vendor/github.com/google/uuid/README.mdis excluded by!**/vendor/**api/vendor/github.com/google/uuid/dce.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/doc.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/hash.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/marshal.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/node.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/node_js.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/node_net.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/null.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/sql.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/time.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/util.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/uuid.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/version1.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/version4.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/version6.gois excluded by!**/vendor/**api/vendor/github.com/google/uuid/version7.gois excluded by!**/vendor/**api/vendor/github.com/inconshreveable/mousetrap/LICENSEis excluded by!**/vendor/**api/vendor/github.com/inconshreveable/mousetrap/README.mdis excluded by!**/vendor/**api/vendor/github.com/inconshreveable/mousetrap/trap_others.gois excluded by!**/vendor/**api/vendor/github.com/inconshreveable/mousetrap/trap_windows.gois excluded by!**/vendor/**api/vendor/github.com/josharian/intern/README.mdis excluded by!**/vendor/**api/vendor/github.com/josharian/intern/intern.gois excluded by!**/vendor/**api/vendor/github.com/josharian/intern/license.mdis excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/LICENSEis excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/buffer/pool.gois excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/jlexer/bytestostr.gois excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.gois excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/jlexer/error.gois excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/jlexer/lexer.gois excluded by!**/vendor/**api/vendor/github.com/mailru/easyjson/jwriter/writer.gois excluded by!**/vendor/**api/vendor/github.com/mitchellh/hashstructure/v2/LICENSEis excluded by!**/vendor/**api/vendor/github.com/mitchellh/hashstructure/v2/README.mdis excluded by!**/vendor/**api/vendor/github.com/mitchellh/hashstructure/v2/errors.gois excluded by!**/vendor/**api/vendor/github.com/mitchellh/hashstructure/v2/hashstructure.gois excluded by!**/vendor/**api/vendor/github.com/mitchellh/hashstructure/v2/include.gois excluded by!**/vendor/**api/vendor/github.com/munnerz/goautoneg/LICENSEis excluded by!**/vendor/**api/vendor/github.com/munnerz/goautoneg/Makefileis excluded by!**/vendor/**api/vendor/github.com/munnerz/goautoneg/README.txtis excluded by!**/vendor/**api/vendor/github.com/munnerz/goautoneg/autoneg.gois excluded by!**/vendor/**api/vendor/github.com/patrickmn/go-cache/CONTRIBUTORSis excluded by!**/vendor/**api/vendor/github.com/patrickmn/go-cache/LICENSEis excluded by!**/vendor/**api/vendor/github.com/patrickmn/go-cache/README.mdis excluded by!**/vendor/**api/vendor/github.com/patrickmn/go-cache/cache.gois excluded by!**/vendor/**api/vendor/github.com/patrickmn/go-cache/sharded.gois excluded by!**/vendor/**api/vendor/github.com/pkg/errors/.gitignoreis excluded by!**/vendor/**api/vendor/github.com/pkg/errors/.travis.ymlis excluded by!**/vendor/**api/vendor/github.com/pkg/errors/LICENSEis excluded by!**/vendor/**api/vendor/github.com/pkg/errors/Makefileis excluded by!**/vendor/**
📒 Files selected for processing (1)
api/go.mod
ba1451d to
36c1541
Compare
55df723 to
b83ea99
Compare
Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe Root CauseThe Makefile
Why this worked on Recommendations
Evidence
|
b83ea99 to
4ad754e
Compare
We should not have external dependencies like Karpenter within the API module. This is bad practice and causes issues for consumers. Only ever depend on k8s.io/apimachinery, k8s.io/api and k8s.io/utils where possible
4ad754e to
3318ccd
Compare
This removes the dependency on karpenter for external imports of the api module
This aligns the module to the updates in the API submodule
3318ccd to
54ecdea
Compare
|
/lgtm |
|
Scheduling tests matching the |
Test Resultse2e-aws
e2e-aks
|
|
/verified by @JoelSpeed I tested this locally and it appears to work for my purpose. Disconnects the karpenter link when I revendor this into ARO |
|
@JoelSpeed: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@JoelSpeed: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
60802b1
into
openshift:main
What this PR does / why we need it:
By including utility functionality in the API module, this pollutes the imports and causes issues for external contributors. For example, having the karpenter dependency pins external importers of the APIs to K8s 0.34 because of the reliance on an outdated openshift fork of karpenter.
Utils should live separately, in this case they were only used in one location so I've moved them directly to the call site package.
Please do not allow util functions in the API module again.
Which issue(s) this PR fixes:
Fixes
Special notes for your reviewer:
Checklist:
Summary by CodeRabbit