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

Expose a NodePort service for the admin server by default #668

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

Praveenrajmani
Copy link
Collaborator

No description provided.

cmd/kubectl-directpv/install.go Outdated Show resolved Hide resolved
functests/common.sh Outdated Show resolved Hide resolved
@Praveenrajmani
Copy link
Collaborator Author

Addressed the comments @balamurugana

@@ -129,7 +129,11 @@ function unexport_admin_server() {
}

function add_drives() {
echo -e 'ALL\nALL\nYes\n' | ./kubectl-directpv format --api-server localhost:40443 --allowed --force
# Get the nodeport service url
Copy link
Member

Choose a reason for hiding this comment

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

remove function export_admin_server() and function unexport_admin_server()

echo -e 'ALL\nALL\nYes\n' | ./kubectl-directpv format --api-server localhost:40443 --allowed --force
# Get the nodeport service url
url=$(minikube service --namespace=directpv-min-io admin-service --url)
adminServer=${url#"http://"}
Copy link
Member

Choose a reason for hiding this comment

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

rename as admin_server

url=$(minikube service --namespace=directpv-min-io admin-service --url)
adminServer=${url#"http://"}

echo -e 'ALL\nALL\nYes\n' | ./kubectl-directpv format --admin-server "$adminServer" --allowed --force
Copy link
Member

Choose a reason for hiding this comment

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

use ${admin_server}

@balamurugana balamurugana merged commit cd9aaa2 into minio:devel Oct 31, 2022
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