Skip to content

Commit

Permalink
operator [N] wandb-operator (1.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
velotioaastha authored Oct 16, 2024
1 parent 3945010 commit 44fbd2d
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 11 deletions.
23 changes: 23 additions & 0 deletions operators/wandb-operator/1.0.0/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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=wandb-operator
LABEL operators.operatorframework.io.bundle.channels.v1=stable
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.37.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

# 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 ./manifests /manifests/
COPY ./metadata /metadata/
COPY ./tests/scorecard /tests/scorecard/

LABEL com.redhat.openshift.versions=v4.12
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/managed-by: olm
app.kubernetes.io/name: wandb-operator
app.kubernetes.io/part-of: wandb-operator
name: wandb-operator-manager-role
rules:
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/managed-by: olm
app.kubernetes.io/name: wandb-operator
app.kubernetes.io/part-of: wandb-operator
name: wandb-operator-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: wandb-operator-manager-role
subjects:
- kind: ServiceAccount
name: operator-controller-manager
namespace: wandb-system
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
features.operators.openshift.io/disconnected: "true"
features.operators.openshift.io/fips-compliant: "false"
features.operators.openshift.io/proxy-aware: "false"
features.operators.openshift.io/tls-profiles: "false"
features.operators.openshift.io/token-auth-aws: "false"
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
alm-examples: |-
[
{
Expand All @@ -11,7 +18,7 @@ metadata:
"labels": {
"app.kubernetes.io/created-by": "wandb-operator",
"app.kubernetes.io/instance": "weightsandbiases-sample",
"app.kubernetes.io/managed-by": "kustomize",
"app.kubernetes.io/managed-by": "olm",
"app.kubernetes.io/name": "weightsandbiases",
"app.kubernetes.io/part-of": "wandb-operator"
},
Expand All @@ -23,8 +30,11 @@ metadata:
capabilities: Basic Install
categories: "AI/Machine Learning,Developer Tools"
certified: "false"
createdAt: "2024-10-10T14:46:54Z"
support: WeightsAndBiases
repository: https://github.com/wandb/operator
containerImage: docker.io/wandb/controller:latest
containerImage: quay.io/wandb_tools/wandb-k8s-operator:1.0.0
operatorframework.io/suggested-namespace: wandb-system
description: "Operator for Weights and Biases, enabling seamless integration and management of machine learning experiments in Kubernetes environments."
name: wandb-operator.v1.0.0
namespace: placeholder
Expand Down Expand Up @@ -52,6 +62,14 @@ spec:
spec:
clusterPermissions:
- rules:
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
resourceNames:
- privileged
verbs:
- use
- apiGroups:
- ""
resources:
Expand All @@ -66,20 +84,33 @@ spec:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- namespaces
- namespaces/status
- nodes
- nodes/metrics
- nodes/spec
- nodes/stats
- nodes/proxy
- pods
- pods/log
- pods/status
- serviceaccounts
- services
- endpoints
- ingresses
- resourcequotas
- replicationcontrollers
- replicationcontrollers/status
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
Expand All @@ -95,6 +126,7 @@ spec:
- list
- update
- watch
- patch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -131,7 +163,7 @@ spec:
- patch
- update
- apiGroups:
- autoscaling/v2
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
Expand All @@ -141,6 +173,38 @@ spec:
- list
- update
- watch
- apiGroups:
- batch
resources:
- cronjobs
- jobs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- events.k8s.io
resources:
- events
verbs:
- watch
- list
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- ingresses
- replicasets
- ingresses/status
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
Expand All @@ -151,8 +215,17 @@ spec:
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingresses/status
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand All @@ -165,15 +238,19 @@ spec:
- list
- update
- watch
- nonResourceURLs:
- /metrics
verbs:
- get
serviceAccountName: operator-controller-manager
deployments:
- label:
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: operator
app.kubernetes.io/created-by: wandb-operator
app.kubernetes.io/instance: controller-manager
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: deployment
app.kubernetes.io/part-of: operator
app.kubernetes.io/managed-by: olm
app.kubernetes.io/name: wandb-operator
app.kubernetes.io/part-of: wandb-operator
control-plane: controller-manager
name: operator-controller-manager
spec:
Expand All @@ -199,7 +276,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName
image: docker.io/wandb/controller:latest
image: quay.io/wandb_tools/wandb-k8s-operator:1.0.0
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -287,8 +364,8 @@ spec:
maintainers:
- email: [email protected]
name: Abhinav Garg
maturity: alpha
minKubeVersion: 1.23.0
maturity: stable
minKubeVersion: 1.25.0
provider:
name: Weights & Biases
url: https://wandb.ai
Expand Down
4 changes: 3 additions & 1 deletion operators/wandb-operator/1.0.0/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
annotations:
com.redhat.openshift.versions: v4.12
# Core bundle annotations.
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: wandb-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.bundle.channels.v1: stable
operators.operatorframework.io.bundle.channel.default.v1: stable
operators.operatorframework.io.metrics.builder: operator-sdk-v1.37.0
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
Expand Down

0 comments on commit 44fbd2d

Please sign in to comment.