mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
Support AMR64 (#45)
This commit is contained in:
parent
548df2669f
commit
d187c55e9e
10 changed files with 41 additions and 22 deletions
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
# 1.8.1
|
||||
* Customize label and annotation for Grafana dashboards [#43](https://github.com/fjogeleit/policy-reporter/pull/43) by [nlamirault](https://github.com/nlamirault)
|
||||
* ARM64 Support for all Components
|
||||
|
||||
# 1.7.3
|
||||
* Update Policy Reporter - Kyverno Plugin to 0.2.0
|
||||
* New APIs for Liveness and Readiness Probes
|
||||
|
|
16
Dockerfile
16
Dockerfile
|
@ -1,22 +1,26 @@
|
|||
FROM golang:1.16-buster as builder
|
||||
|
||||
ARG LD_FLAGS
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN export GOOS=$(echo ${TARGETPLATFORM} | cut -d / -f1) && \
|
||||
export GOARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2)
|
||||
|
||||
RUN go env
|
||||
|
||||
RUN go get -d -v \
|
||||
&& go install -v
|
||||
|
||||
RUN make build
|
||||
RUN CGO_ENABLED=0 go build -ldflags="${LD_FLAGS}" -o /app/build/policyreporter -v
|
||||
|
||||
FROM alpine:latest
|
||||
FROM scratch
|
||||
LABEL MAINTAINER "Frank Jogeleit <frank.jogeleit@gweb.de>"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --update --no-cache ca-certificates
|
||||
|
||||
RUN addgroup -S policyreporter && adduser -u 1234 -S policyreporter -G policyreporter
|
||||
|
||||
USER 1234
|
||||
|
||||
COPY --from=builder /app/LICENSE.md .
|
||||
|
|
13
Makefile
13
Makefile
|
@ -1,6 +1,8 @@
|
|||
GO ?= go
|
||||
|
||||
BUILD ?= build
|
||||
REPO ?= fjogeleit/policy-reporter
|
||||
IMAGE_TAG ?= 1.8.0
|
||||
LD_FLAGS="-s -w"
|
||||
|
||||
all: build
|
||||
|
||||
|
@ -23,3 +25,12 @@ coverage:
|
|||
.PHONY: build
|
||||
build: prepare
|
||||
CGO_ENABLED=0 $(GO) build -v -ldflags="-s -w" $(GOFLAGS) -o $(BUILD)/policyreporter .
|
||||
|
||||
.PHONY: docker-build
|
||||
docker-build:
|
||||
@docker buildx build --progress plane --platform linux/arm64,linux/amd64 --tag $(REPO):$(IMAGE_TAG) . --build-arg LD_FLAGS=$(LD_FLAGS)
|
||||
|
||||
.PHONY: docker-push
|
||||
docker-push:
|
||||
@docker buildx build --progress plane --platform linux/arm64,linux/amd64 --tag $(REPO):$(IMAGE_TAG) . --build-arg LD_FLAGS=$(LD_FLAGS) --push
|
||||
@docker buildx build --progress plane --platform linux/arm64,linux/amd64 --tag $(REPO):latest . --build-arg LD_FLAGS=$(LD_FLAGS) --push
|
||||
|
|
|
@ -4,9 +4,9 @@ dependencies:
|
|||
version: 1.4.0
|
||||
- name: ui
|
||||
repository: ""
|
||||
version: 1.7.0
|
||||
version: 1.8.0
|
||||
- name: kyvernoPlugin
|
||||
repository: ""
|
||||
version: 0.4.0
|
||||
digest: sha256:a9d7eea930c844c76395d400e2f224f538e3f5e93a011926e31915f239509915
|
||||
generated: "2021-06-26T22:23:24.195707238+02:00"
|
||||
version: 0.5.0
|
||||
digest: sha256:660df7373e8a47a3ac2fce8260e907a0c6575078c3e26714e11472dc219206df
|
||||
generated: "2021-06-27T11:57:21.864963+02:00"
|
||||
|
|
|
@ -5,8 +5,8 @@ description: |
|
|||
It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord
|
||||
|
||||
type: application
|
||||
version: 1.8.0
|
||||
appVersion: 1.7.3
|
||||
version: 1.8.1
|
||||
appVersion: 1.8.0
|
||||
|
||||
dependencies:
|
||||
- name: monitoring
|
||||
|
@ -16,8 +16,8 @@ dependencies:
|
|||
- name: ui
|
||||
condition: ui.enabled
|
||||
repository: ""
|
||||
version: "1.7.0"
|
||||
version: "1.8.0"
|
||||
- name: kyvernoPlugin
|
||||
condition: kyvernoPlugin.enabled
|
||||
repository: ""
|
||||
version: "0.4.0"
|
||||
version: "0.5.0"
|
||||
|
|
|
@ -3,5 +3,5 @@ name: kyvernoPlugin
|
|||
description: Policy Reporter Kyverno Plugin
|
||||
|
||||
type: application
|
||||
version: 0.4.0
|
||||
appVersion: 0.2.0
|
||||
version: 0.5.0
|
||||
appVersion: 0.3.0
|
|
@ -1,7 +1,7 @@
|
|||
image:
|
||||
repository: fjogeleit/policy-reporter-kyverno-plugin
|
||||
pullPolicy: IfNotPresent
|
||||
tag: 0.2.0
|
||||
tag: 0.3.0
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
|
|
|
@ -3,5 +3,5 @@ name: ui
|
|||
description: Policy Reporter UI
|
||||
|
||||
type: application
|
||||
version: 1.7.0
|
||||
appVersion: 0.10.2
|
||||
version: 1.8.0
|
||||
appVersion: 0.11.0
|
||||
|
|
|
@ -10,7 +10,7 @@ plugins:
|
|||
image:
|
||||
repository: fjogeleit/policy-reporter-ui
|
||||
pullPolicy: IfNotPresent
|
||||
tag: 0.10.2
|
||||
tag: 0.11.0
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
image:
|
||||
repository: fjogeleit/policy-reporter
|
||||
pullPolicy: IfNotPresent
|
||||
tag: 1.7.0
|
||||
tag: 1.8.0
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
|
|
Loading…
Reference in a new issue