Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Add controller to deploy topology service #204

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

akashshinde
Copy link
Collaborator

@akashshinde akashshinde commented May 13, 2019

This PR borrows the work from #195

A Deployment is created in the openshift-operators namespace such that
the corresponding service would be reachable at devconsole-app.openshift-operators.svc:8080
Calls to this service would be proxied from the console backend [1] .

To Do

  • Verify that console backend is able to proxy to this
  • Create Deployment
  • Create Service
  • Watch and reconcile
  • Parameterize the image name that is being deployed
  • Add tests
    • Add unit tests

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: sbose78

If they are not already assigned, you can assign the PR to them by writing /assign @sbose78 in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akashshinde akashshinde changed the title Add controller to deploy topology service [WIP] Add controller to deploy topology service May 13, 2019
@tinakurian
Copy link
Collaborator

@akashshinde can we please add some tests for these changes?

@sbose78
Copy link
Member

sbose78 commented May 13, 2019

A Deployment is created in the openshift-operators

@Avni-Sharma Can we deploy it in a different namespace?

@akashshinde
Copy link
Collaborator Author

@sbose78 How do you suggest to parameterize docker image path of topology service ?

@akashshinde akashshinde changed the title [WIP] Add controller to deploy topology service Add controller to deploy topology service May 16, 2019
Containers: []corev1.Container{
{
Name: ServiceName,
Image: "quay.io/redhat-developer/app-service:latest", // TODO(Akash): parameterize this
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Note]: This path will be parameterized in another PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big technical debt!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about creating a DevConsoleConfig CRD and keep the docker image as an attribute there?
See this Console CRD for example https://github.com/openshift/console-operator/blob/master/manifests/00-crd-operator-config.yaml

@baijum
Copy link
Member

baijum commented May 16, 2019

A Deployment is created in the openshift-operators

@Avni-Sharma Can we deploy it in a different namespace?

Let's create a new dedicated namespace for our service(s).

Copy link
Member

@baijum baijum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a couple of comments.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants