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

Commit

Permalink
Tag resources used by bosh director on aws
Browse files Browse the repository at this point in the history
[#153368515]
  • Loading branch information
Konstantin Semenov committed Dec 6, 2017
1 parent 0ff87ca commit 4d52681
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/deploy_bosh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ generate_manifest_aws() {
generate_manifest_generic "$bosh_env" \
--var-file private_key="${key_filename}"\
--vars-file "${bosh_env}/director-secrets.yml" \
--ops-file "$(repo_directory)/bosh-deployment/aws/cpi.yml"
--ops-file "$(repo_directory)/bosh-deployment/aws/cpi.yml" \
--ops-file "$(repo_directory)/manifests/ops-files/iaas/aws/bosh/tags.yml"
}

generate_manifest_generic() {
Expand Down
4 changes: 4 additions & 0 deletions manifests/ops-files/iaas/aws/bosh/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- type: replace
path: /tags?
value:
director_name: ((director_name))
2 changes: 2 additions & 0 deletions src/kubo-deployment-tests/deploy_bosh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"path"

"fmt"

. "github.com/jhvhs/gob-mock"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down Expand Up @@ -89,6 +90,7 @@ var _ = Describe("Deploy KuBOSH", func() {
Expect(err).NotTo(HaveOccurred())
Expect(code).To(Equal(0))
Expect(stderr).To(gbytes.Say("/bosh-deployment/aws/cpi.yml"))
Expect(stderr).To(gbytes.Say("/manifests/ops-files/iaas/aws/bosh/tags.yml"))
})

It("expands the environment path", func() {
Expand Down

0 comments on commit 4d52681

Please sign in to comment.