Repository navigation
Adding JFrog Distribution - #5631
Conversation
| -Dspring.profiles.active=production' | ||
| - name: mongo_connectionString | ||
| {{- if .Values.mongodb.mongodbUsername }} | ||
| value: 'mongodb://{{ .Values.mongodb.db.distributionUser }}:{{ .Values.mongodb.db.distributionPassword }}@{{ .Release.Name }}-mongodb:27017/{{ .Values.mongodb.db.name }}' |
There was a problem hiding this comment.
Best practice is usually to wrap up connection details in a secret.
| -Xmx{{ .Values.distributor.resources.limits.memory | trunc 1 }}g | ||
| -Dspring.profiles.active=production' | ||
| - name: redis_connectionString | ||
| value: 'redis://:{{ .Values.redis.redisPassword }}@{{ .Release.Name }}-redis:6379' |
There was a problem hiding this comment.
Please also wrap up the connection details into a secret.
| command: | ||
| - 'sh' | ||
| - '-c' | ||
| - 'sh /scripts/setup.sh' |
There was a problem hiding this comment.
Do you have issues with this running? Configmaps are mounted readonly.
There was a problem hiding this comment.
@rjkernick It works for me on k8s 1.9.6.
|
/ok-to-test |
| data: | ||
| {{- if .Values.mongodb.mongodbUsername }} | ||
| mongo_connectionString: {{ template "mongodb.url" . }} | ||
| audit_mongo_connectionString: {{ template "mongodb.audit.url" . }} |
There was a problem hiding this comment.
Can probably remove the if/else here as they have the same body.
|
/assign |
| Create a default fully qualified distribution name. | ||
| We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
| */}} | ||
| {{- define "distribution.fullname" -}} |
There was a problem hiding this comment.
Why doesn't this allow a fullnameOverride?
| @@ -0,0 +1,111 @@ | |||
| apiVersion: extensions/v1beta1 | |||
| name: {{ template "distribution.fullname" . }} | ||
| labels: | ||
| app: {{ template "distribution.name" . }} | ||
| chart: {{ .Chart.Name }}-{{ .Chart.Version }} |
There was a problem hiding this comment.
The latest _helpers.tpl you get with helm create has a chart partial. Please update accordingly.
| labels: | ||
| app: {{ template "distribution.name" . }} | ||
| chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
| component: {{ .Values.distribution.name }} |
There was a problem hiding this comment.
Do component names have to be configurable?
| @@ -0,0 +1,80 @@ | |||
| apiVersion: extensions/v1beta1 | |||
| db: | ||
| name: bintray | ||
| adminUser: admin | ||
| adminPassword: password |
There was a problem hiding this comment.
Passwords should be auto-generated by default.
| persistence: | ||
| enabled: true | ||
| size: 10Gi | ||
| resources: |
There was a problem hiding this comment.
Don't set defaults for resources. Comment them out.
| repository: "docker.bintray.io/jfrog/distribution-distributor" | ||
| version: 1.0.0 | ||
| imagePullPolicy: IfNotPresent | ||
| token: "eyJ2ZXIiOiIyIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYiLCJraWQiOiJ6WWFWQjVFRlpkOXlpbWtCNkZTbDAtSWFhMHRPWldLX293c1BTVTNTZmdNIn0.eyJzdWIiOiJJTlRFUk5BTCIsInNjcCI6ImFwcGxpZWQtcGVybWlzc2lvbnNcL3N5c3RlbSIsImF1ZCI6ImpmZHNAMDFjN3pxd2FnOWNmNTAwd2FnOXZhcTF3cjkiLCJpc3MiOiJqZmRzQDAxYzd6cXdhZzljZjUwMHdhZzl2YXExd3I5IiwiZXhwIjoyNDY3NjI1MDczLCJpYXQiOjE1MjE1NDUwNzMsImp0aSI6IjE0ZjJjN2IxLTMzYzQtNDA0Yy04YTllLTJmZjU2OGFjODRlOSJ9.ACfT3pfu4wTTt1wOkyqwYCp9UUVWNwMLl3ZyuO-igDR9N_G-G3oMkuCFekAzgOrTcbGjrXTDMNwoRyYhHUs4wtYxM9yAA-u72EhVz10stL9B0d2JUOamc8xJaLvQDhL38TYiTjdgNVsy726qgxzX2xnx1M8VSp9Qnw7r2ZGBQ6LjrESIUZb8IXy-93oxYqDSkWvjOJZiNQXhJBgOzhzq3r-buaGgxOMoC7DduCctCT0FIxd1jrsZPUnpH3YGE374j7YGcGBdy7eQj-skM3YircJVgk6XFYJBKZBJ8pX3NLZznirG2m9QbhLCRhH1T6B4g-HZvy251wz3QBUdmzO6Cg" |
There was a problem hiding this comment.
You should not hard-code tokens. You may provide custom values for CI only if necessary: https://github.com/kubernetes/charts/blob/master/test/README.md#providing-custom-test-values
|
/assign |
| ## Configuration | ||
|
|
||
| The following table lists the configurable parameters of the distribution chart and their default values. | ||
|
|
There was a problem hiding this comment.
Could you format the table properly?
| - name: BT_SERVER_URL | ||
| value: {{ .Values.distribution.env.btServerUrl | quote }} | ||
| {{- if .Values.distribution.env.artifactoryEdge1Url }} | ||
| - name: artifactory_edge_1_url |
There was a problem hiding this comment.
Just wondering. It's kind of uncommon to have env vars lowercase. If case doesn't matter, I'd suggest you make them all uppercase.
There was a problem hiding this comment.
It's Case sensitive. Will get fixed with the future release of our product.
| ## This is critical to protect against OOMKill by Kubernetes! | ||
| mongodbExtraFlags: | ||
| - "--wiredTigerCacheSizeGB=1" | ||
| mongodbRootPassword: password |
There was a problem hiding this comment.
Don't specify default passwords. You could used the required function to display error messages and provide passwords for CI only.
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jainishshah17, rjkernick, unguiculus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* art-ha-static-volumes: (60 commits) added support for static pv [stable/artifactory] adding support for edge node and replicator (helm#5649) [stable/grafana] Set the user and fs group for grafana (helm#5854) [stable/stolon] Fix issue with secret deletion during helm upgrade (helm#5903) cert-manager: fast-forward to upstream 36289cf0 (helm#5919) Split Jenkins readiness and liveness probe periods (helm#5704) Kafka release name check (helm#5770) Adding JFrog Distribution (helm#5631) Correct default zookeeper host to be compatible with zk charts (helm#5824) [stable/redis] add RBAC (helm#5971) [stable/wordpress] Set dependencies to latest version (helm#6074) [stable/rabbitmq] Release 1.1.6 (helm#6095) [stable/mariadb] Fix configurable parameters (helm#6092) [stable/keycloak] Add option to configure sidecars and misc improvements (helm#6090) [stable/kubewatch] - Use maintained bitnami image for kubewatch (helm#5871) [stable/ghost] Release 4.0.1 (helm#6085) update PROCESSES.md to clarify promotion process (helm#6084) [incubator/drone] Move drone from incubator to stable (helm#5780) fix for helm#6039 (helm#6042) [stable/sonatype-nexus] Update image to 3.12.1 (helm#6076) ...
* added JFrog Distribution * Fixed version * removed extra empty line * using secret for connection string * removed unused condition * chart.name from template * removed resource value and added new apiVersion * removed extra spaces * removed default token * fullnameOverride for distribution * removed unused condition. * Changing default external port to 80 * removed post install hook. * removed hardcoded password and made it required * added token for testing * removed non overriding values Signed-off-by: voron <[email protected]>
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Special notes for your reviewer: