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

Manifest generation should merge extral properties from collocated jobs #77

Closed
wants to merge 1 commit into from

Conversation

Kaixiang
Copy link
Contributor

When we are trying to add a collocated job into diego.

we found the properties of the collocated job will be ignored even if we put it into property-overrides.yml.
we need to add a 'merge' into the template so it could take the property for collocated job.

@cfdreddbot
Copy link

Hey Kaixiang!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.

1 similar comment
@cfdreddbot
Copy link

Hey Kaixiang!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/103241362.

@Amit-PivotalLabs
Copy link

Property overrides are meant to override job spec defaults for only a very specific list of diego properties, not permissively merge in any provided properties. Those sorts of merges allow people to start to use the stubs and manifest generation tools in unmaintainable ways, and also commits the Diego team to maintaining a contract they have no control over.

In general, tools like the scripts/generate-deployment-manifest are meant as a convenience, and are not guaranteed to support 100% of all possible BOSH deployments of diego. spiff templates are inherently incapable of supporting arbitrary colocation strategies, arbitrary numbers of AZs/clusters, arbitrarily large instance scaling for things that need static IPs, etc.

Would the properties you're trying to add be easy to add after the fact, e.g.

./scripts/generate-deployment-manifest ...stubs... > temp_manifest.yml
ruby -r yaml -e \
  'puts YAML.dump(YAML.load_file("temp_manifest.yml").tap { |m| m["properties"].merge! YAML.load_file("additional_job_properties.yml") })' \
  > final_manifest.yml

@emalm
Copy link
Member

emalm commented Oct 14, 2015

Hi, @Kaixiang,

As @Amit-PivotalLabs mentioned, the spiff-based manifest-generation in diego-release doesn't allow arbitrary changes to the manifest. In particular, it takes a fixed sequence of stub files as its arguments, instead of the arbitrary sequence of stubs that the manifest-generation script in cf-release does, and extracts a specific set of values from each stub, instead of simply collapsing them via a spiff merge. So even if the <<: (( merge )) operator is present in the properties section, there's no reasonable way to get additional properties to that merge site via the script. It might be possible to have a post-processing stage that takes the Diego manifest and merges in additional properties, though.

Thanks,
Eric

@emalm emalm closed this Oct 14, 2015
jfmyers9 pushed a commit that referenced this pull request Mar 2, 2016
Submodule src/github.com/pkg/sftp cbc2879..e84cc8c:
  > Merge pull request #85 from pkg/rootdir
  > Merge pull request #81 from pkg/server-option
  > Merge pull request #80 from pkg/functional-options
  > Merge pull request #78 from pkg/server-readonly
  > Merge pull request #79 from pkg/readme-badges
  > Merge pull request #77 from pkg/namedreturns
  > Merge pull request #75 from pkg/golint
  > Merge pull request #73 from mdlayher/golint
  > Merge pull request #74 from LiterallyElvis/master
  > Merge pull request #72 from mdlayher/master
  > Merge pull request #70 from pkg/fixedbugs/69
  > Merge pull request #67 from mdlayher/master
  > Merge pull request #64 from pkg/fixedbugs/28
  > Merge pull request #63 from pkg/fixedbugs/5
  > Merge pull request #61 from pkg/add-travis
  > Merge pull request #62 from xiu/bugfix/35-cant-remove-directories-on-servu
  > Merge pull request #58 from sykesm/client-realpath
  > Merge pull request #60 from pkg/fixedbugs/57
  > updated contribution guidelines

Signed-off-by: James Myers <jmyers@pivotal.io>
jvshahid added a commit that referenced this pull request Jun 18, 2018
[finishes #155485548](https://www.pivotaltracker.com/story/show/155485548)

Submodule src/code.cloudfoundry.org/diego-ssh 9b3f460a..11745569:
  > Upgrade jwt-go library.
Submodule src/code.cloudfoundry.org/uaa-go-client 0c176509..26b271e3:
  > Ignore validation error when token used before issued
  > go back to using submodules from routing-release
  > Provide correct url
  > Update README
  > all tests passing with newer JWT
  > fixing vet errors
  > Merge pull request #10 from cloudfoundry-incubator/vendor-deps
  > Revert "remove incubator"
  > remove incubator
Submodule src/github.com/dgrijalva/jwt-go f62f64ea..06ea1031:
  > documentation around expected key types
  > Merge branch 'master' of github.com:dgrijalva/jwt-go
  > add options to ParseFromRequest
  > fixed a formatting error in a test
  > documenting changes for upcoming 3.2.0 release
  > Merge pull request #152 from pusher/parse-unverified
  > Merge pull request #219 from geertjanvdk/feat/parse
  > Merge pull request #205 from zamicol/icon_godoc
  > Merge pull request #209 from zhyuri/patch-1
  > Merge pull request #220 from polarina/readme-alt-include
  > Notice about upcoming 4.0.0 release
  > 3.1.0 changelog
  > Merge pull request #218 from zoofood/patch-1
  > updated note on alg type vulnerability
  > Merge pull request #183 from hnakamur/support_rs256_in_jwt_command
  > Merge pull request #196 from dgrijalva/dg/cmd_args
  > Merge pull request #190 from jamesrwhite/patch-1
  > Merge pull request #180 from kevinburke/fix-unreachable
  > Merge pull request #166 from johnlockwood-wf/issue-165-missing-arg
  > Merge pull request #151 from zaichang/FixMigrationGuide
  > Merge pull request #146 from pkieltyka/master
  > Merge pull request #140 from kazhuravlev/patch-1
  > Merge pull request #77 from dgrijalva/release_3_0_0
  > v2.7.0
  > notice about imminent 3.0.0
  > Merge pull request #136 from bruston/keyfunc-typo
  > fixes #135 copy/paste error in rsa decoding tools
  > Merge pull request #132 from abourget/master
  > Merge pull request #133 from johnlockwood-wf/expire-delta
  > release notes
  > expose inner error within ValidationError
  > Merge branch 'master' of https://github.com/emanoelxavier/jwt-go-contr into dg/merge_112
  > cleaned up style and added tests
  > Merge branch 'master' of https://github.com/dakom/jwt-go into dg/pr_121
  > version history update
  > Merge pull request #79 from dgrijalva/dg/none
  > Merge pull request #122 from appleboy/patch-1
  > add 1.6 to travis.yml
  > Merge pull request #107 from Snorlock/bearer-verification
  > Merge pull request #111 from matm/master
  > added supported signing methods
  > Added some clarification and (hopefully) helpful documentation
  > version history
  > signature should be populated after parsing a valid token
  > Merge pull request #98 from dgrijalva/dg/parser
  > use cleaner version of prefix checking (thanks shurcooL)
  > fix array OOB panic (#100)
  > Merge pull request #93 from EnerfisTeam/master
  > Merge branch 'master' of github.com:dgrijalva/jwt-go
  > minor refactor of HMAC verify for legibility.  no functional changes
  > updated documenation of SigningMethod interface
robertjsullivan added a commit that referenced this pull request Mar 12, 2020
Submodule src/github.com/square/certstrap b61237589..bd8b02aa8:
  > Bump Go to 1.13
  > Merge pull request #85 from square/mbyczkowski/better-versioning
  > Merge pull request #81 from square/mbyczkowski/option-for-output
  > Merge pull request #80 from square/dependabot/go_modules/github.com/urfave/cli-1.21.0
  > Merge pull request #79 from square/mbyczkowski/godoc-badge
  > Merge pull request #71 from julianedwards/extractname
  > Merge pull request #77 from julianedwards/newtemplates
  > Merge pull request #73 from defer/ft-text-fixes
  > Merge pull request #69 from square/cs/dockerfile
  > Merge pull request #68 from square/cs/update-cli
  > Merge pull request #67 from square/cs/mod

Co-authored-by: Edwin Xie <exie@pivotal.io>
winkingturtle-vmw added a commit that referenced this pull request May 3, 2023
Submodule src/code.cloudfoundry.org/executor d44b55c90..f898bc96e:
  > Merge branch 'with-proto-equal'
  > Use proto.Equal instead (#77)
winkingturtle-vmw added a commit that referenced this pull request May 3, 2023
Submodule src/code.cloudfoundry.org/executor d44b55c90..f898bc96e:
  > Merge branch 'with-proto-equal'
  > Use proto.Equal instead (#77)
tas-runtime-bot pushed a commit that referenced this pull request Dec 27, 2023
…apper

Submodule src/code.cloudfoundry.org/bbs 1b287db66..b45866dbb:
  > Revert "Start server with Unavailable handler until lock is ready"
  > Add metric tags to task definition (#77)
Submodule src/code.cloudfoundry.org/cacheddownloader bb834a3fe..665f7b048:
  > Convert cacheddownloader to a go module (#28)
Submodule src/code.cloudfoundry.org/credhub-cli 4bd1f774f..156833ebf:
  > Bump go modules
Submodule src/code.cloudfoundry.org/rep eedf2cd88..c55fff800:
  > Adds metric tags to task logs (#50)
Submodule src/garden 7c85e0f7a..f6a5ba9c5:
  > Update go.mod dependencies
Submodule src/grootfs 2d7376525..55af5dac6:
  > Update go.mod dependencies
Submodule src/guardian fbef8d9bb..e49d38ea2:
  > Update go.mod dependencies
  > Merge pull request #426 from cloudfoundry/fix-unit-and-integration-tests/builds/16.1
Submodule src/idmapper d89a35477..ec81d4362:
  > Update go.mod dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants