Skip to content

Commit ec2162c

Browse files
authored
Merge pull request #442 from wenchajun/wenchajun/release-1.6.1
release 1.6.1
2 parents 9fe4f3f + eb9809b commit ec2162c

File tree

14 files changed

+40
-19
lines changed

14 files changed

+40
-19
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.6.1 / 2022-10-31
2+
### BUGFIX
3+
- Fix: add missing config attributes for splunk output (#437)
4+
- Fix(go): Update go version from 1.19.1 to 1.19.2 to resolve vulnerabilities. (#438)
5+
- Revert "build: Enhance binary" (#439)
6+
17
## 1.6.0 / 2022-10-25
28
### Features
39
- Add Fluent Bit Splunk output plugin (#417)

RELEASE.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This page describes the release process and the currently planned schedule for u
2929
| v1.5.0 | 2022-09-24 | Elon Cheng (GitHub: @wenchajun) |
3030
| v1.5.1 | 2022-09-30 | Elon Cheng (GitHub: @wenchajun) |
3131
| v1.6.0 | 2022-10-25 | Elon Cheng (GitHub: @wenchajun) |
32+
| v1.6.1 | 2022-10-31 | Elon Cheng (GitHub: @wenchajun) |
3233

3334
# How to cut a new release
3435

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.6.0
1+
v1.6.1

apis/fluentbit/v1alpha2/plugins/output/splunk_types.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,21 @@ func (o *Splunk) Params(sl plugins.SecretLoader) (*params.KVs, error) {
120120
if o.EventSource != "" {
121121
kvs.Insert("event_source", o.EventSource)
122122
}
123-
123+
if o.EventSourcetype != "" {
124+
kvs.Insert("event_sourcetype", o.EventSourcetype)
125+
}
126+
if o.EventSourcetypeKey != "" {
127+
kvs.Insert("event_sourcetype_key", o.EventSourcetypeKey)
128+
}
129+
if o.EventIndex != "" {
130+
kvs.Insert("event_index", o.EventIndex)
131+
}
132+
if o.EventIndexKey != "" {
133+
kvs.Insert("event_index_key", o.EventIndexKey)
134+
}
135+
if o.EventField != "" {
136+
kvs.Insert("event_field", o.EventField)
137+
}
124138
if o.Workers != nil {
125139
kvs.Insert("workers", fmt.Sprint(*o.Workers))
126140
}

charts/fluent-operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ description: A Helm chart for Kubernetes
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.6.0
18+
version: 1.6.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 1.6.0
23+
appVersion: 1.6.1

charts/fluent-operator/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ operator:
1212
tag: "20.10"
1313
container:
1414
repository: "kubesphere/fluent-operator"
15-
tag: "v1.6.0"
15+
tag: "v1.6.1"
1616
# FluentBit operator resources. Usually user needn't to adjust these.
1717
resources:
1818
limits:

cmd/fluent-manager/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19.1-alpine3.16 as builder
2+
FROM golang:1.19.2-alpine3.16 as builder
33

44
WORKDIR /workspace
55
# Copy the Go Modules manifests
@@ -16,7 +16,7 @@ COPY controllers controllers/
1616
COPY pkg pkg/
1717

1818
# Build
19-
RUN CGO_ENABLED=0 GO111MODULE=on go build -trimpath -a -o manager main.go
19+
RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o manager main.go
2020

2121
# Use distroless as minimal base image to package the manager binary
2222
# Refer to https://github.com/GoogleContainerTools/distroless for more details

cmd/fluent-watcher/fluentbit/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM golang:1.19.1-alpine3.16 as buildergo
1+
FROM golang:1.19.2-alpine3.16 as buildergo
22
RUN mkdir -p /fluent-bit
33
RUN mkdir -p /code
44
COPY . /code/
55
WORKDIR /code
66
RUN echo $(ls -al /code)
7-
RUN CGO_ENABLED=0 go build -buildmode=pie -trimpath -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go
7+
RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go
88

99
FROM fluent/fluent-bit:1.9.9
1010
LABEL Description="Fluent Bit docker image" Vendor="Fluent" Version="1.0"

cmd/fluent-watcher/fluentd/Dockerfile.amd64

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Fluentd watcher agent
2-
FROM golang:1.19.1-alpine3.16 as buildergo
2+
FROM golang:1.19.2-alpine3.16 as buildergo
33
RUN mkdir -p /fluentd
44
RUN mkdir -p /code
55
COPY . /code/
66
WORKDIR /code
77
RUN echo $(ls -al /code)
8-
RUN CGO_ENABLED=0 go build -buildmode=pie -trimpath -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
8+
RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
99

1010
# Fluentd main image
1111
FROM alpine:3.13

cmd/fluent-watcher/fluentd/Dockerfile.arm64

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Fluentd watcher agent
2-
FROM golang:1.19.1-alpine3.16 as buildergo
2+
FROM golang:1.19.2-alpine3.16 as buildergo
33
RUN mkdir -p /fluentd
44
RUN mkdir -p /code
55
COPY . /code/
66
WORKDIR /code
77
RUN echo $(ls -al /code)
8-
RUN CGO_ENABLED=0 go build -buildmode=pie -trimpath -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
8+
RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
99

1010
# To set multiarch build for Docker hub automated build.
1111
FROM golang:alpine AS builderqemu

cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Fluentd watcher agent
2-
FROM golang:1.19.1-alpine3.16 as buildergo
2+
FROM golang:1.19.2-alpine3.16 as buildergo
33
RUN mkdir -p /fluentd
44
RUN mkdir -p /code
55
COPY . /code/
66
WORKDIR /code
77
RUN echo $(ls -al /code)
8-
RUN CGO_ENABLED=0 go build -buildmode=pie -trimpath -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
8+
RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go
99

1010
# Fluentd main image
1111
FROM kubesphere/fluentd:v1.14.6-arm64-base

docs/best-practice/forwarding-logs-via-http/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Build the manager binary
2-
FROM golang:1.19.1 as builder
2+
FROM golang:1.19.2 as builder
33

44
WORKDIR /
55
COPY main.go /go/src/main.go
6-
RUN CGO_ENABLED=0 go build -buildmode=pie -trimpath /go/src/main.go
6+
RUN CGO_ENABLED=0 go build /go/src/main.go
77

88
# Use distroless as minimal base image to package the manager binary
99
# Refer to https://github.com/GoogleContainerTools/distroless for more details

manifests/setup/fluent-operator-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
mountPath: /var/run/docker.sock
4040
containers:
4141
- name: fluent-operator
42-
image: kubesphere/fluent-operator:v1.6.0
42+
image: kubesphere/fluent-operator:v1.6.1
4343
env:
4444
- name: NAMESPACE
4545
valueFrom:

manifests/setup/setup.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13873,7 +13873,7 @@ spec:
1387313873
fieldRef:
1387413874
apiVersion: v1
1387513875
fieldPath: metadata.namespace
13876-
image: kubesphere/fluent-operator:v1.6.0
13876+
image: kubesphere/fluent-operator:v1.6.1
1387713877
name: fluent-operator
1387813878
resources:
1387913879
limits:

0 commit comments

Comments
 (0)