-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruby3.2-fluentd-kubernetes-daemonset-1.18.yaml
113 lines (102 loc) · 3.18 KB
/
ruby3.2-fluentd-kubernetes-daemonset-1.18.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package:
# fluentd supported versions: https://github.com/fluent/fluentd/blob/master/SECURITY.md
# The kubernetes daemonset trails fluentd releases by a bit
name: ruby3.2-fluentd-kubernetes-daemonset-1.18
version: 1.18.0.1.0
epoch: 100
description: Fluentd ${{vars.fluentdMM}} daemonset for Kubernetes
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- autoconf
- automake
- bash
- build-base
- busybox
- ca-certificates-bundle
- libtool
- m4
- ruby${{vars.rubyMM}}-bundler
- ruby-${{vars.rubyMM}}-dev
- snappy-dev
var-transforms:
- from: ${{package.name}}
match: .*-(\d+\.\d+)
replace: $1
to: fluentdMM
- from: ${{package.name}}
match: ^ruby(\d\.\d+)-.*
replace: $1
to: rubyMM
- from: ${{package.version}}
match: ^(\d+\.\d+\.\d+)\.(\d+\.\d+)
replace: $1-$2
to: mangled-package-version
data:
- name: plugins
items:
kinesis:
pipeline:
- uses: git-checkout
with:
expected-commit: f357c8975b6888c5bdd91d6bc764a7e48bdf686f
repository: https://github.com/fluent/fluentd-kubernetes-daemonset.git
tag: v${{vars.mangled-package-version}}
subpackages:
- range: plugins
name: ${{package.name}}-${{range.key}}
description: Fluentd kubernetes daemonset for ${{range.key}}
options:
no-depends: true
no-provides: true
dependencies:
runtime:
- ca-certificates
- ruby-${{vars.rubyMM}}
- tini
- libsystemd
- libsystemd-shared
- libudev
- libcurl-openssl4
- libffi
- systemd
pipeline:
- working-directory: ./docker-image/v${{vars.fluentdMM}}/debian-${{range.key}}
runs: |
# Install bundle
mkdir -p ${{targets.contextdir}}/fluentd/vendor/bundle
bundle config silence_root_warning true
bundle config set path ${{targets.contextdir}}/fluentd/vendor/bundle
bundle config set clean 'true'
bundle config set deployment 'true'
# --retry doesn't seem to help with network issues, completely rerun the command
if ! bundle install --gemfile ./Gemfile --jobs $(nproc); then
bundle install --gemfile ./Gemfile --jobs $(nproc)
fi
bundle config unset path
# Copy gemfile
mkdir -p ${{targets.contextdir}}/fluentd
cp ./Gemfile ${{targets.contextdir}}/fluentd/Gemfile
# Copy configuration
mkdir -p ${{targets.contextdir}}/fluentd/etc
cp -r ./conf/* ${{targets.contextdir}}/fluentd/etc
touch ${{targets.contextdir}}/fluentd/etc/disable.conf
# Create log directory
mkdir -p ${{targets.contextdir}}/fluentd/log
# Copy plugins
mkdir -p ${{targets.contextdir}}/fluentd/plugins
cp -r ./plugins/* ${{targets.contextdir}}/fluentd/plugins
# Copy entrypoint
cp entrypoint.sh ${{targets.contextdir}}/fluentd/entrypoint.sh
update:
enabled: true
version-transform:
- match: '_'
replace: '.'
github:
identifier: fluent/fluentd-kubernetes-daemonset
strip-prefix: v
tag-filter: v1.18.
use-tag: true