Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

add support to minio bootstrap #2061

Merged
merged 1 commit into from
Sep 19, 2017
Merged

Conversation

yagonobre
Copy link
Contributor

No description provided.

@k8s-ci-robot
Copy link
Contributor

Hi @yagonobre. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 7, 2017
@yagonobre
Copy link
Contributor Author

@nitisht can you check this too?

@@ -90,6 +90,10 @@ The following tables lists the configurable parameters of the Minio chart and th
| `persistence.storageClass` | Type of persistent volume claim | `generic` |
| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` |
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `100m` |
| `defaultBucket.enabled` | If true, a bucket will be create after minio
Copy link
Contributor

Choose a reason for hiding this comment

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

s/create/created

command: ["/bin/sh", "-c",
"/usr/bin/mc config host add myminio http://$MINIO_ENDPOINT:9000 $MINIO_ACCESS_KEY $MINIO_SECRET_KEY;",
"/usr/bin/mc rm -r --force myminio/{{ .Values.defaultBucket.name }};",
"/usr/bin/mc mb myminio//{{ .Values.defaultBucket.name }};",
Copy link
Contributor

Choose a reason for hiding this comment

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

myminio/ instead of myminio//

@yagonobre yagonobre force-pushed the minio-bootstrap branch 3 times, most recently from 5371b47 to ec9031d Compare September 7, 2017 18:54
@nitisht
Copy link
Contributor

nitisht commented Sep 8, 2017

Thank you for the PR @yagonobre, works as expected. There is one issue I can see - after deleting a release via helm delete, the create-bucket pod still does not get deleted, any ideas what may be causing this?

@yagonobre
Copy link
Contributor Author

I run helm delete with --purge the pod stay in completed status

@scottrigby
Copy link
Member

👀

Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

Otherwise this looks good

@@ -54,6 +54,17 @@ resources:
memory: 256Mi
cpu: 250m

## Create a bucket after minio install
Copy link
Member

Choose a reason for hiding this comment

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

@yagonobre Let's change this documentation to be consistent with the rest:

## Create a bucket after minio install
##
defaultBucket:
  enabled: false
  ## If enabled, must be a string with length > 0
  # name: example
  ## Can be one of none|download|upload|public
  # policy: download

If there is a direct reference to these options, you may also want to add a ## ref: LINK (I'm not familiar enough with Minio yet to know this info, and didn't see it in the docs after a few moments looking in https://docs.minio.io/).

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 that dont exist a direct link
@nitisht, have you info about?

Copy link
Contributor

Choose a reason for hiding this comment

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

Default bucket just gives an option to users who want to have a bucket created when they deploy Minio, so there is no doc link for this. I will make a note to add a link here, if we add a doc on docs.minio.io

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @nitisht - OK great 👍

@yagonobre This default in the values file should still be updated to this (which adds documentation as comments, and is more DRY):

+## Create a bucket after minio install
+##
+defaultBucket:
+  enabled: false
+  ## If enabled, must be a string with length > 0
+  # name: example
+  ## Can be one of none|download|upload|public
+  # policy: download
+

Instead of what you have in the PR now (which is redundant):

+## Create a bucket after minio install
+##defaultBucket
+##  enabled: true
+##  name: bucketName
+##  policy: "none|download|upload|public"
+##
+defaultBucket:
+  enabled: false
+  name:
+  policy: "download"
+

Does that make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated :)

@@ -90,6 +90,10 @@ The following tables lists the configurable parameters of the Minio chart and th
| `persistence.storageClass` | Type of persistent volume claim | `generic` |
| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` |
| `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `100m` |
| `defaultBucket.enabled` | If true, a bucket will be created after minio
install | `false` |
| `defaultBucket.name` | Bucket name | ` ` |
Copy link
Member

Choose a reason for hiding this comment

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

The default should be nil

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

| `defaultBucket.enabled` | If true, a bucket will be created after minio
install | `false` |
| `defaultBucket.name` | Bucket name | ` ` |
| `defaultBucket.policy` | Bucket policy | `Download` |
Copy link
Member

Choose a reason for hiding this comment

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

The default should be download (lowercase).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Member

@scottrigby scottrigby left a comment

Choose a reason for hiding this comment

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

LGTM

@viglesiasce
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 19, 2017
@viglesiasce viglesiasce merged commit 770e28c into helm:master Sep 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants