Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions stable/artifactory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
apiVersion: v1
name: artifactory
home: https://www.jfrog.com/artifactory/
version: 5.4.6-3
version: 6.0.0
appVersion: 5.4.6
description: Universal Repository Manager supporting all major packaging formats, build tools and CI servers.
description: Universal Repository Manager supporting all major packaging formats,
build tools and CI servers.
keywords:
- artifactory
- jfrog
sources:
- https://bintray.com/jfrog/product/JFrog-Artifactory-Pro/view
- https://github.com/JFrogDev
- https://bintray.com/jfrog/product/JFrog-Artifactory-Pro/view
- https://github.com/JFrogDev
maintainers:
- name: jainishshah17
email: [email protected]
- name: eldada
email: [email protected]
- name: jainishshah17
email: [email protected]
- name: eldada
email: [email protected]
icon: https://raw.githubusercontent.com/JFrogDev/artifactory-dcos/master/images/jfrog_med.png
6 changes: 3 additions & 3 deletions stable/artifactory/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Congratulations. You have just deployed JFrog Artifactory Pro!
1. Get the Artifactory URL by running these commands:

{{- if contains "NodePort" .Values.nginx.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "nginx.name" . }})
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "artifactory.nginx.name" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT/

{{- else if contains "LoadBalancer" .Values.nginx.service.type }}

NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of the service by running 'kubectl get svc -w {{ template "nginx.name" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "nginx.name" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
You can watch the status of the service by running 'kubectl get svc -w {{ template "artifactory.nginx.name" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "artifactory.nginx.name" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP/

{{- else if contains "ClusterIP" .Values.nginx.service.type }}
Expand Down
16 changes: 8 additions & 8 deletions stable/artifactory/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "artifactory.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Expand the name artifactory service.
*/}}
{{- define "artifactory.name" -}}
{{- define "artifactory.artifactory.name" -}}
{{- default .Values.artifactory.name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Expand the name database service.
*/}}
{{- define "database.name" -}}
{{- define "artifactory.database.name" -}}
{{- default .Values.database.name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Expand the name nginx service.
*/}}
{{- define "nginx.name" -}}
{{- define "artifactory.nginx.name" -}}
{{- default .Values.nginx.name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

Expand All @@ -32,7 +32,7 @@ Expand the name nginx service.
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- define "artifactory.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Expand All @@ -41,7 +41,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Create a default fully qualified application name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "artifactory.fullname" -}}
{{- define "artifactory.artifactory.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s-%s" .Release.Name $name .Values.artifactory.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Expand All @@ -50,7 +50,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Create a default fully qualified database name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "database.fullname" -}}
{{- define "artifactory.database.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s-%s" .Release.Name $name .Values.database.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
Expand All @@ -59,7 +59,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
Create a default fully qualified nginx name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "nginx.fullname" -}}
{{- define "artifactory.nginx.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s-%s" .Release.Name $name .Values.nginx.name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
12 changes: 6 additions & 6 deletions stable/artifactory/templates/artifactory-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "artifactory.fullname" . }}
name: {{ template "artifactory.artifactory.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.artifactory.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -13,7 +13,7 @@ spec:
template:
metadata:
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.artifactory.name }}"
release: {{ .Release.Name }}
spec:
Expand All @@ -40,10 +40,10 @@ spec:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "fullname" . }}
name: {{ template "artifactory.fullname" . }}
key: artifactory-database-password
- name: DB_HOST
value: {{ template "database.name" . }}
value: {{ template "artifactory.database.name" . }}
ports:
- containerPort: {{ .Values.artifactory.internalPort }}
volumeMounts:
Expand All @@ -53,7 +53,7 @@ spec:
- name: artifactory-volume
{{- if .Values.artifactory.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "artifactory.fullname" . }}
claimName: {{ template "artifactory.artifactory.fullname" . }}
{{- else }}
emptyDir: {}
{{- end -}}
4 changes: 2 additions & 2 deletions stable/artifactory/templates/artifactory-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "artifactory.fullname" . }}
name: {{ template "artifactory.artifactory.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
6 changes: 3 additions & 3 deletions stable/artifactory/templates/artifactory-service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "artifactory.name" . }}
name: {{ template "artifactory.artifactory.name" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.artifactory.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -16,6 +16,6 @@ spec:
protocol: TCP
name: {{ .Release.Name }}
selector:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.artifactory.name }}"
release: {{ .Release.Name }}
8 changes: 4 additions & 4 deletions stable/artifactory/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "nginx.fullname" . }}
name: {{ template "artifactory.nginx.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.nginx.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -13,7 +13,7 @@ spec:
template:
metadata:
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.nginx.name }}"
release: {{ .Release.Name }}
spec:
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
- name: nginx-volume
{{- if .Values.nginx.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "nginx.fullname" . }}
claimName: {{ template "artifactory.nginx.fullname" . }}
{{- else }}
emptyDir: {}
{{- end -}}
4 changes: 2 additions & 2 deletions stable/artifactory/templates/nginx-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "nginx.fullname" . }}
name: {{ template "artifactory.nginx.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
6 changes: 3 additions & 3 deletions stable/artifactory/templates/nginx-service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "nginx.name" . }}
name: {{ template "artifactory.nginx.name" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.nginx.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -20,6 +20,6 @@ spec:
protocol: TCP
name: {{ .Release.Name }}https
selector:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.nginx.name }}"
release: {{ .Release.Name }}
10 changes: 5 additions & 5 deletions stable/artifactory/templates/postgresql-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "database.fullname" . }}
name: {{ template "artifactory.database.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.database.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -13,7 +13,7 @@ spec:
template:
metadata:
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.database.name }}"
release: {{ .Release.Name }}
spec:
Expand All @@ -40,7 +40,7 @@ spec:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "fullname" . }}
name: {{ template "artifactory.fullname" . }}
key: artifactory-database-password
ports:
- containerPort: {{ .Values.database.internalPort }}
Expand All @@ -51,7 +51,7 @@ spec:
- name: postgresql-volume
{{- if .Values.database.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ template "database.fullname" . }}
claimName: {{ template "artifactory.database.fullname" . }}
{{- else }}
emptyDir: {}
{{- end -}}
4 changes: 2 additions & 2 deletions stable/artifactory/templates/postgresql-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "database.fullname" . }}
name: {{ template "artifactory.database.fullname" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
4 changes: 2 additions & 2 deletions stable/artifactory/templates/postgresql-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v1
kind: Secret
metadata:
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: {{ template "fullname" . }}
name: {{ template "artifactory.fullname" . }}
type: Opaque
data:
{{- if .Values.database.env.pass }}
Expand Down
6 changes: 3 additions & 3 deletions stable/artifactory/templates/postgresql-service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "database.name" . }}
name: {{ template "artifactory.database.name" . }}
labels:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: "{{ .Values.database.name }}"
heritage: {{ .Release.Service }}
Expand All @@ -16,6 +16,6 @@ spec:
protocol: TCP
name: {{ .Release.Name }}
selector:
app: {{ template "name" . }}
app: {{ template "artifactory.name" . }}
component: "{{ .Values.database.name }}"
release: {{ .Release.Name }}