Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Develop POC for Pipeline Controller that forwards kubectl apply #216

Closed

Description

@topherbullock

As an app developer
I want to create my first pipeline
So that my app is built for me

When I type kubectl apply -f pipeline.yml
Then I see feedback from kubectl that the pipeline was created

Activity

  1. added
    poc/pipeline
    on Jun 28, 2018
  2. imjasonh commented on Jun 28, 2018

    @imjasonh
    Contributor

    To simplify the POC, it could be useful to remove the UI requirement and just rely on kubectl and the Kubernetes API to show you the pipeline.

  3. topherbullock commented on Jun 28, 2018

    @topherbullock
    Author

    @imjasonh good point. edited to remove that :)

  4. jchesterpivotal commented on Jun 28, 2018

    @jchesterpivotal

    Quick EOD notes:

    • We started with sample-controller
    • Our current thinking is to do kubectl apply to upload a pipeline and look for it showing up on kubectl get event
    • Then to actually nest a Concourse pipeline in an uploaded CRD
    • And talk to a Concourse controller via service discovery -- maybe deployed as a knative Service

    We will be understrength due to public holidays but I think it's looking promising so far.

  5. jchesterpivotal commented on Jun 29, 2018

    @jchesterpivotal

    EOD notes:

    • New workstation, so most of my day was spent on getting it set up. Rabbit holes ahoy!
    • I'm as far as a WIPpy ability to do kubectl apply -f config/example-pipeline.yaml and kubectl get pipelines and see something.
    • Next item will be a quick e2e to prove I am not a liar.
    • Oh and the whole finding Concourse and forwarding to it
  6. jchesterpivotal commented on Jul 2, 2018

    @jchesterpivotal

    EOD notes:

    • Switched to kubebuilder. So far so good.
    • Added some tests, promptly broke them by expanding their scope to cover the acceptance criteria.
    • At the moment this POC won't play nicely with a knative installation, mostly due to istio sidecar injection (see link immediately above this comment).

    Next item is to use go-concourse to forward the spec to the ATC. Helm installs this at a well-known address (concourse-web.concourse.svc.cluster.local). Port forwarding turns this into an easily accessible API endpoint.

  7. jchesterpivotal commented on Jul 6, 2018

    @jchesterpivotal

    EOD notes:

    • It logs into a Concourse API and can send an empty pipeline
    • Current blocker is trying to have kubebuilder/deepcopy-gen accept types that map to real proper actual Concourse YAML
  8. jchesterpivotal commented on Jul 9, 2018

    @jchesterpivotal

    I think I've got it working -- it seems so on desk-check. I'll backfill some quick & dirty tests and then close this one.

  9. jchesterpivotal commented on Jul 10, 2018

    @jchesterpivotal

    So actually the integration test I'm writing is becoming increasingly batty. Since this is a POC I am going to wave the all-purpose excusotron of "It's just a spike!!" and move on to the next card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

poc/pipeline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions