Skip to content
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

Please put the cloud controller job spec in the conventional location #49

Closed
shalako opened this issue Jul 20, 2017 · 5 comments
Closed
Labels

Comments

@shalako
Copy link

shalako commented Jul 20, 2017

Issue

I need to reference the cloud controller job spec to discover the use of a manifest property. I expect to find it in /jobs/cloud_controller_ng. Instead I must trace the thread through to cloud_controller's own repo and find the job spec hidden in /bosh/jobs/cloud_controller_ng/spec.

First, the job spec is a BOSH release artifact, and has no meaning in the context of a standalone component.

Second, this location his highly unconventional and so challenging to find.

Third, the job spec should be considered your configuration documentation for the component within the context of the BOSH release. Putting it in the conventional place enables operators to understand how to configure the component via a BOSH manifest.

Steps to Reproduce

  1. Look for the CAPI job spec
  2. Spend much longer finding it than it should take

Expected result

Find the CAPI job spec at https://github.com/cloudfoundry/capi-release/blob/master/jobs/cloud_controller_ng/spec

Current result

  1. Find that https://github.com/cloudfoundry/capi-release/blob/develop/jobs/cloud_controller_ng is a link to ../src/cloud_controller_ng/bosh/jobs/cloud_controller_ng.
  2. Retrace your steps up the tree and back down through /src/cloud_controller_ng @ 4423884 which takes you to the CC repo
  3. Get lost, try looking through several directories, before going back to https://github.com/cloudfoundry/capi-release/blob/develop/jobs/cloud_controller_ng to remind yourself of the unconventional path
  4. Eventually find your way to https://github.com/cloudfoundry/cloud_controller_ng/blob/b44ae3cb312841b7dd8f8b3cf39eab6fe95ede55/bosh/jobs/cloud_controller_ng/spec

Possible Fix

Put the spec in the expected location: capi-release under /jobs/cloud_controller_ng/spec

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/149204143

The labels on this github issue will be updated when the story is started.

@ljfranklin
Copy link
Contributor

@Gerg I think this seems reasonable as it nicely groups all our bosh stuff together although the team would have to re-learn a bit of muscle memory. WDYT?

@cppforlife
Copy link

cppforlife commented Sep 1, 2017 via email

@Gerg
Copy link
Member

Gerg commented Oct 5, 2017

We discussed this as a team, and we agreed that it makes sense to move these files to their conventional locations. That said, we have other engineering priorities currently, so we will probably not work on this in the near future.

@rainmaker
Copy link
Contributor

Hi Shannon,

Thanks for bringing this up. Legibility of our release is important to us, and this is a positive change in that direction. Just an FYI that we've committed these changes to develop, and they should be rolling onto master at our next release, provided that we don't see any unforeseen consequences of moving the job specs around. Hopefully it's more discoverable now.

We also realize that the shared_job_templates directory is still somewhat unconventional, since it's now stored at the top-level of the bosh release and results in symlinks being located under jobs/cloud_controller*/templates/. It seemed like much of your concern was around the location of the job spec file, so maybe this isn't as much of an issue for you. If you feel strongly about it, let us know.

Thanks for your recommendation!

Raina

capi-bot added a commit that referenced this issue Jan 11, 2024
Bump src/code.cloudfoundry.org/tps
  Amelia Downs:
     watch for when routability of an app instance changes (#49)
ari-wg-gitbot added a commit that referenced this issue May 27, 2024
Bump src/code.cloudfoundry.org/cc-uploader
  dependabot[bot]:
     Bump github.com/onsi/ginkgo/v2 from 2.18.0 to 2.19.0 (#49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants