-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #920 from pyrra-dev/openshift-manifests
Generate OpenShift manifests
- Loading branch information
Showing
59 changed files
with
933 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM --platform="${BUILDPLATFORM:-linux/amd64}" docker.io/golang:1.21.1-alpine as go-builder | ||
|
||
# renovate: datasource=go depName=github.com/go-delve/delve | ||
ARG DLV_VERSION=v1.21.0 | ||
|
||
# hadolint ignore=DL3018 | ||
RUN apk update && apk add --no-cache build-base | ||
RUN go install "github.com/go-delve/delve/cmd/dlv@${DLV_VERSION}" | ||
|
||
FROM --platform="${BUILDPLATFORM:-linux/amd64}" docker.io/busybox:1.36.1 as builder | ||
|
||
ARG TARGETOS TARGETARCH TARGETVARIANT | ||
|
||
WORKDIR /app | ||
COPY dist dist | ||
|
||
# NOTICE: See goreleaser.yml for the build paths. | ||
RUN if [ "${TARGETARCH}" = 'amd64' ]; then \ | ||
cp "dist/pyrra_${TARGETOS}_${TARGETARCH}_${TARGETVARIANT:-v1}/pyrra" . ; \ | ||
elif [ "${TARGETARCH}" = 'arm' ]; then \ | ||
cp "dist/pyrra_${TARGETOS}_${TARGETARCH}_${TARGETVARIANT##v}/pyrra" . ; \ | ||
else \ | ||
cp "dist/pyrra_${TARGETOS}_${TARGETARCH}/pyrra" . ; \ | ||
fi | ||
RUN chmod +x pyrra | ||
|
||
FROM --platform="${TARGETPLATFORM:-linux/amd64}" docker.io/alpine:3.18.3 AS runner | ||
WORKDIR / | ||
COPY --chown=0:0 --from=builder /app/pyrra /usr/bin/pyrra | ||
COPY --chown=0:0 --from=go-builder /go/bin/dlv /usr/bin/dlv | ||
USER 65533 | ||
|
||
ENTRYPOINT ["/usr/bin/dlv", "--listen=:40000", "--headless=true", "--api-version=2", "--accept-multiclient", "exec", "--continue", "--", "/usr/bin/pyrra"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
examples/kubernetes/manifests-webhook/pyrra-apiServiceAccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-api | ||
namespace: monitoring |
19 changes: 19 additions & 0 deletions
19
examples/kubernetes/manifests-webhook/pyrra-apiServiceMonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-api | ||
namespace: monitoring | ||
spec: | ||
endpoints: | ||
- port: http | ||
namespaceSelector: | ||
matchNames: | ||
- monitoring | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/kubernetes/manifests-webhook/pyrra-kubernetesServiceMonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: kubernetes | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-kubernetes | ||
namespace: monitoring | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
namespaceSelector: | ||
matchNames: | ||
- monitoring | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: kubernetes | ||
app.kubernetes.io/name: pyrra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-api | ||
namespace: monitoring |
19 changes: 19 additions & 0 deletions
19
examples/kubernetes/manifests/pyrra-apiServiceMonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-api | ||
namespace: monitoring | ||
spec: | ||
endpoints: | ||
- port: http | ||
namespaceSelector: | ||
matchNames: | ||
- monitoring | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: api | ||
app.kubernetes.io/name: pyrra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
examples/kubernetes/manifests/pyrra-kubernetesServiceMonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: kubernetes | ||
app.kubernetes.io/name: pyrra | ||
app.kubernetes.io/version: 0.7.0-rc.1 | ||
name: pyrra-kubernetes | ||
namespace: monitoring | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
namespaceSelector: | ||
matchNames: | ||
- monitoring | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: kubernetes | ||
app.kubernetes.io/name: pyrra |
Oops, something went wrong.