From f595c04766fd2d293ab06a7429ad992d605d2084 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Fri, 22 Mar 2019 11:07:56 -0700 Subject: [PATCH 1/4] Update major version Signed-off-by: Waldemar Quevedo --- internal/operator/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/operator/constants.go b/internal/operator/constants.go index 618d843..6af6079 100644 --- a/internal/operator/constants.go +++ b/internal/operator/constants.go @@ -17,7 +17,7 @@ import "time" const ( // Version is the version of the NATS Streaming Operator. - Version = "0.3.0" + Version = "0.2.2" // DefaultNATSStreamingImage is the default image // of NATS Streaming that will be used, meant to be From 2de88bfddf44bd3c69c1f43128c8a57fe0278656 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Fri, 22 Mar 2019 11:09:14 -0700 Subject: [PATCH 2/4] Update version in README Signed-off-by: Waldemar Quevedo --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d545527..41f7889 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![License Apache 2.0](https://img.shields.io/badge/License-Apache2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Build Status](https://travis-ci.org/nats-io/nats-streaming-operator.svg?branch=master)](https://travis-ci.org/nats-io/nats-streaming-operator) -[![Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=go&type=5&v=0.2.0)](https://github.com/nats-io/nats-streaming-operator/releases/tag/v0.2.0) +[![Version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=go&type=5&v=0.2.2)](https://github.com/nats-io/nats-streaming-operator/releases/tag/v0.2.2) Operator for managing NATS Streaming clusters running on [Kubernetes](http://kubernetes.io). @@ -20,8 +20,8 @@ To install the NATS Streaming Operator on your cluster: ```sh # Install NATS Operator on default namespace -$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/download/v0.4.2/00-prereqs.yaml -$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/download/v0.4.2/10-deployment.yaml +$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/download/v0.4.3/00-prereqs.yaml +$ kubectl apply -f https://github.com/nats-io/nats-operator/releases/download/v0.4.3/10-deployment.yaml # Install NATS Streaming Operator on default namespace $ kubectl apply -f https://raw.githubusercontent.com/nats-io/nats-streaming-operator/master/deploy/default-rbac.yaml @@ -233,7 +233,7 @@ of the storage directory so that it is on the mounted filesystem. The volumes to be mounted buy the NATS Streaming pod by definining them in the `template` with the spec for the Pod. -``` +```yaml --- apiVersion: "streaming.nats.io/v1alpha1" kind: "NatsStreamingCluster" From 0029ebf5e260f9f13fcff35be98791d342e505e2 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Fri, 22 Mar 2019 12:23:52 -0700 Subject: [PATCH 3/4] Updates to Dockerfile Signed-off-by: Waldemar Quevedo --- docker/operator/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/operator/Dockerfile b/docker/operator/Dockerfile index 0fc4949..6ce4ebf 100644 --- a/docker/operator/Dockerfile +++ b/docker/operator/Dockerfile @@ -1,8 +1,8 @@ -FROM golang:1.11.0-alpine3.8 AS builder +FROM golang:1.12.1-alpine AS builder WORKDIR $GOPATH/src/github.com/nats-io/nats-streaming-operator/ COPY . . RUN apk add --update git -RUN CGO_ENABLED=0 go build -installsuffix cgo -o /nats-streaming-operator ./cmd/nats-streaming-operator/main.go +RUN CGO_ENABLED=0 GO111MODULE=on go build -installsuffix cgo -o /nats-streaming-operator ./cmd/nats-streaming-operator/main.go FROM alpine:3.8 COPY --from=builder /nats-streaming-operator /usr/local/bin/nats-streaming-operator From 8c511fdd6c38c774eea1ff3848da4fecb18a112d Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Fri, 22 Mar 2019 12:24:15 -0700 Subject: [PATCH 4/4] Update operator image Signed-off-by: Waldemar Quevedo --- deploy/deployment-rbac.yaml | 2 +- deploy/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/deployment-rbac.yaml b/deploy/deployment-rbac.yaml index 61602e2..34290ca 100644 --- a/deploy/deployment-rbac.yaml +++ b/deploy/deployment-rbac.yaml @@ -43,7 +43,7 @@ spec: serviceAccountName: nats-streaming-operator containers: - name: nats-streaming-operator - image: synadia/nats-streaming-operator:v0.2.0-v1alpha1 + image: synadia/nats-streaming-operator:v0.2.2-v1alpha1 imagePullPolicy: Always env: - name: MY_POD_NAMESPACE diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 89abfbf..060f038 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -31,7 +31,7 @@ spec: serviceAccountName: nats-streaming-operator containers: - name: nats-streaming-operator - image: synadia/nats-streaming-operator:v0.2.0-v1alpha1 + image: synadia/nats-streaming-operator:v0.2.2-v1alpha1 imagePullPolicy: Always env: - name: MY_POD_NAMESPACE