Skip to content

Commit 493a5d6

Browse files
authored
Merge pull request #10 from jfrog/release
Adding images for operator reg
2 parents 1e50451 + 6659639 commit 493a5d6

File tree

14 files changed

+125
-12
lines changed

14 files changed

+125
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
3131
#
3232
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
3333
# jfrog.com/operator-bundle:$VERSION and jfrog.com/operator-catalog:$VERSION.
34-
IMAGE_TAG_BASE ?= docker.jfrog.io/jfrog/jfrog-registry-operator:test
34+
IMAGE_TAG_BASE ?= docker.jfrog.io/jfrog/jfrog-registry-operator:latest
3535

3636
# BUNDLE_IMG defines the image:tag used for the bundle.
3737
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ helm repo add jfrog https://charts.jfrog.io
2323
helm repo update
2424

2525
# decide on the namespace and kubernetes service account name you will want to create
26-
export SERVICE_ACCOUNT_NAME="<service account name>"
26+
export SERVICE_ACCOUNT_NAME="<service account name>" # Default name is jfrog-operator-sa"
2727
export ANNOTATIONS="<Role annotation for service account>" # Example: eks.amazonaws.com/role-arn: arn:aws:iam::000000000000:role/jfrog-operator-role
2828
export NAMESPACE="jfrog-operator"
2929

build/ci/pipelines_step_setup.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
PROJECT_ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)"
6+
pushd "${PROJECT_ROOT_DIR}"
7+
8+
# Use the jfdev-ci-commons as a library in the services.
9+
# This script downloads the jfdev-ci-commons npm package and extract the files inside it to the destination folder: build/ci/scripts/
10+
# The service will use the ci code locally.
11+
# In the service add in every step:
12+
# onStart:
13+
# - source "${res_<service>_bitbucket_resourcePath}/build/ci/pipelines_step_setup.sh"
14+
#
15+
16+
17+
JFDEV_CI_COMMONS_DEFAULT_VERSION="1.*"
18+
19+
if [[ -z "${JFDEV_CI_COMMONS_VERSION}" ]]; then
20+
# Download latest release version (without milestone + dev versions) based on regex in 'JFDEV_CI_COMMONS_DEFAULT_VERSION'
21+
# Command breakdown:
22+
# jq -c '.[].props["npm.version"]' -> Return the value under [props][npm.version]
23+
# egrep -v -e "-m" -e "-dev" -> Remove the result with -m and -dev so in this case "1.2.0-dev" and "1.8.0-m016" will be removed
24+
# sort --version-sort -> Return asc sorted data for all version numeric-wise
25+
# tail -1 -> Return the last output print line since its already sorted
26+
27+
JFDEV_CI_COMMONS_VERSION=$(jfrog rt search "npm-releases-local/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_DEFAULT_VERSION}.tgz" | jq -cr '.[].props["npm.version"][]' | egrep -v -e "-m" -e "-dev" | sort --version-sort | tail -1)
28+
echo "Found JFdev ci commons latest: ${JFDEV_CI_COMMONS_VERSION} "
29+
jfrog rt dl --explode "npm-releases-local/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_VERSION}.tgz"
30+
else
31+
# Download specific version user asked for in env var 'JFDEV_CI_COMMONS_VERSION' - could be release/milestone/dev
32+
jfrog rt dl --explode "*/jfdev-ci-commons/-/jfdev-ci-commons-${JFDEV_CI_COMMONS_VERSION}.tgz"
33+
fi
34+
35+
CI_SCRIPTS_FOLDER="${PROJECT_ROOT_DIR}/.jfrog-pipelines/build/ci/scripts"
36+
echo "${CI_SCRIPTS_FOLDER}"
37+
if [ -d "${CI_SCRIPTS_FOLDER}" ]; then
38+
echo "${CI_SCRIPTS_FOLDER} exists"
39+
# Directory ${CI_SCRIPTS_FOLDER} exists
40+
if [ "$(ls -A ${CI_SCRIPTS_FOLDER})" ]; then
41+
# Soon this folder will be removed from artifactory to jfdev-ci-commons repository.
42+
# After the remove this warning will become an error
43+
echo "[WARN] ${CI_SCRIPTS_FOLDER} is not empty"
44+
rm -rf "${CI_SCRIPTS_FOLDER}/*"
45+
fi
46+
fi
47+
48+
mkdir -p "${CI_SCRIPTS_FOLDER}"; cp -Rf jfdev-ci-commons/-/package/* "${CI_SCRIPTS_FOLDER}/"
49+
50+
source "${CI_SCRIPTS_FOLDER}/lib/pipelineStepCommons.sh"

build/ci/services.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
services:
3+
artifactory_secrets_rotator_operator:
4+
serviceShortName: jfop
5+
property: jfrog.operator.version
6+
group: com.jfrog.operator
7+
artifact: jfrog-registry-operator
8+
helmChartsNames:
9+
- jfrog-registry-operator
10+
goModulesNames:
11+
- artifactory-secrets-rotator
12+
releaseRepository:
13+
helm: helm-releases-local
14+
go: go-releases-local
15+
orderedPaths:
16+
- charts/jfrog-registry-operator
17+
exclude_monorepo: true
18+
jiraProjectKeys:
19+
- INST
20+
bitBucket:
21+
projectKey: JFROG
22+
repoSlug: artifactory
23+
distributeArtifacts:
24+
- type: helm
25+
flavors:
26+
- jfrog-registry-operator
27+
source:
28+
path: ""
29+
name: <FLAVOR>-<VERSION>.tgz
30+
repository: helm-releases-local
31+
target:
32+
path: ""
33+
name: <FLAVOR>-<VERSION>.tgz
34+
repository: jfrog-charts-local

build/ci/sonnarScan.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
export PROJECT_ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../../.. && pwd)"
6+
source "${PROJECT_ROOT_DIR}/.jfrog-pipelines/build/ci/scripts/runSonarScannerGeneric.sh"
7+
8+
SONAR_PROJECT_BASE_DIR="${SONAR_PROJECT_BASE_DIR:-}"
9+
10+
SONAR_INCLUSIONS="${SONAR_INCLUSIONS-**/*.go}"
11+
SONAR_EXCLUSIONS="${SONAR_EXCLUSIONS-**/*_test.go}"
12+
13+
function on_start() {
14+
return 0
15+
}
16+
17+
function on_execute() {
18+
pushd "${PROJECT_ROOT_DIR}/${SONAR_PROJECT_BASE_DIR}" && ls -lsa
19+
sonar_runScan
20+
popd > /dev/null
21+
}
22+
23+
function on_success() {
24+
return 0
25+
}
26+
27+
function on_complete() {
28+
return 0
29+
}

build/ci/values.yml

Whitespace-only changes.
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# JFrog Secret Rotator Operator Chart Changelog
22
All changes to this chart will be documented in this file.
33

4-
## [0.1.0] - Oct 25, 2023
5-
* First release of jfrog-registry-operator
6-
7-
## [0.0.3] - Nov 17, 2023
8-
* First release of jfrog-registry-operator `0.0.3`
4+
## [1.0.0] - Dec 12, 2023
5+
* First release of jfrog-registry-operator `1.0.0`

charts/jfrog-registry-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ kubeVersion: ">= 1.19.0-0"
33
type: application
44
name: jfrog-registry-operator
55
home: https://jfrog.com/platform/
6-
version: 0.0.3
7-
appVersion: 0.x-SNAPSHOT
6+
version: 1.0.0
7+
appVersion: 1.x-SNAPSHOT
88
dependencies:
99
- name: jfrog-common
1010
version: 0.0.7

charts/jfrog-registry-operator/full-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ global:
88
image:
99
registry: releases-docker.jfrog.io
1010
repository: jfrog/jfrog-registry-operator
11-
tag: 0.0.3
11+
tag: 1.0.0
1212

1313
pullPolicy: IfNotPresent
1414
# pullSecrets:

config/deploy/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ spec:
6767
- ./operator
6868
args:
6969
- --leader-elect
70-
image: releases-docker.jfrog.io/jfrog/jfrog-registry-operator:0.0.3
70+
image: releases-docker.jfrog.io/jfrog/jfrog-registry-operator:1.0.0
7171
name: manager
7272
ports:
7373
- containerPort: 8080

0 commit comments

Comments
 (0)