Skip to content

Commit 023b315

Browse files
authored
Release v2.2.13 (#1255)
1 parent 2cf7f16 commit 023b315

File tree

10 files changed

+47
-10
lines changed

10 files changed

+47
-10
lines changed

.github/workflows/reusable-agent-build-linux-packages-new.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@ jobs:
7373
image: tonistiigi/binfmt:qemu-v6.2.0
7474
platforms: all
7575

76+
- name: Set up Docker Context for Buildx
77+
id: buildx-context
78+
run: |
79+
docker context create builders || echo Already exists
80+
7681
- name: Set up Docker Buildx
7782
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
7883
with:
7984
driver-opts: network=host
85+
endpoint: builders
8086

8187
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
8288
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1
@@ -100,7 +106,7 @@ jobs:
100106
101107
build_packages:
102108
name: Build package ${{ matrix.variant.builder_name }}-${{ matrix.variant.package_type }}
103-
runs-on: ubuntu-22.04
109+
runs-on: ${{ vars.RUNNER }}
104110
needs:
105111
- build_dependencies
106112
strategy:
@@ -128,10 +134,16 @@ jobs:
128134
image: tonistiigi/binfmt:qemu-v6.2.0
129135
platforms: all
130136

137+
- name: Set up Docker Context for Buildx
138+
id: buildx-context
139+
run: |
140+
docker context create builders || echo Already exists
141+
131142
- name: Set up Docker Buildx
132143
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
133144
with:
134145
driver-opts: network=host
146+
endpoint: builders
135147

136148
- name: Expose GitHub Runtime To Be Able to Use GHA Cache By Docker.
137149
uses: crazy-max/ghaction-github-runtime@715c25b40ccc0df9b62bfa8be3ccc57d09dbc4b1

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Scalyr Agent 2 Changes By Release
22
=================================
33

4+
## 2.2.13 "Killian" - Mar 30, 2024
5+
<!---
6+
Packaged by Ales Novak <[email protected]> on Mar 30, 2024 00:00 -0800
7+
--->
8+
9+
Feature:
10+
* Kubernetes Monitor - when K8s Pod API returnes 404, the logs are ingested based on SCALYR_K8S_INCLUDE_ALL_CONTAINERS regardless of pods annotations. Short-lived pods are usually affected.
11+
412

513
## 2.2.12 "Gizmo" - Feb 29, 2024
614
<!---

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.12
1+
2.2.13

agent_build_refactored/container_images/base_images/alpine.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ RUN apk update && apk add --no-cache \
1818
git \
1919
bash \
2020
rust \
21-
cargo
21+
cargo \
22+
py3-orjson
23+
24+
RUN mkdir -p /tmp/requrements_root/usr/lib/python3.11/site-packages
25+
RUN cp -r ./usr/lib/python3.11/site-packages/orjson /tmp/requrements_root/usr/lib/python3.11/site-packages
2226

2327
FROM base as runtime_base
2428
RUN apk update && apk add --no-cache python3 py3-pip

agent_build_refactored/container_images/dependencies.Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ RUN python3 -m pip install --upgrade setuptools pip --root /tmp/requrements_root
33
RUN cp -a /tmp/requrements_root/. /
44
ARG AGENT_REQUIREMENTS
55
RUN echo "${AGENT_REQUIREMENTS}" > /tmp/requirements.txt
6-
RUN echo Installing Agent requirements for platfor_system:
7-
RUN python3 -c "import platform; print(platform.system())"
86
RUN python3 -m pip install -r /tmp/requirements.txt --root /tmp/requrements_root
97
ARG TEST_REQUIREMENTS
108
RUN echo "${TEST_REQUIREMENTS}" > /tmp/test_requirments.txt

agent_build_refactored/container_images/image_builders.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class ContainerisedAgentBuilder(Builder):
7070

7171
BASE_DISTRO: str
7272
TAG_SUFFIXES: List[str]
73+
AGENT_REQUIREMENTS_EXCLUDE = []
7374

7475
def __init__(self, base_image):
7576
super(ContainerisedAgentBuilder, self).__init__()
@@ -108,6 +109,15 @@ def _build_base_image_dockerfile(
108109
build_args=self.__build_args
109110
)
110111

112+
def __agent_requirements(self):
113+
return "\n".join([
114+
dependency
115+
for dependency in AGENT_REQUIREMENTS.split("\n")
116+
if not any(
117+
dependency.startswith(excluded) for excluded in self.__class__.AGENT_REQUIREMENTS_EXCLUDE
118+
)
119+
])
120+
111121
def build_requirement_libs(
112122
self,
113123
architecture: CpuArch,
@@ -154,7 +164,7 @@ def build_requirement_libs(
154164
context_path=_PARENT_DIR,
155165
architectures=[architecture],
156166
build_args={
157-
"AGENT_REQUIREMENTS": AGENT_REQUIREMENTS,
167+
"AGENT_REQUIREMENTS": self.__agent_requirements(),
158168
"TEST_REQUIREMENTS": test_requirements,
159169
},
160170
build_contexts={
@@ -493,6 +503,9 @@ def _arch_to_target_arch_and_variant(architecture: CpuArch):
493503
# Create all image builder classes and make them available from this global collection.
494504
CONTAINERISED_AGENT_BUILDERS: Dict[str, Type[ContainerisedAgentBuilder]] = {}
495505

506+
requirement_libs_exclude = {
507+
"alpine": ["orjson", "lz4", "zstandard"]
508+
}
496509

497510
for base_distro in ["ubuntu", "alpine"]:
498511
tag_suffixes = [f"-{base_distro}"]
@@ -505,6 +518,8 @@ class _ContainerisedAgentBuilder(ContainerisedAgentBuilder):
505518
NAME = name
506519
BASE_DISTRO = base_distro
507520
TAG_SUFFIXES = tag_suffixes[:]
521+
AGENT_REQUIREMENTS_EXCLUDE = requirement_libs_exclude.get(base_distro, [])
522+
508523

509524
CONTAINERISED_AGENT_BUILDERS[name] = _ContainerisedAgentBuilder
510525

k8s/default-namespace/scalyr-agent-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
envFrom:
5151
- configMapRef:
5252
name: scalyr-config
53-
image: scalyr/scalyr-k8s-agent:2.2.12
53+
image: scalyr/scalyr-k8s-agent:2.2.13
5454
imagePullPolicy: Always
5555
name: scalyr-agent
5656
securityContext:

k8s/no-kustomize/scalyr-agent-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
envFrom:
5151
- configMapRef:
5252
name: scalyr-config
53-
image: scalyr/scalyr-k8s-agent:2.2.12
53+
image: scalyr/scalyr-k8s-agent:2.2.13
5454
imagePullPolicy: Always
5555
name: scalyr-agent
5656
securityContext:

k8s/scalyr-agent-2-envfrom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
envFrom:
5050
- configMapRef:
5151
name: scalyr-config
52-
image: scalyr/scalyr-k8s-agent:2.2.12
52+
image: scalyr/scalyr-k8s-agent:2.2.13
5353
imagePullPolicy: Always
5454
name: scalyr-agent
5555
securityContext:

k8s/scalyr-agent-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
envFrom:
5050
- configMapRef:
5151
name: scalyr-config
52-
image: scalyr/scalyr-k8s-agent:2.2.12
52+
image: scalyr/scalyr-k8s-agent:2.2.13
5353
imagePullPolicy: Always
5454
name: scalyr-agent
5555
securityContext:

0 commit comments

Comments
 (0)