mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 09:06:57 -06:00
Updated the bubdle for Artifactory Operator
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# JFrog Openshift Artifactory-ha Chart Changelog
|
||||
All changes to this chart will be documented in this file.
|
||||
|
||||
## [4.9.1] - Feb 22, 2021
|
||||
* Updating to latest jfrog/artifactory-ha helm chart version 4.9.1 artifactory version 7.15.3
|
||||
|
||||
## [4.7.6] - Jan 11, 2021
|
||||
* Updating to latest jfrog/artifactory-ha helm chart version 4.7.6 artifactory version 7.12.6
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: 7.12.6
|
||||
appVersion: 7.15.3
|
||||
description: Openshift JFrog Artifactory HA subcharting Artifactory HA to work in Openshift environment
|
||||
home: https://www.jfrog.com/artifactory/
|
||||
icon: https://raw.githubusercontent.com/jfrog/charts/master/stable/artifactory-ha/logo/artifactory-logo.png
|
||||
@@ -16,4 +16,4 @@ name: openshift-artifactory-ha
|
||||
sources:
|
||||
- https://bintray.com/jfrog/product/JFrog-Artifactory-Pro/view
|
||||
- https://github.com/jfrog/charts
|
||||
version: 4.7.6
|
||||
version: 4.9.1
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# PreReq'd:
|
||||
# helm install postgres bitnami/postgresql
|
||||
# follow artifactory postgresql db setup:
|
||||
# https://www.jfrog.com/confluence/display/JFROG/PostgreSQL
|
||||
POSTGRES=$(helm ls | grep postgres | wc -l)
|
||||
|
||||
if [[ "$POSTGRES" =~ (0) ]]
|
||||
then
|
||||
echo "External DB is required to run Jfrog Openshift Artifactory Helm chart"
|
||||
echo ""
|
||||
echo "Postgresql helm chart must be installed prior to installing this helm installer script."
|
||||
echo ""
|
||||
echo "helm install postgres bitnami/postgresql"
|
||||
echo ""
|
||||
echo "follow artifactory postgresql db setup:"
|
||||
echo "https://www.jfrog.com/confluence/display/JFROG/PostgreSQL"
|
||||
exit 1
|
||||
else
|
||||
if [[ -z "$1" ]]
|
||||
then
|
||||
echo "Installing Jfrog Artifactory Openshift Helm"
|
||||
else
|
||||
echo "Patching Environment for RunAsAnyUid"
|
||||
# patch the restricted scc to allow the pods to run as anyuid
|
||||
oc patch scc restricted --patch '{"fsGroup":{"type":"RunAsAny"},"runAsUser":{"type":"RunAsAny"},"seLinuxContext":{"type":"RunAsAny"}}' --type=merge
|
||||
if [[ -f "artifactory.cluster.license" ]]
|
||||
then
|
||||
echo "Creating k8s secret for Artifactory cluster licenses from file: artifactory.cluster.license"
|
||||
# create the license secret
|
||||
oc create secret generic artifactory-license --from-file=artifactory.cluster.license
|
||||
fi
|
||||
|
||||
if [[ -f "tls.crt" ]]
|
||||
then
|
||||
echo "Creating k8s secret for TLS tls-ingress from files tls.crt & tls.key"
|
||||
# create the tls secret
|
||||
oc create secret tls tls-ingress --cert=tls.crt --key=tls.key
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
MASTER_KEY=$(openssl rand -hex 32)
|
||||
JOIN_KEY=$(openssl rand -hex 32)
|
||||
|
||||
# install via helm with default postgresql configuration
|
||||
helm install artifactory-ha . \
|
||||
--set artifactory-ha.nginx.service.ssloffload=true \
|
||||
--set artifactory-ha.nginx.tlsSecretName=tls-ingress \
|
||||
--set artifactory-ha.artifactory.node.replicaCount=1 \
|
||||
--set artifactory-ha.artifactory.license.secret=artifactory-license,artifactory-ha.artifactory.license.dataKey=artifactory.cluster.license \
|
||||
--set artifactory-ha.database.type=postgresql \
|
||||
--set artifactory-ha.database.driver=org.postgresql.Driver \
|
||||
--set artifactory-ha.database.url=jdbc:postgresql://postgres-postgresql:5432/artifactory \
|
||||
--set artifactory-ha.database.user=artifactory \
|
||||
--set artifactory-ha.database.password=password \
|
||||
--set artifactory-ha.artifactory.joinKey=$JOIN_KEY \
|
||||
--set artifactory-ha.artifactory.masterKey=$MASTER_KEY
|
||||
|
||||
|
||||
echo "*** IMPORTANT ****"
|
||||
echo "export MASTER_KEY=$MASTER_KEY"
|
||||
echo "export JOIN_KEY=$JOIN_KEY"
|
||||
echo "*** SUCCESS ****"
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# install via helm with default postgresql configuration
|
||||
helm upgrade --install artifactory-ha . \
|
||||
--set artifactory-ha.nginx.service.ssloffload=true \
|
||||
--set artifactory-ha.nginx.tlsSecretName=tls-ingress \
|
||||
--set artifactory-ha.artifactory.node.replicaCount=1 \
|
||||
--set artifactory-ha.artifactory.license.secret=artifactory-license,artifactory-ha.artifactory.license.dataKey=artifactory.cluster.license \
|
||||
--set artifactory-ha.database.type=postgresql \
|
||||
--set artifactory-ha.database.driver=org.postgresql.Driver \
|
||||
--set artifactory-ha.database.url=jdbc:postgresql://postgres-postgresql:5432/artifactory \
|
||||
--set artifactory-ha.database.user=artifactory \
|
||||
--set artifactory-ha.database.password=password \
|
||||
--set artifactory-ha.artifactory.joinKey=$JOIN_KEY \
|
||||
--set artifactory-ha.artifactory.masterKey=$MASTER_KEY \
|
||||
--set artifactory-ha.databaseUpgradeReady=true
|
||||
|
||||
6
Openshift4/operator/artifactory-ha-operator/helm-charts/openshift-artifactory-ha/requirements.lock
Normal file → Executable file
6
Openshift4/operator/artifactory-ha-operator/helm-charts/openshift-artifactory-ha/requirements.lock
Normal file → Executable file
@@ -1,6 +1,6 @@
|
||||
dependencies:
|
||||
- name: artifactory-ha
|
||||
repository: https://charts.jfrog.io/
|
||||
version: 4.7.6
|
||||
digest: sha256:f3e6b2b4494175cbadde85700458d8e3383ebb6e9c9a3c9cda19136bc55f4187
|
||||
generated: "2021-01-11T11:49:29.797662-08:00"
|
||||
version: 4.9.1
|
||||
digest: sha256:1254089bfad8d6c4bbb984dedf835360de4cccb7423479cb69395c281b633041
|
||||
generated: "2021-02-22T21:21:36.5442553+05:30"
|
||||
|
||||
2
Openshift4/operator/artifactory-ha-operator/helm-charts/openshift-artifactory-ha/requirements.yaml
Normal file → Executable file
2
Openshift4/operator/artifactory-ha-operator/helm-charts/openshift-artifactory-ha/requirements.yaml
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
dependencies:
|
||||
- name: artifactory-ha
|
||||
version: 4.7.6
|
||||
version: 4.9.1
|
||||
repository: https://charts.jfrog.io/
|
||||
|
||||
@@ -10,7 +10,7 @@ artifactory-ha:
|
||||
url: "OVERRIDE"
|
||||
user: "OVERRIDE"
|
||||
password: "OVERRIDE"
|
||||
initContainerImage: registry.connect.redhat.com/jfrog/init:7.12.6-1
|
||||
initContainerImage: registry.connect.redhat.com/jfrog/init:7.15.3-1
|
||||
waitForDatabase: true
|
||||
installerInfo: '{ "productId": "Openshift_artifactory-ha/{{ .Chart.Version }}", "features": [ { "featureId": "ArtifactoryVersion/{{ default .Chart.AppVersion .Values.artifactory.image.version }}" }, { "featureId": "{{ if .Values.postgresql.enabled }}postgresql{{ else }}{{ .Values.database.type }}{{ end }}/0.0.0" }, { "featureId": "Platform/Openshift" }, { "featureId": "Partner/ACC-006983" }, { "featureId": "Channel/Openshift" } ] }'
|
||||
artifactory:
|
||||
@@ -19,7 +19,7 @@ artifactory-ha:
|
||||
image:
|
||||
registry: registry.connect.redhat.com
|
||||
repository: jfrog/artifactory-pro
|
||||
tag: 7.12.6-1
|
||||
tag: 7.15.3-1
|
||||
node:
|
||||
replicaCount: 2
|
||||
waitForPrimaryStartup:
|
||||
|
||||
Reference in New Issue
Block a user