Skip to content

Conversation

@cveticm
Copy link
Collaborator

@cveticm cveticm commented Jan 31, 2025

Proposed changes

Tidies k8s dev branch by:

  • Removing k8s libraries from dependabot
  • Moving ownership of a library to apix-2
  • Removing AKO from CODEOWERS
  • Removing unused k8s variables from usages and flags
  • Replacing e2e tests of all kubernetes subcommands in test/README.md with kubernetes plugin test

Jira ticket: CLOUDP-297921

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@cveticm cveticm requested a review from a team as a code owner January 31, 2025 09:45
- "golang.org*"
kubernetes:
patterns:
- "*k8s.io*"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Noting that I did not remove the kubernetes group from mongocli-master dependabot actions (here)

Comment on lines -20 to -43
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api
alias: akoapi
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1
alias: akov2
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/common
alias: akov2common
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/provider
alias: akov2provider
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/status
alias: akov2status
- pkg: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/project
alias: akov2project
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
alias: metav1
- pkg: k8s.io/api/apps/v1
alias: appsv1
- pkg: k8s.io/api/core/v1
alias: corev1
- pkg: k8s.io/api/rbac/v1
alias: rbacv1
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
alias: apiextensionsv1
- pkg: k8s.io/apiserver/pkg/storage/names
alias: k8snames
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All libraries here are no longer present in the codebase after k8s command migration

@echo "==> Running E2E tests..."
GOCOVERDIR=$(GOCOVERDIR) $(TEST_CMD) -v -p 1 -parallel $(E2E_PARALLEL) -v -timeout $(E2E_TIMEOUT) -tags="$(E2E_TAGS)" ./test/e2e... $(E2E_EXTRA_ARGS)

.PHONY: fuzz-normalizer-test
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fuzz test only used by k8s tests

"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc": "apix-2",
"go.opentelemetry.io/otel/sdk": "apix-2",
"go.opentelemetry.io/otel/trace": "apix-2",
"golang.org/x/exp": "atlas_kubernetes_team",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Library is still used so moving ownership to apix-2

Comment on lines -277 to -279
| `kubernetes config generate` | Y | Y |
| `kubernetes config apply` | Y | Y |
| `kubernetes operator install` | Y | Y |
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Curious to hear opinions on this change.

These entries could be kept and instead marked as 'N' in both E2E and Atlas. Should 'kubernetes' (and first-class plugins in general) be marked 'N' in Atlas as it is not in the codebase but is E2E tested in Atlas?

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we have a test to install the plugin on CLI, than this makes sense to me, if not I would mark as N

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@fmenezes to clarify, you are saying it makes sense to leave it as is(i.e. | `kubernetes` | Y | Y | - Yes there is an E2E test in Atlas, Yes it is in Atlas) or my suggestion to mark it | `kubernetes` | Y | N | (- Yes there is an E2E test in Atlas, No it's not in Atlas)?

@apix-bot
Copy link
Contributor

apix-bot bot commented Jan 31, 2025

Coverage Report 📈

Branch Commit Coverage
CLOUDP-260713_k8s_plugin 90e86b9 37.3%
CLOUDP-297921_remove_k8s_libs_and_vars 8803a8c 37.3%
Difference 0%

Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM

@cveticm cveticm merged commit dde7a09 into CLOUDP-260713_k8s_plugin Jan 31, 2025
17 checks passed
@cveticm cveticm deleted the CLOUDP-297921_remove_k8s_libs_and_vars branch January 31, 2025 13:23
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