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

chore: refactor minio addon and upgrade to v1.0 API #1106

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

Y-Rookie
Copy link
Contributor

No description provided.

@Y-Rookie Y-Rookie marked this pull request as ready for review October 18, 2024 10:25
@Y-Rookie Y-Rookie requested a review from fengluodb October 18, 2024 10:25
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 148 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (7ba24ff) to head (70b5324).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
addons/minio/scripts-ut-spec/startup_spec.sh 0.00% 96 Missing ⚠️
...scripts-ut-spec/initialize_patch_configmap_spec.sh 0.00% 52 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main   #1106    +/-   ##
======================================
  Coverage   0.00%   0.00%            
======================================
  Files         22      24     +2     
  Lines       3576    3724   +148     
======================================
- Misses      3576    3724   +148     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

fengluodb
fengluodb previously approved these changes Oct 20, 2024
@Y-Rookie Y-Rookie requested a review from sophon-zt October 21, 2024 06:44
labels:
{{- include "minio.labels" . | nindent 4 }}
data:
{{- with include "minio.extend.scripts" . }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just use {{ (.Files.Glob "scripts/*.sh").AsConfig | indent 2 }}?

https://helm.sh/docs/chart_template_guide/accessing_files/#configmap-and-secrets-utility-functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just use {{ (.Files.Glob "scripts/*.sh").AsConfig | indent 2 }}?

https://helm.sh/docs/chart_template_guide/accessing_files/#configmap-and-secrets-utility-functions

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just use {{ (.Files.Glob "scripts/*.sh").AsConfig | indent 2 }}?

https://helm.sh/docs/chart_template_guide/accessing_files/#configmap-and-secrets-utility-functions

done

@@ -1 +0,0 @@
{{- include "kblib.rbac" . }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the pod have essential privileges to patch the ConfigMap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does the pod have essential privileges to patch the ConfigMap?

This RBAC permission is useless. Under the current implementation, KB will by default create a ServiceAccount with name pattern kb-{clusterName} and bind it with default permissions (which can patch the ConfigMap).

@Y-Rookie Y-Rookie merged commit 8ed36fe into main Oct 23, 2024
31 checks passed
@Y-Rookie Y-Rookie deleted the support/minio-v1.0-upgrade branch October 23, 2024 07:57
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.

5 participants