Skip to content

Commit

Permalink
Release 0.27.1 (#2129)
Browse files Browse the repository at this point in the history
* update references and changelog for 0.27.1

* Use ubuntu base image (#2078)

* switch runtime images from debian to ubuntu

* remove armv6 container image (#2091)
  • Loading branch information
captncraig authored Sep 9, 2022
1 parent 87bb12c commit 9fd7d9b
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 51 deletions.
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ This document contains a historical list of changes between releases. Only
changes that impact end-user behavior are listed; changes to documentation or
internal API changes are not present.

Main (unreleased)
-----------------
v0.27.1 (2022-09-09)
-------------------------

> **NOTE**: ARMv6 Docker images are no longer being published.
>
> We have stopped publishing Docker images for ARMv6 platforms.
> This is due to the new Ubuntu base image we are using that does not support ARMv6.
> The new Ubuntu base image has less reported CVEs, and allows us to provide more
> secure Docker images. We will still continue to publish ARMv6 release binaries and
> deb/rpm packages.
### Other Changes

- Switch docker image base from debian to ubuntu. (@captncraig)

v0.27.0 (2022-09-01)
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ seego = docker run --init --rm $(DOCKER_OPTS) $(MOD_MOUNT) -v "$(CURDIR):$(CURDI
docker-build = docker build $(DOCKER_BUILD_FLAGS)
ifeq ($(CROSS_BUILD),true)
DOCKERFILE = Dockerfile.buildx
docker-build = docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/ppc64le $(DOCKER_BUILD_FLAGS)
docker-build = docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le $(DOCKER_BUILD_FLAGS)
endif

# we want to override the default seego behavior. Drone always builds locally inside seego and if build in container is false then use
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent-operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG IMAGE_TAG

RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agent-operator

FROM debian:bullseye-slim
FROM ubuntu:jammy

RUN apt-get update && \
apt-get install -qy tzdata ca-certificates && \
Expand Down
2 changes: 1 addition & 1 deletion cmd/agent-operator/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG IMAGE_TAG

RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true agent-operator

FROM debian:bullseye-slim
FROM ubuntu:jammy

RUN apt-get update && \
apt-get install -qy tzdata ca-certificates && \
Expand Down
8 changes: 2 additions & 6 deletions cmd/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ RUN apt-get update && apt-get install -qy libbpfcc-dev

RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agent

FROM debian:bullseye-slim
FROM ubuntu:jammy

# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
# plus the libbpfcc library for running the eBPF integration.
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \
apt-get install -qy tzdata ca-certificates && \
RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \
if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down
8 changes: 2 additions & 6 deletions cmd/agent/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ ARG IMAGE_TAG

RUN make clean && IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true make agent

FROM debian:bullseye-slim
FROM ubuntu:jammy

# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
# plus the libbpfcc library for running the eBPF integration.
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \
apt-get install -qy tzdata ca-certificates && \
RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \
if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand Down
7 changes: 2 additions & 5 deletions cmd/agentctl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ RUN apt-get update && apt-get install -qy libbpfcc-dev

RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agentctl

FROM debian:bullseye-slim
FROM ubuntu:jammy

# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
# plus the libbpfcc library for running the eBPF integration.
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \
RUN apt-get update && apt-get install -qy libsystemd-dev && \
apt-get install -qy tzdata ca-certificates && \
if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand Down
9 changes: 2 additions & 7 deletions cmd/agentctl/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@ ARG IMAGE_TAG
# Makefile.
RUN make clean && IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true make agentctl

FROM debian:bullseye-slim
FROM ubuntu:jammy

# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression
# plus the libbpfcc library for running the eBPF integration.
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \
apt-get install -qy tzdata ca-certificates && \
RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \
if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY --from=build /src/agent/cmd/agentctl/agentctl /bin/agentctl

ENTRYPOINT ["/bin/agentctl"]
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ docker run \
-v "/proc:/host/proc:ro,rslave" \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
grafana/agent:v0.27.0 \
grafana/agent:v0.27.1 \
--config.file=/etc/agent-config/agent.yaml
```

Expand Down Expand Up @@ -67,7 +67,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.27.0
- image: grafana/agent:v0.27.1
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ docker run \
-v "/proc:/proc:ro" \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
grafana/agent:v0.27.0 \
grafana/agent:v0.27.1 \
--config.file=/etc/agent-config/agent.yaml
```

Expand All @@ -37,7 +37,7 @@ metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.27.0
- image: grafana/agent:v0.27.1
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/operator/custom-resource-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ metadata:
labels:
app: grafana-agent
spec:
image: grafana/agent:v0.27.0
image: grafana/agent:v0.27.1
logLevel: info
serviceAccountName: grafana-agent
metrics:
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/operator/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
serviceAccountName: grafana-agent-operator
containers:
- name: operator
image: grafana/agent-operator:v0.27.0
image: grafana/agent-operator:v0.27.1
args:
- --kubelet-service=default/kubelet
---
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/set-up/install-agent-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Install Grafana Agent and get it up and running on Docker.
docker run \
-v /tmp/agent:/etc/agent/data \
-v /path/to/config.yaml:/etc/agent/agent.yaml \
grafana/agent:v0.27.0
grafana/agent:v0.27.1
```

2. Replace `/tmp/agent` with the folder you want to store WAL data in.
Expand Down
1 change: 1 addition & 0 deletions pkg/operator/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var (
"v0.26.0",
"v0.26.1",
"v0.27.0",
"v0.27.1",
// NOTE(rfratto): when performing an upgrade, add the newest version above instead of changing the existing reference.
}

Expand Down
2 changes: 1 addition & 1 deletion production/grafanacloud-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ PACKAGE_SYSTEM=${PACKAGE_SYSTEM:=}
#
# Global constants.
#
RELEASE_VERSION="0.27.0"
RELEASE_VERSION="0.27.1"

RELEASE_URL="https://github.com/grafana/agent/releases/download/v${RELEASE_VERSION}"
DEB_URL="${RELEASE_URL}/grafana-agent-${RELEASE_VERSION}-1.${ARCH}.deb"
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-bare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.27.0
image: grafana/agent:v0.27.1
imagePullPolicy: IfNotPresent
name: grafana-agent
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-loki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.27.0
image: grafana/agent:v0.27.1
imagePullPolicy: IfNotPresent
name: grafana-agent-logs
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/agent-traces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: grafana/agent:v0.27.0
image: grafana/agent:v0.27.1
imagePullPolicy: IfNotPresent
name: grafana-agent-traces
ports:
Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/build/lib/version.libsonnet
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'grafana/agent:v0.27.0'
'grafana/agent:v0.27.1'
4 changes: 2 additions & 2 deletions production/kubernetes/build/templates/operator/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ local ksm = import 'kube-state-metrics/kube-state-metrics.libsonnet';
local this = self,

_images:: {
agent: 'grafana/agent:v0.27.0',
agent_operator: 'grafana/agent-operator:v0.27.0',
agent: 'grafana/agent:v0.27.1',
agent_operator: 'grafana/agent-operator:v0.27.1',
ksm: 'registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.5.0'
},

Expand Down
2 changes: 1 addition & 1 deletion production/kubernetes/install-bare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ check_installed() {
check_installed curl
check_installed envsubst

MANIFEST_BRANCH=v0.27.0
MANIFEST_BRANCH=v0.27.1
MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-bare.yaml}
NAMESPACE=${NAMESPACE:-default}

Expand Down
4 changes: 2 additions & 2 deletions production/operator/templates/agent-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ spec:
containers:
- args:
- --kubelet-service=default/kubelet
image: grafana/agent-operator:v0.27.0
image: grafana/agent-operator:v0.27.1
imagePullPolicy: IfNotPresent
name: grafana-agent-operator
serviceAccount: grafana-agent-operator
Expand Down Expand Up @@ -436,7 +436,7 @@ metadata:
name: grafana-agent
namespace: ${NAMESPACE}
spec:
image: grafana/agent:v0.27.0
image: grafana/agent:v0.27.1
integrations:
selector:
matchLabels:
Expand Down
4 changes: 2 additions & 2 deletions production/tanka/grafana-agent/v1/main.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ local service = k.core.v1.service;
(import './lib/traces.libsonnet') +
{
_images:: {
agent: 'grafana/agent:v0.27.0',
agentctl: 'grafana/agentctl:v0.27.0',
agent: 'grafana/agent:v0.27.1',
agentctl: 'grafana/agentctl:v0.27.1',
},

// new creates a new DaemonSet deployment of the grafana-agent. By default,
Expand Down
4 changes: 2 additions & 2 deletions production/tanka/grafana-agent/v2/internal/base.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function(name='grafana-agent', namespace='') {
local this = self,

_images:: {
agent: 'grafana/agent:v0.27.0',
agentctl: 'grafana/agentctl:v0.27.0',
agent: 'grafana/agent:v0.27.1',
agentctl: 'grafana/agentctl:v0.27.1',
},
_config:: {
name: name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function(
) {
local _config = {
api: error 'api must be set',
image: 'grafana/agentctl:v0.27.0',
image: 'grafana/agentctl:v0.27.1',
schedule: '*/5 * * * *',
configs: [],
} + config,
Expand Down

0 comments on commit 9fd7d9b

Please sign in to comment.