1+ ---
2+ version : 2
3+ project_name : nri-kafka
14builds :
25 - id : nri-nix
36 main : ./src
@@ -17,6 +20,26 @@ builds:
1720 ignore :
1821 - goos : darwin
1922 goarch : 386
23+
24+ - id : nri-nix-fips
25+ main : ./src
26+ binary : nri-kafka
27+ ldflags :
28+ - -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}}
29+ env :
30+ - CGO_ENABLED=1
31+ - GOEXPERIMENT=boringcrypto
32+ - >-
33+ {{- if eq .Arch "arm64" -}}
34+ CC=aarch64-linux-gnu-gcc
35+ {{- end }}
36+ goos :
37+ - linux
38+ goarch :
39+ - amd64
40+ - arm64
41+ tags :
42+ - fips
2043
2144 - id : nri-win
2245 main : ./src
@@ -34,7 +57,8 @@ builds:
3457
3558nfpms :
3659 - id : linux
37- file_name_template : " {{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
60+ package_name : nri-kafka
61+ file_name_template : " {{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}"
3862 vendor : " New Relic, Inc."
3963 homepage : " https://www.newrelic.com/infrastructure"
4064 maintainer : " New Relic Infrastructure Team <infrastructure-eng@newrelic.com>"
4569 - nri-nix
4670
4771 dependencies :
48- - newrelic-infra
49- - nrjmx
72+ - newrelic-infra (>= 1.20.0)
73+ - nrjmx (>= 2.3.2)
5074
5175 bindir : " /var/db/newrelic-infra/newrelic-integrations/bin"
5276
@@ -64,17 +88,60 @@ nfpms:
6488 type : config
6589
6690 overrides :
67- deb :
68- dependencies :
69- - newrelic-infra (>= 1.20.0)
70- - nrjmx (>= 2.3.2)
7191 rpm :
72- file_name_template : " {{ .ProjectName }}-{{ .Version }}-1.{{ .Arch }}"
73- replacements :
74- amd64 : x86_64
75- dependencies :
76- - newrelic-infra >= 1.20.0
77- - nrjmx >= 2.3.2
92+ file_name_template : >-
93+ {{- .ProjectName }}-
94+ {{- .Version }}-1.
95+ {{- if eq .Arch "amd64" -}}x86_64
96+ {{- else -}}
97+ {{ .Arch }}
98+ {{- end }}
99+
100+ # Formats to be generated.
101+ formats :
102+ - deb
103+ - rpm
104+
105+ - id : linux-fips
106+ package_name : nri-kafka-fips
107+ file_name_template : " {{ .PackageName }}_{{ .Version }}-1_{{ .Arch }}"
108+ vendor : " New Relic, Inc."
109+ homepage : " https://www.newrelic.com/infrastructure"
110+ maintainer : " New Relic Infrastructure Team <infrastructure-eng@newrelic.com>"
111+ description : " New Relic Infrastructure kafka Integration extend the core New Relic\n Infrastructure agent's capabilities to allow you to collect metric and\n live state data from kafka components."
112+ license : " https://newrelic.com/terms (also see LICENSE installed with this package)"
113+
114+ builds :
115+ - nri-nix-fips
116+
117+ dependencies :
118+ - newrelic-infra-fips (>= 1.60.0)
119+ - nrjmx-fips (>= 2.10.2)
120+
121+ bindir : " /var/db/newrelic-infra/newrelic-integrations/bin"
122+
123+ contents :
124+ - src : " kafka-config.yml.sample"
125+ dst : " /etc/newrelic-infra/integrations.d/kafka-config.yml.sample"
126+ - src : " CHANGELOG.md"
127+ dst : " /usr/share/doc/nri-kafka/CHANGELOG.md"
128+ - src : " README.md"
129+ dst : " /usr/share/doc/nri-kafka/README.md"
130+ - src : " LICENSE"
131+ dst : " /usr/share/doc/nri-kafka/LICENSE"
132+ - src : " legacy/kafka-definition.yml"
133+ dst : " /var/db/newrelic-infra/newrelic-integrations/kafka-definition.yml"
134+ type : config
135+
136+ overrides :
137+ rpm :
138+ file_name_template : >-
139+ {{- .ProjectName }}-fips-
140+ {{- .Version }}-1.
141+ {{- if eq .Arch "amd64" -}}x86_64
142+ {{- else -}}
143+ {{ .Arch }}
144+ {{- end }}
78145
79146 # Formats to be generated.
80147 formats :
@@ -92,6 +159,17 @@ archives:
92159 dst : .
93160 strip_parent : true
94161 format : tar.gz
162+
163+ - id : nri-nix-fips
164+ builds :
165+ - nri-nix-fips
166+ name_template : " {{ .ProjectName }}-fips_{{ .Os }}_{{ .Version }}_{{ .Arch }}_dirty"
167+ files :
168+ - kafka-config.yml.sample
169+ - src : ' legacy/kafka-definition.yml'
170+ dst : .
171+ strip_parent : true
172+ format : tar.gz
95173
96174 - id : nri-win
97175 builds :
0 commit comments