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

Adding JFrog Artifactory #142

Merged
merged 15 commits into from
Dec 19, 2016
Merged

Adding JFrog Artifactory #142

merged 15 commits into from
Dec 19, 2016

Conversation

jainishshah17
Copy link
Contributor

No description provided.

@k8s-ci-robot
Copy link
Contributor

Can a kubernetes member verify that this patch is reasonable to test? If so, please reply with "@k8s-bot ok to test" on its own line.

Regular contributors should join the org to skip this step.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@viglesiasce
Copy link
Contributor

Hey @jainishshah17!!

Thanks for the submission!

A few things to fix up:

  1. The nginx chart was errantly checked in
  2. You need to sign the Linux Foundation CLA as noted above
  3. The .gitignore change has already been checked in
  4. Use a ClusterIP service by default, we prefer not to optimize for Minikube
  5. Does this chart work out of the box without having a pro license?
  6. You have a note about volumes and config maps in the deployment but I dont see that configuration included.

@googlebot
Copy link

CLAs look good, thanks!


## Configuration

The following tables lists the configurable parameters of the elasticsearch chart and their default values.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/elasticsearch/JFrog Artifactory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@chrislovecnm
Copy link
Contributor

Can u squash your commits amigo?

@chrislovecnm
Copy link
Contributor

@jainishshah17 your rebase is a tad wonky. Please remove the .ignore changes out of the commit ;)

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!! Have a couple tweaks

## Prerequisites Details

* Kubernetes 1.3 with alpha APIs enabled
* Artifactory Pro trial license
Copy link
Contributor

Choose a reason for hiding this comment

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

@viglesiasce how are we handling paid for software? Do we need some notice in the README, hey you need to pay for this ;)


```
$ kubectl delete pods -l release=my-release,type=data
$ kubectl delete pvcs -l release=my-release,type=data
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you include the timed wait that is in the PetSet docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@chrislovecnm I have updated my chart

Copy link
Contributor

Choose a reason for hiding this comment

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

No here is an example

$ grace=$(kubectl get po web-0 --template '{{.spec.terminationGracePeriodSeconds}}')
$ kubectl delete petset,po -l app=nginx
$ sleep $grace
$ kubectl delete pvc -l app=nginx

ports:
- containerPort: 8081
name: http
# This (and the volumes section below) mount the config map as a volume.
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this at? We need resource limit and health probes as well please

Changed Servie type to NodePort for minikube

Removed Dependencies

Updated Readme

Removed Nginx

Updated Readme

Added Volume and Resource

removed gitignore file
@prydonius
Copy link
Member

@jainishshah17 any luck on the Linux Foundation CLA?

@jainishshah17
Copy link
Contributor Author

@prydonius Done signing it.

@prydonius
Copy link
Member

Can you rebase to fix the conflicts?

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Thanks for the chart. Some more notes.

@@ -1,35 +0,0 @@
# General files for the project
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to remove this file from your commit. You are removing it from the repo. Add it back in your branch please.


```
$ kubectl delete pods -l release=my-release,type=data
$ kubectl delete pvcs -l release=my-release,type=data
Copy link
Contributor

Choose a reason for hiding this comment

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

No here is an example

$ grace=$(kubectl get po web-0 --template '{{.spec.terminationGracePeriodSeconds}}')
$ kubectl delete petset,po -l app=nginx
$ sleep $grace
$ kubectl delete pvc -l app=nginx

# is a nice option for the user. Especially in the strange cases like
# artifactory where the base distro is determined by the tag. Using :latest
# is frowned upon, using :stable isn't that great either.
image: "{{default "docker.bintray.io/jfrog/artifactory-pro" .Values.image}}:{{default "4.13.2" .Values.imageTag}}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to have these hard coded values in values.yaml. @viglesiasce thoughts?

Copy link

@alon-argus alon-argus Nov 10, 2016

Choose a reason for hiding this comment

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

I agree. Also, fix to .Values.Image (capital i) and .Values.ImageTag, as in values.yaml.

# is frowned upon, using :stable isn't that great either.
image: "{{default "docker.bintray.io/jfrog/artifactory-pro" .Values.image}}:{{default "4.13.2" .Values.imageTag}}"
imagePullPolicy: {{default "IfNotPresent" .Values.pullPolicy}}
resources:
Copy link
Contributor

Choose a reason for hiding this comment

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

name: {{ template "fullname" . }}
- name: logs
configMap:
name: {{ template "fullname" . }}
Copy link
Contributor

Choose a reason for hiding this comment

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

You list PVC in your instructions, but you do not define any PVC components in your chat?

@@ -0,0 +1,17 @@
# Default values for etcd.

Choose a reason for hiding this comment

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

etcd?

# artifactory where the base distro is determined by the tag. Using :latest
# is frowned upon, using :stable isn't that great either.
image: "{{default "docker.bintray.io/jfrog/artifactory-pro" .Values.image}}:{{default "4.13.2" .Values.imageTag}}"
imagePullPolicy: {{default "IfNotPresent" .Values.pullPolicy}}

Choose a reason for hiding this comment

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

.Values.pullPolicy -> .Values.ImagePullPolicy

chart: "{{.Chart.Name}}-{{.Chart.Version}}"
spec:
ports:
- port: {{default 8081 .Values.httpPort}}

Choose a reason for hiding this comment

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

.Values.httpPort is not defined

@viglesiasce
Copy link
Contributor

Can you add a NOTES.txt file that explains what users need to do in order to use the Chart?

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 23, 2016
@jainishshah17
Copy link
Contributor Author

@prydonius I have updated my changes. Please check

@viglesiasce
Copy link
Contributor

@k8s-bot ok to test

@@ -31,7 +31,7 @@ imageTag: "5.7.14"
persistence:
enabled: true
storageClass: generic
accessMode: ReadWriteOnce
accessMode: ReadWrite
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be changed in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed default image to Artifactory-oss

persistence:
enabled: true
storageClass: generic
accessMode: ReadWrite
Copy link
Contributor

Choose a reason for hiding this comment

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

Invalid access mode, see test results.


Name: artifactory
Component: "Artifactory"
image: "docker.bintray.io/jfrog/artifactory-pro"
Copy link
Contributor

Choose a reason for hiding this comment

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

can we default this to the oss image and have a note about how to switch it?

@jainishshah17
Copy link
Contributor Author

@k8s-bot e2e test this

@k8s-ci-robot
Copy link
Contributor

@jainishshah17: you can't request testing unless you are a kubernetes member.

In response to this comment:

@k8s-bot e2e test this

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@viglesiasce
Copy link
Contributor

@k8s-bot ok to test

@@ -0,0 +1,6 @@
Artifactory can be accessed via port 8081 on the following DNS name from within your cluster:
{{ template "fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local

Copy link
Contributor

Choose a reason for hiding this comment

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

Add examples of how to connect to this from outside the cluster. Check out the jenkins chart for an example of how to differentiate between the various service modes.

## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer
##
ServiceType: LoadBalancer
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets make this ClusterIP by default since the password isnt randomly generated by default.

@viglesiasce
Copy link
Contributor

Looking good @jainishshah17! Was able to install it this time around. 2 more things to fix:

  1. Add NOTES about how to connect from outside the cluster
  2. Make the service ClusterIP by default

@k8s-ci-robot
Copy link
Contributor

Jenkins Charts e2e failed for commit 19780eb. Full PR test history.

The magic incantation to run this job again is @k8s-bot e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@jainishshah17
Copy link
Contributor Author

@viglesiasce Made changes please check

@viglesiasce
Copy link
Contributor

This worked for me. Thanks @jainishshah17!

@viglesiasce viglesiasce added code reviewed lgtm Indicates that a PR is ready to be merged. UX reviewed and removed awaiting review labels Dec 19, 2016
@prydonius prydonius merged commit c265c9a into helm:master Dec 19, 2016
jordanjennings pushed a commit to jordanjennings/charts that referenced this pull request Nov 27, 2018
[T2A-143] use PAPERTRAIL_SYSTEM_NAME for hostname
wmcdona89 pushed a commit to wmcdona89/charts that referenced this pull request Aug 30, 2020
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. code reviewed lgtm Indicates that a PR is ready to be merged. UX reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants