Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions deploy/operator/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=jumpstarter-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.41.1
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
COPY bundle/tests/scorecard /tests/scorecard/
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: jumpstarter-operator
control-plane: controller-manager
name: jumpstarter-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: 8443
selector:
app.kubernetes.io/name: jumpstarter-operator
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: jumpstarter-operator
name: jumpstarter-operator-jumpstarter-admin-role
rules:
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters
verbs:
- '*'
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: jumpstarter-operator
name: jumpstarter-operator-jumpstarter-editor-role
rules:
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: jumpstarter-operator
name: jumpstarter-operator-jumpstarter-viewer-role
rules:
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters
verbs:
- get
- list
- watch
- apiGroups:
- operator.jumpstarter.dev
resources:
- jumpstarters/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing labels, I think it will be better to include them for easier cleanup/consistency with other roles.

creationTimestamp: null
name: jumpstarter-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading