Skip to content

Commit

Permalink
Restructured project for improved maintainability and organization
Browse files Browse the repository at this point in the history
  • Loading branch information
velotioaastha committed Oct 17, 2024
1 parent 23ade7d commit bb4e1c7
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 0 deletions.
26 changes: 26 additions & 0 deletions olm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Makefile for building and pushing the WandB Operator image

# Define variables
IMAGE ?= wandb-operator # Name of the Docker image
QUAY_DOCKER_REGISTRY ?= quay.io # Docker registry URL
QUAY_PROJECT ?= wandb_tools # Project name in the registry
VERSION ?= latest # Default version for the image
BRANCH ?= main # Default branch for tagging

# Targets

# Build the Docker image
build-image:
docker build -t $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION) \
-f olm-catalog/bundle.Dockerfile olm-catalog/

docker tag $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION) \
$(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(BRANCH)

# Build and push the Docker image to the registry
build-push:
docker push $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(VERSION)
docker push $(QUAY_DOCKER_REGISTRY)/$(QUAY_PROJECT)/$(IMAGE):$(BRANCH)

# Specify that these targets do not represent files
.PHONY: build-image build-push
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions olm/olm-sample-configs/catalogSource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: wandb-operator-catalog
labels:
app.kubernetes.io/part-of: wandb-operator
spec:
sourceType: grpc
image: quay.io/wandb_tools/wandb-operator-index:<release_tag>
updateStrategy:
registryPoll:
interval: 5m

0 comments on commit bb4e1c7

Please sign in to comment.