Skip to content

Manifest changes for OpenShift #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,15 @@ jobs:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /tmp/coherence-operator/_output/coherence-dashboards.tar.gz
asset_name: coherence-dashboards.tar.gz
asset_content_type: text/plain
asset_content_type: application/tar+gzip

- name: Upload Docs
id: upload-docs
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /tmp/coherence-operator/_output/docs.tar.gz
asset_name: docs.tar.gz
asset_content_type: application/tar+gzip
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,34 @@ ARG target
ARG version
ARG coherence_image
ARG operator_image
ARG release

LABEL "com.oracle.coherence.application"="operator"
LABEL "com.oracle.coherence.version"="$version"
LABEL "org.opencontainers.image.revision"="$release"
LABEL "org.opencontainers.image.description"="The Oracle Coherece Kubernetes Operator image ($target)"
LABEL "org.opencontainers.image.source"="https://github.com/oracle/coherence-operator"
LABEL "org.opencontainers.image.authors"="To contact the authors use this link https://github.com/oracle/coherence-operator/discussions"
LABEL "org.opencontainers.image.licenses"="UPL-1.0"
LABEL "org.opencontainers.image.description"="The Oracle Coherece Kubernetes Operator allows full lifecycle management of Oracle Coherence workloads in Kubernetes."

LABEL "name"="Oracle Coherence Kubernetes Operator"
LABEL "vendor"="Oracle"
LABEL "version"="$version"
LABEL "release"="$release"
LABEL "maintainer"="Oracle Coherence Engieering Team"
LABEL "summary"="A Kubernetes Operator for managing Oracle Coherence clusters"
LABEL "description"="The Oracle Coherece Kubernetes Operator allows full lifecycle management of Oracle Coherence workloads in Kubernetes."

ENV COHERENCE_IMAGE=$coherence_image \
OPERATOR_IMAGE=$operator_image

COPY LICENSE.txt /licenses/LICENSE.txt
COPY bin/linux/$target/* /files/
COPY java/coherence-operator/target/docker/lib/*.jar /files/lib/
COPY java/coherence-operator/target/docker/logging/logging.properties /files/logging/logging.properties

USER 1000

ENTRYPOINT ["/files/runner"]
CMD ["-h"]
387 changes: 237 additions & 150 deletions Makefile

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion PROJECT
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
domain: oracle.com
layout: go.kubebuilder.io/v3
layout:
- go.kubebuilder.io/v4
projectName: coherence-operator
repo: github.com/oracle/coherence-operator
resources:
Expand Down
22 changes: 22 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
spec:
serviceAccountName: service-account
terminationGracePeriodSeconds: 10
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: manager
image: controller:latest
Expand Down Expand Up @@ -91,6 +95,11 @@ spec:
initialDelaySeconds: 10
periodSeconds: 10
failureThreshold: 3
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
volumes:
- name: cert
secret:
Expand All @@ -108,6 +117,19 @@ spec:
app.kubernetes.io/instance: coherence-operator-manager
app.kubernetes.io/version: "3.4.3"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
- arm64
- key: kubernetes.io/os
operator: In
values:
- linux
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,42 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: '[ { "apiVersion": "coherence.oracle.com/v1", "kind": "Coherence",
"metadata": { "name": "coherence-example" }, "spec": { "replicas": 3 } }]'
alm-examples: "[ \n {\n \"apiVersion\": \"coherence.oracle.com/v1\", \n \"kind\":
\"Coherence\",\n \"metadata\": { \n \"name\": \"coherence-example\"
\n }, \n \"spec\": { \n \"replicas\": 3 \n } \n }\n]"
capabilities: Full Lifecycle
categories: Database
certified: 'false'
createdAt: ''
description: >-
Coherence Operator implements features to assist with deploying and
managing Coherence clusters in a Kubernetes environment.
containerImage: 'ghcr.io/oracle/coherence-operator:3.4.3'
support: ''
repository: 'https://github.com/oracle/coherence-operator'
operators.operatorframework.io/builder: operator-sdk-v1.0.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2
name: coherence-operator.v3.4.3
namespace: placeholder
certified: "false"
containerImage: ghcr.io/oracle/coherence-operator:3.4.3
description: The Oracle Coherence Kubernetes Operator enables easy management
of Coherence clusters in a Kubernetes environment.
operators.operatorframework.io/builder: operator-sdk-v1.39.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
repository: https://github.com/oracle/coherence-operator
support: ""
name: coherence-operator.v3.4.2
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: Coherence is the Schema for the Coherence Operator API.
- description: Coherence is the Schema for the Coherence Cluster API.
displayName: Coherence
kind: Coherence
name: coherence.coherence.oracle.com.oracle.com
name: coherence.coherence.oracle.com
version: v1
- description: CoherenceJob is the Schema for the Coherence Job API.
displayName: CoherenceJob
kind: CoherenceJob
name: coherencejob.coherence.oracle.com
version: v1
description: |
The Coherence Operator implements features to assist with deploying and
managing Coherence clusters in a Kubernetes environment.
The Oracle Coherence Kubernetes Operator enables easy management of Coherence clusters in a Kubernetes environment.

### Installation Guide & Configuration

For the complete installation guide and all configuration options please refer to
[Coherence Operator Documentation](https://oracle.github.io/coherence-operator/docs/latest/#/about/01_overview).
displayName: Coherence
displayName: Coherence Kubernetes Operator
icon:
- base64data: iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAIK2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAg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A3oqonS/2L988/pE/x9RPTtRzY85U+wnsT881YboemgfA0ereKLkvN/Uj9hGAlRedJ0Wh0p5jkLKQFE5SO1ElVohQJTbYGV60vZH4aHOkWhota9WLq+OkBySFQaPYiHlTLZgfKE5iSd5zv/hHmIHL4knuLZvOS+yMxM5mbofzmwi6q2Ja1cISwEGfdGnu2iMB29fmHbR2vcp9hesS7KJ6mVcq9yuvwkoVSQMycgRre8al/VUG1G3wD6SV9imrFustN8eTtK3FKbs2atJLulALC8kZuevssEd/R2/+vcNKMRWieosnRitvKaWyVc//OlRMgtqrUsrjB9dTea3Ds5Vc4fZqxDMlU/RJcJUAs82t8AtUWfX2EXO3DVzizZuzrRla9U18K1ALENi+ZUCr6SLDNWXzU3ByT6Jfb4pz+UzNm7AdQbyyeOL/PybG6LW0ECCv1qfhALsISz8siO71uR/PK9XGkNwbEdtSbaQiClL11vqZj21J29NlW1LXxYbKyusvSvQFiK6LzhNjWBQhP7L2ax0rWiUsdPq1FilkuV/U9mr0DQsb4lMvsuI8wjE8ztk1/qhVA7NPq13IRzIlXf0ObmXXEXErjaAM7FSDi0CogFpgumNKHh8H2v8oxCCC2QdQv8H4ZE/JhXuaGYfooLm3/XY5BAWGDMgy7cGlgUR7ql1gPnz5/4dHL9m5QFPUjm1YYfs9m9HXOyabMJyCi+nT1I62c7Bt6zCIITM3Wp5mY3Pz8UVdfdAg+Ql4yq8ZTzahxoTdcU39EIZ3Sl3yw150DYhviZJZWtHJcjAmKva7CNrbv2WNvAGGjqF+2zD808oa3GhM9CWxmAenlOUMbZrsz9oeYp9xDKxOwn14wc0ex5oHsjsSOAzsO7Diw48COA73hwF/JV5eOHd1hjQAAAABJRU5ErkJggg==
mediatype: image/png
Expand All @@ -55,14 +57,13 @@ spec:
keywords:
- coherence
links:
- name: Coherence Operator
- name: Coherence Kubernetes Operator
url: https://oracle.github.io/coherence-operator/docs/latest
- name: Oracle Coherence
url: https://coherence.community
maturity: alpha
minKubeVersion: "1.18"
maintainers:
- name: Jonathan Knight
email: jonathan.knight@oracle.com
minKubeVersion: 1.26.0
provider:
name: Oracle
url: https://oracle.github.io/coherence-operator/docs/latest
name: Oracle Corporation
url: https://github.com/oracle/coherence-operator
version: 3.4.3
2 changes: 1 addition & 1 deletion config/samples/coherence.oracle.com_v1_coherence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Coherence
metadata:
name: coherence-sample
spec:
replicas: 1
replicas: 3
2 changes: 1 addition & 1 deletion hack/coherence-certification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# by the test suite to install the operator.
#
# * The Operator image and its test images wil be pushed to an image registry.
# The registry to use should be set using the RELEASE_IMAGE_PREFIX environment
# The registry to use should be set using the OPERATOR_IMAGE_REGISTRY environment
# variable. If the registry requires credentials to push to then the
# docker login command should already have been executed before this script.
#
Expand Down
18 changes: 14 additions & 4 deletions hack/ensure-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh

REQUIRED_VERSION=$1
REQUIRED_VERSION="$(curl -s https://api.github.com/repos/operator-framework/operator-sdk/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')"
OPERATOR_SDK_HOME=$2

UNAME_S=$(uname -s)
UNAME_M=$(uname -m)

OPERATOR_SDK=${OPERATOR_SDK_HOME}/operator-sdk
OK=0

Expand All @@ -25,12 +27,20 @@ if [ ${OK} != 0 ]; then
echo "Operator SDK not found or not correct version"

if [ "${UNAME_S}" = "Darwin" ]; then
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk_darwin_amd64"
if [ "${UNAME_S}" = "x86_64" ]; then
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk_darwin_amd64"
else
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk_darwin_arm64"
fi
else
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk-linux-amd64"
if [ "${UNAME_S}" = "x86_64" ]; then
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk-linux-amd64"
else
URL="https://github.com/operator-framework/operator-sdk/releases/download/${REQUIRED_VERSION}/operator-sdk-linux-arm64"
fi
fi

echo "Downloading Operator SDK ${UNAME_S} version from ${URL}"
echo "Downloading Operator SDK ${UNAME_S}/${UNAME_M} version ${REQUIRED_VERSION} from ${URL}"
curl -L ${URL} -o ${OPERATOR_SDK}
chmod +x ${OPERATOR_SDK}
fi
Expand Down
2 changes: 1 addition & 1 deletion hack/k8s-certification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# by the test suite to install the operator.
#
# * The Operator image and its test images wil be pushed to an image registry.
# The registry to use should be set using the RELEASE_IMAGE_PREFIX environment
# The registry to use should be set using the OPERATOR_IMAGE_REGISTRY environment
# variable. If the registry requires credentials to push to then the
# docker login command should already have been executed before this script.
#
Expand Down
64 changes: 64 additions & 0 deletions hack/preflight.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: preflight
data:
registry-config.json: |
{
"auths": {
"default-route-openshift-image-registry.apps-crc.testing": {
"auth": "registry-credential-placeholder"
}
}
}
---
apiVersion: batch/v1
kind: Job
metadata:
name: preflight
spec:
template:
spec:
imagePullSecrets:
- name: default-dockercfg-l28bp
containers:
- name: preflight
image: "quay.io/opdev/preflight:stable"
command:
- preflight
- check
- container
- --insecure
- image-placeholder
env:
- name: PFLT_LOGLEVEL
value: trace
- name: PFLT_LOGFILE
value: "/artifacts/preflight.log"
- name: PFLT_ARTIFACTS
value: "/artifacts"
- name: PFLT_DOCKERCONFIG
value: /registry-creds/registry-config.json
- name: PFLT_CHANNEL
value: "beta"
volumeMounts:
- name: "outputdir"
mountPath: "/artifacts"
- name: registry-config
mountPath: /registry-creds
# - name: "kubeconfig"
# mountPath: "/creds"
restartPolicy: Never
volumes:
- name: "outputdir"
emptyDir:
medium: ""
- name: registry-config
configMap:
name: preflight
optional: false
# - name: kubeconfig
# secret:
# secretName: test-cluster-kubeconfig
# optional: false
backoffLimit: 2
21 changes: 21 additions & 0 deletions hack/setup-podman.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2020, 2025, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
#

#!/usr/bin/env bash

# --------------------------------------------------------------------
# This script exports various environment variables so that
# Make targets will be executed using Podman and OpenShift.
# --------------------------------------------------------------------

export DOCKER_CMD=podman
export PUSH_ARGS=--tls-verify=false
export REGISTRY=$(oc get route/default-route -n openshift-image-registry -o=jsonpath='{.spec.host}')
export OPERATOR_IMAGE_REGISTRY=${REGISTRY}/oracle
export PREFLIGHT_REGISTRY_CRED=$(echo -n bogus:$(oc whoami -t) | base64)

podman login -u bogus -p $(oc whoami -t) --tls-verify=false ${REGISTRY}

3 changes: 2 additions & 1 deletion helm-charts/coherence-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

name: coherence-operator
description: A Kubernetes Operator for Coherence
apiVersion: v1
apiVersion: v2
version: ${VERSION}
appVersion: ${VERSION}
home: https://github.com/oracle/coherence-operator
sources:
- https://github.com/oracle/coherence-operator
icon: "https://docs.oracle.com/en/dcommon/img/oracle-doc-logo.png"
kubeVersion: ">=1.26"
Loading
Loading