Skip to content

Commit e54d2bb

Browse files
authored
Initial Release Cut Updates (#15)
1 parent 39ca7df commit e54d2bb

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
2929
#
3030
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
3131
# my.domain/instascale-1-bundle:$VERSION and my.domain/instascale-1-catalog:$VERSION.
32-
IMAGE_TAG_BASE ?= my.domain/instascale-1
32+
IMAGE_TAG_BASE ?= quay.io/project-codeflare/instascale
3333

3434
# BUNDLE_IMG defines the image:tag used for the bundle.
3535
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
@@ -116,8 +116,12 @@ build: generate fmt vet ## Build manager binary.
116116
run: manifests generate fmt vet ## Run a controller from your host.
117117
go run ./main.go
118118

119+
.PHONY: api-dir
120+
api-dir: ## Create empty API dir if none exists
121+
mkdir api > /dev/null 2>&1 || true
122+
119123
.PHONY: docker-build
120-
docker-build: test ## Build docker image with the manager.
124+
docker-build: test api-dir ## Build docker image with the manager.
121125
docker build -t ${IMG} .
122126

123127
.PHONY: docker-push

PROJECT

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
domain: my.domain
1+
domain: quay.io/project-codeflare
22
layout:
33
- go.kubebuilder.io/v3
44
plugins:
55
manifests.sdk.operatorframework.io/v2: {}
66
scorecard.sdk.operatorframework.io/v2: {}
7-
projectName: instascale-1
7+
projectName: instascale
88
repo: github.ibm.com/project-codeflare/instascale
99
resources:
1010
- controller: true
1111
domain: my.domain
1212
group: mcad.ibm.com
1313
kind: AppWrapper
1414
version: v1beta1
15-
version: "3"
15+
version: "0.0.1"

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010

1111
# Usage
1212
- To build locally : `make run`
13-
- To build and release a docker image for controller : `make IMG=asm582/instascale docker-build docker-push`
14-
- To deploy on kubernetes cluster use deployments for now
13+
- To build and release a docker image for controller : `make IMG=quay.io/project-codeflare/instascale:<TAG> docker-build docker-push`
14+
- Note that the other contents of the Makefile (as well as the `config` and `bin` dirs) exist for future operator development, and are not currently utilized
15+
- To deploy on kubernetes cluster use the `deployments` dir for now:
16+
```
17+
git clone https://github.com/project-codeflare/instascale.git
18+
cd deployment/
19+
oc apply -f instascale-sa.yaml
20+
oc apply -f instascale-clusterrole.yaml
21+
oc apply -f instascale-clusterrolebinding.yaml
22+
oc apply -f deployment.yaml
23+
```
1524

1625
# Testing
1726

deployment/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
app: instascale
1717
spec:
1818
containers:
19-
- image: asm582/instascale:latest
19+
- image: quay.io/project-codeflare/instascale-controller:latest
2020
name: instascale
2121
resources:
2222
limits:

0 commit comments

Comments
 (0)