Skip to content
This repository was archived by the owner on Oct 3, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
bc573cf
Update code
cmoulliard Sep 28, 2018
740533a
Rename SpringBoot to Component
cmoulliard Oct 3, 2018
a29aec9
add templates
cmoulliard Oct 3, 2018
f9beb87
Generate assets using vfsgen
cmoulliard Oct 4, 2018
2767568
Reformat code
cmoulliard Oct 4, 2018
8e74a1f
Add status
cmoulliard Oct 4, 2018
62f2dbd
Add pvc
cmoulliard Oct 4, 2018
613916d
Fix issue with dc template
cmoulliard Oct 4, 2018
2ebd543
Add dc template
cmoulliard Oct 4, 2018
2a6a1e2
Use rnage for the images
cmoulliard Oct 4, 2018
e59b654
Use a list
cmoulliard Oct 4, 2018
fcb02c2
Fix list template issue
cmoulliard Oct 4, 2018
711cb6d
Add list
cmoulliard Oct 4, 2018
27f1198
Add service type to let to register parameters of the service selecte…
cmoulliard Oct 8, 2018
f202e3c
Add examples
cmoulliard Oct 11, 2018
77e7eb3
Add env vars
cmoulliard Oct 11, 2018
645070e
Add env var range and loop
cmoulliard Oct 11, 2018
91aa3b1
Regenereate the assets
cmoulliard Oct 11, 2018
df7f70c
Review binding
cmoulliard Oct 11, 2018
804fe5d
Format code
cmoulliard Oct 11, 2018
d473a04
Rename s2i to runtime
cmoulliard Oct 24, 2018
3300a45
Reformat and regenerate the assets
cmoulliard Oct 24, 2018
8541528
Remove code not longer used. Externalize EnvVars with default value c…
cmoulliard Oct 25, 2018
8dee010
add userInfo extra to fix the permission issue
cmoulliard Nov 16, 2018
15c53a6
Remove non needed userInfo section fron serviceinstance. See github.c…
cmoulliard Nov 19, 2018
6ad4f76
Execute gofmt on the code to reformnat it
cmoulliard Nov 19, 2018
b9ba90d
Add command to start nodejs
cmoulliard Nov 20, 2018
9ac9c4c
Regenerate assets for imagestream template
cmoulliard Nov 20, 2018
8d4c618
Add missing nodejs path
cmoulliard Nov 20, 2018
4cb914b
Append the runtime's type to the name of the dev-runtime image
cmoulliard Nov 21, 2018
29139d4
Regenerate assets
cmoulliard Nov 21, 2018
deaf362
Fix wrong path to access .RuntimeName -> .Spec.RuntimeName
cmoulliard Nov 21, 2018
de1b04c
Remove deep copy
cmoulliard Dec 7, 2018
4a196b5
Use a different PVC storage name / component
cmoulliard Dec 11, 2018
3c24d4b
Fix issue. Add missing volume name
cmoulliard Dec 11, 2018
10059d7
Regenerate assets
cmoulliard Dec 11, 2018
b51650b
Add new templates supporting Deployment, Ingress and change logic to …
cmoulliard Dec 17, 2018
973572b
Use as HOST the name of the service
cmoulliard Dec 18, 2018
6eb81b5
Use as selector only app = name insdtead of deploymentconfig as it fa…
cmoulliard Dec 18, 2018
83cc9b0
Regenerate the assets as the service do not include anymore the deplo…
cmoulliard Dec 21, 2018
a700729
Set labels using k8s recommended labels
cmoulliard Jan 22, 2019
cbd2136
Fix wrong variable declaration with imagestream
cmoulliard Jan 22, 2019
63443bc
Update Deployment and Deploymentconfig to include k8s labels as part …
cmoulliard Jan 29, 2019
137a1f8
Add new resources to build project
cmoulliard Jan 29, 2019
64f5478
Add missing group
cmoulliard Jan 29, 2019
9f647c6
Enable outerloop
cmoulliard Jan 29, 2019
b52e5ca
Define fields using annotations keys
cmoulliard Jan 30, 2019
a5d8f87
Add empty spec field
cmoulliard Jan 30, 2019
b4bd3f0
Generate new assets
cmoulliard Jan 30, 2019
2c28f7d
Fix annotations to use appropriate keys
cmoulliard Jan 30, 2019
a787496
Regenerate assets
cmoulliard Jan 30, 2019
2fb31fb
Clean deploymentconfig template
cmoulliard Jan 30, 2019
c905304
Add new function to create RuntimeObject from template
cmoulliard Jan 30, 2019
1553843
Rename template to tmpl
cmoulliard Jan 30, 2019
ac975b7
Inner to outer build works. Service should be updated to switch
cmoulliard Jan 30, 2019
7256dd3
enhance README and MAkefile with local dev environment
corinnekrych Mar 1, 2019
c01474e
move template directory under pkg folder
corinnekrych Mar 4, 2019
22b7785
Merge branch 'master' of ../../../snowdrop/backup/component-operator
corinnekrych Mar 4, 2019
549476e
Update CRD templates to use new operator name. (#5)
sbose78 Feb 20, 2019
a69ee1b
Makefile setup, test stubs (#3)
michaelkleinhenz Feb 28, 2019
863fbf6
renaming f8 variables (#9)
tinakurian Feb 28, 2019
1e86a7b
enhance README and MAkefile with local dev environment
corinnekrych Mar 1, 2019
8633616
Merge branch 'initial.bootstrap' of github.com:corinnekrych/devopscon…
corinnekrych Mar 4, 2019
0dbf46c
focus on creating outteloop imagestream, buildconfig
corinnekrych Mar 4, 2019
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
118 changes: 75 additions & 43 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,54 @@ clean: $(CLEAN_TARGETS)
## Build the operator
build: prebuild-check deps
@echo "building $(BINARY_SERVER_BIN)..."
operator-sdk generate k8s
operator-sdk generate openapi
go build -v -o $(BINARY_SERVER_BIN) cmd/manager/main.go

# -------------------------------------------------------------------
# deploy
# -------------------------------------------------------------------
APP_NAMESPACE ?= myproject
.PHONY: local
## Run Operator locally
local: deploy-rbac build deploy-crd
@-oc new-project $(APP_NAMESPACE)
operator-sdk up local --namespace=$(APP_NAMESPACE)

.PHONY: deploy-rbac
## Setup service account and deploy RBAC
deploy-rbac:
@-oc login -u system:admin
@-oc create -f deploy/service_account.yaml
@-oc create -f deploy/role.yaml
@-oc create -f deploy/role_binding.yaml

.PHONY: deploy-crd
## Deploy CRD
deploy-crd:
@-oc apply -f deploy/crds/components_v1alpha1_component_crd.yaml
@-oc apply -f deploy/crds/devopsconsole_v1alpha1_envdeployment_crd.yaml

.PHONY: deploy-operator
## Deploy Operator
deploy-operator: deploy-crd
oc create -f deploy/operator.yaml

.PHONY: deploy-cr
## Deploy a CR as test
deploy-test:
#@-oc delete ... TODO clean all created resource
oc create -f examples/components_v1alpha1_component_cr.yaml

# -------------------------------------------------------------------
# generate template
# -------------------------------------------------------------------

$(GOPATH)/bin/vfsgendev:
go get -u github.com/shurcooL/httpfs/vfsutil
go get -u github.com/shurcooL/vfsgen/cmd/vfsgendev

.PHONY: assets
assets: $(GOPATH)/bin/vfsgendev
@echo ">> writing assets"
cd pkg/util/template && go generate
Loading