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

Local dev / documentation improvement #1441

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Local dev / documentation improvement #1441

merged 2 commits into from
Nov 30, 2023

Conversation

irajdeep
Copy link
Contributor

All Submissions:

  • Have you opened an Issue before filing this PR?
  • Have you signed our CLA?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

@@ -48,7 +48,7 @@ test: generate fmt vet manifests ## Run unit tests
manager: generate fmt vet ## Build operator binary
go build -o bin/manager ./cmd/manager/main.go

run: install install-rbac ## Run the operator against the configured Kubernetes cluster in ~/.kube/config
run: install ## Run the operator against the configured Kubernetes cluster in ~/.kube/config
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make e2e - already installs rbac. So installing it here creates resource conflict error.

@irajdeep irajdeep marked this pull request as ready for review November 30, 2023 13:58
docs/run-operator-locally.md Outdated Show resolved Hide resolved
@@ -116,6 +116,7 @@ manifests: controller-gen ## Generate manifests e.g. CRD, RBAC etc.
# Run e2e tests locally using go build while also setting up a proxy in the shell to allow
# the test to run as if it were inside the cluster. This enables mongodb connectivity while running locally.
e2e-telepresence: cleanup-e2e install ## Run e2e tests locally using go build while also setting up a proxy e.g. make e2e-telepresence test=replica_set cleanup=true
export MDB_LOCAL_OPERATOR=true; \
Copy link
Collaborator

Choose a reason for hiding this comment

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

exporting this means we are expecting folks to run the test locally (go test) and that the operator runs locally as well. Maybe we should make a new target for this? Or maybe a comment is enough 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think leaving a comment should be fine. Since the target uses telpresence - I belive we are fairly sure that the operator is running locally. wdyt?

@irajdeep irajdeep merged commit b00b2ce into master Nov 30, 2023
40 checks passed
@irajdeep irajdeep deleted the image_correction branch November 30, 2023 14:47
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.

2 participants