-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OCU-90] Make Dracon-dev into one Helm Package #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please split away the RFC part into a separate PR, we first review and merge that, then we can proceed to reviewing this, but only after it's working and the commit history has been cleaned up
7d1911d
to
7aa8c7f
Compare
thanks for the review, done, RFC PR |
c21da37
to
c288d4b
Compare
7aa8c7f
to
e0d92de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5 nits and we are good to go 🚀
Makefile
Outdated
@@ -239,4 +208,24 @@ deploy-tektoncd-dashboard: tektoncd-dashboard-helm | |||
--values ./deploy/tektoncd/dashboard/values.yaml \ | |||
--namespace $(TEKTON_NS) | |||
|
|||
dev-deploy: deploy-nginx deploy-arangodb deploy-kibana deploy-mongodb deploy-pg deploy-tektoncd-pipeline deploy-tektoncd-dashboard | |||
deploy-dracon-dev: deploy-elasticoperator | |||
make draconctl-image-publish CONTAINER_REPO=localhost:5000/ocurity/dracon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this, the user can run this command themselves if needed
Makefile
Outdated
make deploy-dracon-dev | ||
|
||
dev-teardown: | ||
kind delete clusters dracon-demo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot an @
over here
Makefile
Outdated
--set "global.image.draconVersion=$(DRACON_VERSION)" | ||
--wait | ||
|
||
dev-deploy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can simplify this to dev-deploy: deploy-nginx deploy-arangodb deploy-tektoncd-pipeline deploy-tektoncd-dashboard deploy-dracon-dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add this folder to the .gitignore
these will be pulled when the help install/upgrade command is executed
deploy/dracon/templates/job.yaml
Outdated
@@ -0,0 +1,29 @@ | |||
apiVersion: batch/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should add a boolean to enable migrations and have the entire job in an if so that if for whatever reason the migrations are not supposed to be deployed, they can be skipped
458c251
to
ce87b83
Compare
…nt make targets This commit unifies the installation of dracon-dev and its dependencies via one single helm package. It installs all necessary dependencies for development such as Elasticsearch, Kibana, Postgres, Mongo and Tekton. Dependencies that need to be installed on a namespace different than the dracon components such as Tekton, Nginx, ElasticOperator and ArangoDB are installed via Make targets. This commit also refactors Make targets introducing `deploy-dracon-dev` which builds and loads dracon container images and installs the helm chart. Last this commit runs the necessary dracon migrations job as a helm post-install hook
ce87b83
to
82771f3
Compare
Implements #150