Skip to content

Commit 07f56fe

Browse files
committed
fix bundle for upstream
1 parent 8cd3c30 commit 07f56fe

10 files changed

+1000
-259
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ test-unit:
166166
test-cluster:
167167
go test -cover -race ./test/... -- -root=$(CURDIR)
168168

169-
MANIFEST_VERSION?="5.0"
169+
OPENSHIFT_VERSIONS?="v4.7"
170170
generate-bundle: regenerate $(OPM)
171-
MANIFEST_VERSION=${MANIFEST_VERSION} hack/generate-bundle.sh
172-
171+
MANIFEST_VERSION=${OCP_VERSION} OPENSHIFT_VERSIONS=${OPENSHIFT_VERSIONS} hack/generate-bundle.sh
173172
.PHONY: generate-bundle
174173

175174
# NOTE: This is the CI e2e entry point.

bundle.Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
44
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
55
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
66
LABEL operators.operatorframework.io.bundle.package.v1=cluster-logging-operator
7-
LABEL operators.operatorframework.io.bundle.channels.v1=5.0
8-
LABEL operators.operatorframework.io.bundle.channel.default.v1=5.0
7+
LABEL operators.operatorframework.io.bundle.channels.v1=5.1
8+
LABEL operators.operatorframework.io.bundle.channel.default.v1=5.1
99

1010
COPY bundle/manifests /manifests/
1111
COPY bundle/metadata /metadata/
1212

1313
LABEL com.redhat.delivery.operator.bundle=true
14-
LABEL com.redhat.openshift.versions="v5.0"
14+
LABEL com.redhat.openshift.versions="v4.7"
1515

1616
LABEL \
1717
com.redhat.component="cluster-logging-operator" \

bundle/manifests/cluster-logging.v5.0.0.clusterserviceversion.yaml renamed to bundle/manifests/cluster-logging.v5.1.0.clusterserviceversion.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: operators.coreos.com/v1alpha1
44
kind: ClusterServiceVersion
55
metadata:
66
# The version value is substituted by the ART pipeline
7-
name: clusterlogging.v5.0.0
7+
name: clusterlogging.v5.1.0
88
namespace: placeholder
99
labels:
1010
"operatorframework.io/arch.amd64": supported
@@ -99,7 +99,7 @@ metadata:
9999
]
100100
spec:
101101
# The version value is substituted by the ART pipeline
102-
version: 5.0.0
102+
version: 5.1.0
103103
displayName: Cluster Logging
104104
minKubeVersion: 1.18.3
105105
description: |

bundle/manifests/logging.openshift.io_clusterlogforwarders_crd.yaml

+183-39
Large diffs are not rendered by default.

bundle/manifests/logging.openshift.io_clusterloggings_crd.yaml

+310-83
Large diffs are not rendered by default.

bundle/metadata/annotations.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
annotations:
2-
operators.operatorframework.io.bundle.channel.default.v1: "5.0"
3-
operators.operatorframework.io.bundle.channels.v1: "5.0"
2+
operators.operatorframework.io.bundle.channel.default.v1: "5.1"
3+
operators.operatorframework.io.bundle.channels.v1: "5.1"
44
operators.operatorframework.io.bundle.manifests.v1: manifests/
55
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
66
operators.operatorframework.io.bundle.metadata.v1: metadata/

hack/generate-bundle.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $OPM alpha bundle generate --directory manifests/${MANIFEST_VERSION} --package c
1111
cat >> bundle.Dockerfile <<EOF
1212
1313
LABEL com.redhat.delivery.operator.bundle=true
14-
LABEL com.redhat.openshift.versions="v${MANIFEST_VERSION}"
14+
LABEL com.redhat.openshift.versions="${OPENSHIFT_VERSIONS}"
1515
1616
LABEL \\
1717
com.redhat.component="cluster-logging-operator" \\
@@ -27,4 +27,4 @@ EOF
2727
find bundle/manifests/ -type f ! \( -name "cluster-logging*" -o -name "*crd.yaml" \) -delete
2828

2929
echo "validating bundle..."
30-
$OPERATOR_SDK bundle validate --verbose bundle
30+
$OPERATOR_SDK bundle validate --verbose bundle

manifests/5.1/logging.openshift.io_clusterlogforwarders_crd.yaml

+183-39
Large diffs are not rendered by default.

manifests/5.1/logging.openshift.io_clusterloggings_crd.yaml

+310-83
Large diffs are not rendered by default.

test/functional/normalization/message_format_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
var _ = Describe("[LogForwarding] Functional tests for message format", func() {
1616

1717
var (
18-
framework *functional.FluentdFunctionalFramework
18+
framework *functional.FluentdFunctionalFramework
1919
)
2020

2121
BeforeEach(func() {
@@ -104,7 +104,7 @@ var _ = Describe("[LogForwarding] Functional tests for message format", func() {
104104
// Template expected as output Log
105105
var outputLogTemplate = functional.NewApplicationLogTemplate()
106106
outputLogTemplate.Timestamp = nanoTime
107-
outputLogTemplate.Message = fmt.Sprintf("regex:^%s.*$", message)
107+
outputLogTemplate.Message = fmt.Sprintf("regex:^%s.*$", message)
108108
outputLogTemplate.Level = "info"
109109

110110
// Write log line as input to fluentd
@@ -132,7 +132,7 @@ var _ = Describe("[LogForwarding] Functional tests for message format", func() {
132132
// Template expected as output Log
133133
var outputLogTemplate = functional.NewApplicationLogTemplate()
134134
outputLogTemplate.Timestamp = nanoTime
135-
outputLogTemplate.Message = fmt.Sprintf("regex:^%s.*$", message)
135+
outputLogTemplate.Message = fmt.Sprintf("regex:^%s.*$", message)
136136
outputLogTemplate.Level = "*"
137137

138138
// Write log line as input to fluentd

0 commit comments

Comments
 (0)