forked from gatekeeper/gatekeeper-operator
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dale Haiducek <[email protected]>
- Loading branch information
Showing
8 changed files
with
70 additions
and
6 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
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,37 @@ | ||
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 AS builder | ||
|
||
COPY . . | ||
RUN ./konflux-patch.sh | ||
|
||
FROM scratch | ||
|
||
# Copy files to locations specified by labels. | ||
COPY --from=builder /manifests /manifests/ | ||
COPY --from=builder /metadata /metadata/ | ||
|
||
# Core bundle annotations. | ||
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable | ||
LABEL operators.operatorframework.io.bundle.channels.v1="stable,3.17" | ||
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/ | ||
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1 | ||
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ | ||
LABEL operators.operatorframework.io.bundle.package.v1=gatekeeper-operator | ||
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.34.1 | ||
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1 | ||
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3 | ||
# Red Hat annotations. | ||
LABEL com.redhat.component=gatekeeper-operator-bundle-container | ||
LABEL com.redhat.delivery.backport=false | ||
LABEL com.redhat.delivery.operator.bundle=true | ||
LABEL com.redhat.openshift.versions=v4.12 | ||
# Bundle metadata | ||
LABEL name=gatekeeper/gatekeeper-operator-bundle | ||
LABEL description="The Gatekeeper Operator installs and configures Open Policy Agent Gatekeeper." | ||
LABEL io.k8s.description="The Gatekeeper Operator installs and configures Open Policy Agent Gatekeeper." | ||
LABEL summary="Red Hat Gatekeeper Operator" | ||
LABEL version=v3.17.0 | ||
LABEL release="" | ||
LABEL distribution-scope=public | ||
LABEL maintainer="[email protected]" | ||
LABEL url=https://github.com/stolostron/gatekeeper-operator | ||
LABEL vendor="Red Hat, Inc." |
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,17 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Install yq command | ||
VERSION="v4.44.3" | ||
ARCH=$(uname -m) | ||
if [[ "$ARCH" == "x86_64" ]]; then | ||
ARCH="amd64" | ||
elif [[ "$ARCH" == "aarch64" ]]; then | ||
ARCH="arm64" | ||
fi | ||
|
||
BINARY="yq_linux_$ARCH" | ||
|
||
curl -s "https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}" -o /usr/bin/yq | ||
chmod +x /usr/bin/yq |
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 @@ | ||
#! /bin/bash | ||
|
||
# Gatekeeper Operator image | ||
export IMG="quay.io/redhat-user-workloads/gatekeeper-tenant/gatekeeper-operator-3-17/gatekeeper-operator-3-17@sha256:9eeb73c02969ab9c08b867564958133b5f5febc86dfaf6809cd768adcd05ca22" | ||
# Gatekeeper image | ||
export GATEKEEPER_IMG="quay.io/redhat-user-workloads/gatekeeper-tenant/gatekeeper-operator-3-17/gatekeeper-3-17@sha256:ea331b53f5b1ccbc30841cbe81f6faee79101dbb50ecfb7e2ba7a2b944ecc212" | ||
|
||
make update-gatekeeper-image | ||
make bundle |
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