Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Minimal dispatch server based on knative #617

Merged
merged 1 commit into from
Sep 14, 2018

Conversation

berndtj
Copy link
Contributor

@berndtj berndtj commented Sep 13, 2018

Can simply build and execute functions

  • remove separate services/managers, go to a single dispatch
    server.
    • may still keep identity manager
  • remove all obsolete charts
  • remove old function manager (non-knative code)

Copy link
Contributor

@neosab neosab left a comment

Choose a reason for hiding this comment

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

This is a great start, some comments so far..

{{- define "ingress_with_external_auth" -}}
{{- $ingress_enabled := default .Values.global.ingress.enabled .Values.ingress.enabled -}}
{{- $ingress_enabled := .Values.ingress.enabled -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: No need to define this variable, we can directly use .Values.ingress.enabled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, yeah, I made a pass and removed all global refs.

@@ -14,3 +14,12 @@ spec:
image: github.com/vmware/dispatch/cmd/dispatch-server
args:
- function-manager
- --image-registry berndtj
Copy link
Contributor

Choose a reason for hiding this comment

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

No thanks ;). This can be ${KO_DOCKER_REPO}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh... yeah, I'm not sure I want to keep the config/*.yaml files. Just one way to install. But that's for another commit

@@ -14,3 +14,12 @@ spec:
image: github.com/vmware/dispatch/cmd/dispatch-server
args:
- function-manager
- --image-registry berndtj
- --sourceroot /store
volumeMounts:
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought this didn't work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it doesn't :). I'm reverting all my changes to config, but like I said, I'd like to delete it

insecure: false
# Use https://index.docker.io/v1/ for dockerhub
url:
# Use 'echo -n "username" | base64' to generate this string
Copy link
Contributor

Choose a reason for hiding this comment

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

It will be nice if we base64 enc in helm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I agree. I didn't bother writing a helper to do so (or look to see if one already exists).

@berndtj berndtj force-pushed the bjung-function-knative branch 4 times, most recently from a11a27d to f50d70a Compare September 13, 2018 22:55
@berndtj berndtj changed the title WIP: Minimal dispatch server based on knative Minimal dispatch server based on knative Sep 13, 2018
Copy link
Contributor

@neosab neosab left a comment

Choose a reason for hiding this comment

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

LGTM but for the imageRegistry config

- "--host=0.0.0.0"
- "--port={{ .Values.service.internalPort }}"
- "--image-registry=berndtj"
Copy link
Contributor

Choose a reason for hiding this comment

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

.Values.registry.url

#requests:
# cpu: 100m
# memory: 128Mi
# Default values for function-manager.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Redundant Comments L4-L6

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot this one. Fixed now. Should be all good to go

Copy link
Contributor

@tenczar tenczar left a comment

Choose a reason for hiding this comment

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

LGTM

Can simply build and execute functions

* remove separate services/managers, go to a single dispatch
  server.
  - may still keep identity manager
* remove all obsolete charts
* remove old function manager (non-knative code)
@berndtj berndtj merged commit 0b2f053 into vmware-archive:knative Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants