Skip to content

Commit d3b165b

Browse files
authored
Merge pull request #378 from oracle/issue-371
Possible fix for issue #371
2 parents 44a4e38 + 3b7b617 commit d3b165b

File tree

11 files changed

+25
-15
lines changed

11 files changed

+25
-15
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ pipeline {
247247
export IMAGE_PULL_SECRETS=coherence-k8s-operator-development-secret,ocr-k8s-operator-development-secret
248248
export RELEASE_IMAGE_PREFIX=$(eval echo $TEST_IMAGE_PREFIX)
249249
export TEST_MANIFEST_VALUES=deploy/oci-values.yaml
250-
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
251-
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
252-
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
253-
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
250+
kubectl apply --validate=false -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
251+
kubectl apply --validate=false -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
252+
kubectl apply --validate=false -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
253+
kubectl apply --validate=false -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
254254
make helm-test GO_TEST_FLAGS='-short'
255255
'''
256256
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ---------------------------------------------------------------------------
99

1010
# The version of the Operator being build - this should be a valid SemVer format
11-
VERSION ?= 2.0.2
11+
VERSION ?= 2.0.3
1212

1313
# VERSION_SUFFIX is ann optional version suffix. For a full release this should be
1414
# set to blank, for an interim release it should be set to a value to identify that

cmd/manager/main.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/oracle/coherence-operator/pkg/flags"
1717
"github.com/oracle/coherence-operator/pkg/operator"
1818
cohrest "github.com/oracle/coherence-operator/pkg/rest"
19+
"k8s.io/klog"
1920
"net/http"
2021
"os"
2122
"runtime"
@@ -81,12 +82,21 @@ func main() {
8182
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
8283

8384
// >>>>>>>> Coherence Operator code added to Operator SDK the generated file ---------------------------
85+
86+
// ensure that klog always logs to the console
87+
klog.InitFlags(flag.CommandLine)
88+
if err := flag.CommandLine.Set("logtostderr", "true"); err != nil {
89+
fmt.Println(err)
90+
log.Error(err, "Failed to get set logtostderr command line flag")
91+
os.Exit(1)
92+
}
93+
8494
// create Coherence Operator flags
8595
cohf := flags.AddTo(pflag.CommandLine)
8696

8797
// create Helm Operator flags
8898
hflags := hoflags.AddTo(pflag.CommandLine)
89-
fmt.Println(hflags)
99+
90100
// <<<<<<<< Coherence Operator code added to Operator SDK the generated file ---------------------------
91101

92102
pflag.Parse()

docs/developer/05_building.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ By default the version number used to tag the Docker images and Helm charts is s
4747
in the `Makefile` and in the `pom.xml` files in the `java/` directory.
4848
4949
The `Makefile` also contains a `VERSION_SUFFIX` variable that is used to add a suffix to the build. By default
50-
this suffix is `ci` so the default version of the build artifacts is `2.0.2-ci`. Change this suffix, for
50+
this suffix is `ci` so the default version of the build artifacts is `2.0.3-ci`. Change this suffix, for
5151
example when building a release candidate or a full release.
5252
5353
For example, if building a release called `alpha2` the following command can be used:

examples/deployment/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ This will result in the following Docker image being created which contains the
152152
artifacts to be use by all deployments.
153153

154154
```console
155-
deployment-example:2.0.2
155+
deployment-example:2.0.3
156156
```
157157
## Install the Coherence Operator
158158

examples/deployment/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
<parent>
1616
<groupId>com.oracle.coherence.kubernetes</groupId>
1717
<artifactId>examples-parent</artifactId>
18-
<version>2.0.2</version>
18+
<version>2.0.3</version>
1919
<relativePath>../pom.xml</relativePath>
2020
</parent>
2121

2222
<artifactId>deployment-example</artifactId>
2323
<name>Coherence Operator Deployment Example</name>
24-
<version>2.0.2</version>
24+
<version>2.0.3</version>
2525

2626
<properties>
2727
<maven.compiler.source>8</maven.compiler.source>

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<groupId>com.oracle.coherence.kubernetes</groupId>
1717
<artifactId>examples-parent</artifactId>
1818
<packaging>pom</packaging>
19-
<version>2.0.2</version>
19+
<version>2.0.3</version>
2020

2121
<description>Oracle Coherence Operator Examples Project</description>
2222
<name>Oracle Coherence Operator Examples Parent</name>

java/coherence-utils/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>com.oracle.coherence.kubernetes</groupId>
1717
<artifactId>operator-parent</artifactId>
18-
<version>2.0.2</version>
18+
<version>2.0.3</version>
1919
</parent>
2020

2121
<artifactId>coherence-utils</artifactId>

java/docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>com.oracle.coherence.kubernetes</groupId>
1717
<artifactId>operator-parent</artifactId>
18-
<version>2.0.2</version>
18+
<version>2.0.3</version>
1919
</parent>
2020

2121
<artifactId>operator-docs</artifactId>

java/operator-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>com.oracle.coherence.kubernetes</groupId>
1717
<artifactId>operator-parent</artifactId>
18-
<version>2.0.2</version>
18+
<version>2.0.3</version>
1919
</parent>
2020

2121
<artifactId>operator-test</artifactId>

0 commit comments

Comments
 (0)