-
Notifications
You must be signed in to change notification settings - Fork 85
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 #279 from alecmerdler/PROJQUAY-885
ClusterServiceVersion
- Loading branch information
Showing
9 changed files
with
616 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deploy |
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 |
---|---|---|
@@ -1,27 +1,20 @@ | ||
# Build the manager binary | ||
FROM golang:1.13 as builder | ||
|
||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
# Copy the go source | ||
COPY main.go main.go | ||
COPY api/ api/ | ||
COPY controllers/ controllers/ | ||
COPY pkg/ pkg/ | ||
|
||
# Build | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o manager main.go | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/manager . | ||
USER nonroot:nonroot | ||
FROM scratch | ||
WORKDIR /workspace | ||
COPY --from=builder /workspace/manager manager | ||
COPY kustomize/ kustomize/ | ||
|
||
ENTRYPOINT ["/manager"] | ||
ENTRYPOINT ["/workspace/manager"] |
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,12 @@ | ||
FROM quay.io/operator-framework/upstream-registry-builder as builder | ||
|
||
COPY manifests manifests | ||
RUN ./bin/initializer -o ./bundles.db | ||
|
||
FROM scratch | ||
COPY --from=builder /build/bundles.db /bundles.db | ||
COPY --from=builder /build/bin/registry-server /registry-server | ||
COPY --from=builder /bin/grpc_health_probe /bin/grpc_health_probe | ||
EXPOSE 50051 | ||
ENTRYPOINT ["/registry-server"] | ||
CMD ["--database", "bundles.db"] |
512 changes: 512 additions & 0 deletions
512
deploy/manifests/quay-operator/0.0.1/quay-operator.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
deploy/manifests/quay-operator/0.0.1/quayregistries.quay.redhat.com.crd.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,59 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.2.5 | ||
name: quayregistries.quay.redhat.com | ||
spec: | ||
group: quay.redhat.com | ||
names: | ||
kind: QuayRegistry | ||
listKind: QuayRegistryList | ||
plural: quayregistries | ||
singular: quayregistry | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
validation: | ||
openAPIV3Schema: | ||
description: QuayRegistry is the Schema for the quayregistries API. | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: QuayRegistrySpec defines the desired state of QuayRegistry. | ||
properties: | ||
configBundleSecret: | ||
description: ConfigBundleSecret is the name of the Kubernetes `Secret` | ||
in the same namespace which contains the base Quay config and extra | ||
certs. | ||
type: string | ||
managedComponents: | ||
description: ManagedComponents declare which supplemental services should | ||
be included in this Quay deployment. | ||
items: | ||
properties: | ||
kind: | ||
type: string | ||
type: object | ||
type: array | ||
type: object | ||
status: | ||
description: QuayRegistryStatus defines the observed state of QuayRegistry. | ||
type: object | ||
type: object | ||
version: v1 | ||
versions: | ||
- name: v1 | ||
served: true | ||
storage: true |
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,5 @@ | ||
channels: | ||
- currentCSV: quay-operator.v0.0.1 | ||
name: alpha | ||
defaultChannel: alpha | ||
packageName: quay-tng |
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,7 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: quay-operator | ||
spec: | ||
sourceType: grpc | ||
image: quay.io/projectquay/quay-operator-catalog@sha256:f64e1efa2e202b3727049f03537d1420fc03044aabfc8e49e9859ac4d27aa4a4 |
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,11 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: quay-tng | ||
spec: | ||
channel: alpha | ||
installPlanApproval: Automatic | ||
name: quay-tng | ||
source: quay-operator | ||
sourceNamespace: openshift-marketplace | ||
startingCSV: quay-operator.v0.0.1 |
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