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

Commit

Permalink
Rename release_name to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno committed Aug 3, 2018
1 parent b041363 commit c834d98
Show file tree
Hide file tree
Showing 35 changed files with 85 additions and 85 deletions.
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ instance_groups:
- name: nats # The name of the instance group
jobs: # BOSH jobs this group will have
- name: nats
release_name: nats # The name of the BOSH release this is from
release: nats # The name of the BOSH release this is from
tags:
- indexed # Mark this group as indexed (load-balanced) => StatefulSet
run: # Runtime configuration
Expand Down Expand Up @@ -159,7 +159,7 @@ instance_groups:
- name: mysql
jobs:
- name: mysql
release_name: cf-mysql
release: cf-mysql
provides:
mysql: {}
processes:
Expand Down
4 changes: 2 additions & 2 deletions model/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ type RoleManifest struct {
// JobReference represents a job in the context of a role
type JobReference struct {
*Job `yaml:"-"` // The resolved job
Name string `yaml:"name"` // The name of the job
ReleaseName string `yaml:"release_name"` // The release the job comes from
Name string `yaml:"name"` // The name of the job
ReleaseName string `yaml:"release"` // The release the job comes from
ExportedProviders map[string]jobProvidesInfo `yaml:"provides"`
ResolvedConsumers map[string]jobConsumesInfo `yaml:"consumes"`
}
Expand Down
2 changes: 1 addition & 1 deletion test-assets/role-manifests/app/hashmat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ instance_groups:
foo: x
jobs:
- name: hashmat
release_name: tor
release: tor
configuration:
variables:
- name: FOO
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/app/roles-to-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
6 changes: 3 additions & 3 deletions test-assets/role-manifests/app/tor-validation-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
configuration:
templates:
properties.tor.bogus: BOGUS
Expand All @@ -18,7 +18,7 @@ instance_groups:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/app/tor-validation-ok.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/builder/tor-good.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/compilator/tor-good.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ instance_groups:
- name: myrole
jobs:
- name: tor
release_name: tor
release: tor
run:
capabilities:
- something
Expand All @@ -28,7 +28,7 @@ instance_groups:
type: colocated-container
jobs:
- name: tor
release_name: tor
release: tor
run:
capabilities:
- something
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/kube/colocated-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ instance_groups:
tag: shared-data
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated

- name: to-be-colocated
type: colocated-container
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1
volumes:
Expand Down
2 changes: 1 addition & 1 deletion test-assets/role-manifests/kube/job-with-annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ instance_groups:
type: bosh-task
jobs:
- name: new_hostname
release_name: tor
release: tor
run:
flight-stage: post-flight
memory: 128
Expand Down
4 changes: 2 additions & 2 deletions test-assets/role-manifests/kube/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ instance_groups:
type: bosh-task
jobs:
- name: new_hostname
release_name: tor
release: tor
run:
flight-stage: pre-flight
memory: 128
- name: post-role
type: bosh-task
jobs:
- name: tor
release_name: tor
release: tor
run:
flight-stage: post-flight
memory: 256
4 changes: 2 additions & 2 deletions test-assets/role-manifests/kube/pods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ instance_groups:
tags: [stop-on-failure]
jobs:
- name: new_hostname
release_name: tor
release: tor
run:
flight-stage: pre-flight
memory: 128
Expand All @@ -19,7 +19,7 @@ instance_groups:
tags: [stop-on-failure]
jobs:
- name: tor
release_name: tor
release: tor
run:
flight-stage: post-flight
memory: 256
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ instance_groups:
- name: myrole
jobs:
- name: tor
release_name: tor
release: tor
run:
capabilities:
- something
Expand Down
2 changes: 1 addition & 1 deletion test-assets/role-manifests/kube/volumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ instance_groups:
- name: myrole
jobs:
- name: tor
release_name: tor
release: tor
run:
capabilities:
- something
Expand Down
2 changes: 1 addition & 1 deletion test-assets/role-manifests/model/bad-cv-type-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
6 changes: 3 additions & 3 deletions test-assets/role-manifests/model/bad-cv-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ instance_groups:
foo: x
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
4 changes: 2 additions & 2 deletions test-assets/role-manifests/model/bosh-run-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ instance_groups:
- FOO
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
6 changes: 3 additions & 3 deletions test-assets/role-manifests/model/bosh-run-missing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ instance_groups:
- name: myrole
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
- name: foorole
type: bosh-task
run:
foo: x
jobs:
- name: tor
release_name: tor
release: tor
configuration:
variables:
- name: BAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ instance_groups:
tag: shared-data
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated

Expand All @@ -21,7 +21,7 @@ instance_groups:
tags: [headless]
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ instance_groups:
memory: 1
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated-typo
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ instance_groups:
- headless
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated

- name: to-be-colocated
type: colocated-container
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1
exposed-ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ instance_groups:
- headless
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated

- name: to-be-colocated
type: colocated-container
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1
exposed-ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ instance_groups:
memory: 1
jobs:
- name: new_hostname
release_name: tor
release: tor
- name: tor
release_name: tor
release: tor
colocated_containers:
- to-be-colocated

- name: to-be-colocated
type: colocated-container
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1

- name: orphaned
type: colocated-container
jobs:
- name: ntpd
release_name: ntp
release: ntp
run:
memory: 1
Loading

0 comments on commit c834d98

Please sign in to comment.