Skip to content

Commit

Permalink
Update CSV and metadata annotations for openshift certification (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
prafull01 authored Mar 14, 2024
1 parent 1f64bd0 commit bb7b6cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/cockroachdb/cockroach-operator
support: Cockroach Labs
features.operators.openshift.io/disconnected: "true"
features.operators.openshift.io/fips-compliant: "false"
features.operators.openshift.io/proxy-aware: "false"
features.operators.openshift.io/tls-profiles: "false"
features.operators.openshift.io/token-auth-aws: "false"
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
name: cockroach-operator.v0.0.0
namespace: placeholder
spec:
Expand Down
7 changes: 7 additions & 0 deletions config/templates/csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/cockroachdb/cockroach-operator
support: Cockroach Labs
features.operators.openshift.io/disconnected: "true"
features.operators.openshift.io/fips-compliant: "false"
features.operators.openshift.io/proxy-aware: "false"
features.operators.openshift.io/tls-profiles: "false"
features.operators.openshift.io/token-auth-aws: "false"
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
name: cockroach-operator.v0.0.0
namespace: placeholder
spec:
Expand Down
4 changes: 3 additions & 1 deletion hack/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ generate_bundle() {
--output-dir "${dir}"

# Ensure package name is correct for the specific bundle and that the CSV name matches the package name. Also removing
# the testing annotations since these are handled automatically upstream.
# the testing annotations since these are handled automatically upstream. Also add openshift version annotation
local openshift_version_annotation=" com.redhat.openshift.versions: v4.8"
sed \
-e "s+annotations:+annotations:\n # Minimum Openshift version annotation\n${openshift_version_annotation}+" \
-e "s/package.v1: cockroach-operator/package.v1: ${pkg}/g" \
-e "/\s*# Annotations for testing/d" \
-e "/\s*operators.operatorframework.io.test/d" \
Expand Down

0 comments on commit bb7b6cc

Please sign in to comment.