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

Support kubectl proxy for Openshift #1431

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

pjuarezd
Copy link
Member

@pjuarezd pjuarezd commented Feb 3, 2023

Support Openshift for kubectl proxy command since Openshift Markplace offerings installs the Operator in a different Namespace than 'minio-operator' and the token secret name is console-sa-token-{random id}.

Example:

kubectl-minio proxy -n openshift-operators

kubectl proxy --help now shows the namespace option help too.

…ce offerings installs the Operator in a different Namespace than 'minio-operator" and the token secret name is console-sa-token-{random id}.

Example:

```
kubectl-minio proxy -n openshift-operators
```

`kubectl proxy --help` now shows the `namespace` option help too.
@pjuarezd pjuarezd changed the title Support Openshift for kubectl proxy for Openshift Support kubectl proxy for Openshift Feb 3, 2023
@pjuarezd pjuarezd self-assigned this Feb 3, 2023
Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

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

LGTM

secretName := "console-sa-secret"
if len(sa.Secrets) > 0 {
secretName = sa.Secrets[0].Name
secretName := ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suspect this problem is also present on k8s 1.24+

@pjuarezd pjuarezd merged commit af07487 into minio:master Feb 6, 2023
@pjuarezd pjuarezd deleted the support-openshift-kubectl-proxy branch February 6, 2023 19:38
@djwfyi djwfyi mentioned this pull request Mar 30, 2023
8 tasks
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.

None yet

4 participants