mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 01:06:55 -06:00
Updated the bubdle for Artifactory Operator
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: openshiftartifactoryhas.charts.helm.k8s.io
|
||||||
|
spec:
|
||||||
|
group: charts.helm.k8s.io
|
||||||
|
names:
|
||||||
|
kind: OpenshiftArtifactoryHa
|
||||||
|
listKind: OpenshiftArtifactoryHaList
|
||||||
|
plural: openshiftartifactoryhas
|
||||||
|
singular: openshiftartifactoryha
|
||||||
|
scope: Namespaced
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
validation:
|
||||||
|
openAPIV3Schema:
|
||||||
|
type: object
|
||||||
|
version: v1alpha1
|
||||||
|
versions:
|
||||||
|
- name: v1alpha1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ''
|
||||||
|
plural: ''
|
||||||
|
conditions: null
|
||||||
|
storedVersions: null
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
annotations:
|
||||||
|
operators.operatorframework.io.bundle.channel.default.v1: alpha
|
||||||
|
operators.operatorframework.io.bundle.channels.v1: alpha
|
||||||
|
operators.operatorframework.io.bundle.manifests.v1: manifests/
|
||||||
|
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
|
||||||
|
operators.operatorframework.io.bundle.metadata.v1: metadata/
|
||||||
|
operators.operatorframework.io.bundle.package.v1: openshiftartifactoryha-operator
|
||||||
|
operators.operatorframework.io.metrics.builder: operator-sdk-v1.3.0
|
||||||
|
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
|
||||||
|
operators.operatorframework.io.metrics.project_layout: helm.sdk.operatorframework.io/v1
|
||||||
|
operators.operatorframework.io.test.config.v1: tests/scorecard/
|
||||||
|
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
channels:
|
||||||
|
- currentCSV: artifactory-ha-operator.v1.1.8
|
||||||
|
name: alpha
|
||||||
|
defaultChannel: ''
|
||||||
|
packageName: openshiftartifactoryha-operator
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
kind: Configuration
|
||||||
|
apiversion: scorecard.operatorframework.io/v1alpha3
|
||||||
|
metadata:
|
||||||
|
name: config
|
||||||
|
stages:
|
||||||
|
- parallel: true
|
||||||
|
tests:
|
||||||
|
- image: quay.io/operator-framework/scorecard-test:latest
|
||||||
|
entrypoint:
|
||||||
|
- scorecard-test
|
||||||
|
- basic-check-spec
|
||||||
|
labels:
|
||||||
|
suite: basic
|
||||||
|
test: basic-check-spec-test
|
||||||
|
- image: quay.io/operator-framework/scorecard-test:latest
|
||||||
|
entrypoint:
|
||||||
|
- scorecard-test
|
||||||
|
- olm-bundle-validation
|
||||||
|
labels:
|
||||||
|
suite: olm
|
||||||
|
test: olm-bundle-validation-test
|
||||||
|
- image: quay.io/operator-framework/scorecard-test:latest
|
||||||
|
entrypoint:
|
||||||
|
- scorecard-test
|
||||||
|
- olm-crds-have-validation
|
||||||
|
labels:
|
||||||
|
suite: olm
|
||||||
|
test: olm-crds-have-validation-test
|
||||||
|
- image: quay.io/operator-framework/scorecard-test:latest
|
||||||
|
entrypoint:
|
||||||
|
- scorecard-test
|
||||||
|
- olm-crds-have-resources
|
||||||
|
labels:
|
||||||
|
suite: olm
|
||||||
|
test: olm-crds-have-resources-test
|
||||||
|
- image: quay.io/operator-framework/scorecard-test:latest
|
||||||
|
entrypoint:
|
||||||
|
- scorecard-test
|
||||||
|
- olm-spec-descriptors
|
||||||
|
labels:
|
||||||
|
suite: olm
|
||||||
|
test: olm-spec-descriptors-test
|
||||||
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
FROM scratch
|
||||||
|
|
||||||
|
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
|
||||||
|
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
|
||||||
|
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
|
||||||
|
LABEL operators.operatorframework.io.bundle.package.v1=openshiftartifactoryha-operator
|
||||||
|
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
|
||||||
|
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
|
||||||
|
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.3.0
|
||||||
|
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
|
||||||
|
LABEL operators.operatorframework.io.metrics.project_layout=helm.sdk.operatorframework.io/v1
|
||||||
|
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
|
||||||
|
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
|
||||||
|
|
||||||
|
COPY 1.1.8/manifests /manifests/
|
||||||
|
COPY 1.1.8/metadata /metadata/
|
||||||
|
LABEL com.redhat.openshift.versions="v4.5,v4.6"
|
||||||
|
LABEL com.redhat.delivery.operator.bundle=true
|
||||||
|
LABEL com.redhat.delivery.backport=true
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
# JFrog Openshift Artifactory-ha Chart Changelog
|
# JFrog Openshift Artifactory-ha Chart Changelog
|
||||||
All changes to this chart will be documented in this file.
|
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
|
## [4.7.6] - Jan 11, 2021
|
||||||
* Updating to latest jfrog/artifactory-ha helm chart version 4.7.6 artifactory version 7.12.6
|
* Updating to latest jfrog/artifactory-ha helm chart version 4.7.6 artifactory version 7.12.6
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: 7.12.6
|
appVersion: 7.15.3
|
||||||
description: Openshift JFrog Artifactory HA subcharting Artifactory HA to work in Openshift environment
|
description: Openshift JFrog Artifactory HA subcharting Artifactory HA to work in Openshift environment
|
||||||
home: https://www.jfrog.com/artifactory/
|
home: https://www.jfrog.com/artifactory/
|
||||||
icon: https://raw.githubusercontent.com/jfrog/charts/master/stable/artifactory-ha/logo/artifactory-logo.png
|
icon: https://raw.githubusercontent.com/jfrog/charts/master/stable/artifactory-ha/logo/artifactory-logo.png
|
||||||
@@ -16,4 +16,4 @@ name: openshift-artifactory-ha
|
|||||||
sources:
|
sources:
|
||||||
- https://bintray.com/jfrog/product/JFrog-Artifactory-Pro/view
|
- https://bintray.com/jfrog/product/JFrog-Artifactory-Pro/view
|
||||||
- https://github.com/jfrog/charts
|
- 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:
|
dependencies:
|
||||||
- name: artifactory-ha
|
- name: artifactory-ha
|
||||||
repository: https://charts.jfrog.io/
|
repository: https://charts.jfrog.io/
|
||||||
version: 4.7.6
|
version: 4.9.1
|
||||||
digest: sha256:f3e6b2b4494175cbadde85700458d8e3383ebb6e9c9a3c9cda19136bc55f4187
|
digest: sha256:1254089bfad8d6c4bbb984dedf835360de4cccb7423479cb69395c281b633041
|
||||||
generated: "2021-01-11T11:49:29.797662-08:00"
|
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:
|
dependencies:
|
||||||
- name: artifactory-ha
|
- name: artifactory-ha
|
||||||
version: 4.7.6
|
version: 4.9.1
|
||||||
repository: https://charts.jfrog.io/
|
repository: https://charts.jfrog.io/
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ artifactory-ha:
|
|||||||
url: "OVERRIDE"
|
url: "OVERRIDE"
|
||||||
user: "OVERRIDE"
|
user: "OVERRIDE"
|
||||||
password: "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
|
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" } ] }'
|
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:
|
artifactory:
|
||||||
@@ -19,7 +19,7 @@ artifactory-ha:
|
|||||||
image:
|
image:
|
||||||
registry: registry.connect.redhat.com
|
registry: registry.connect.redhat.com
|
||||||
repository: jfrog/artifactory-pro
|
repository: jfrog/artifactory-pro
|
||||||
tag: 7.12.6-1
|
tag: 7.15.3-1
|
||||||
node:
|
node:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
waitForPrimaryStartup:
|
waitForPrimaryStartup:
|
||||||
|
|||||||
Reference in New Issue
Block a user