|
# Required. Spinfiles have their own independent schema than what DCD has. |
|
schema: "1" |
|
# Defines the root application name. This can be undefined and will inherit the |
|
# name the repository e.g. dir(__file__) |
|
name: clouddriver |
|
# Tags allow us to auto-generate Spinnaker Projects of any application that has |
|
# the same tag. They have no other purpose but for discovery and organizational |
|
# purposes. |
|
tags: |
|
- spinnaker |
|
|
|
# Spinnaker application configurations. If a section is defined, it will become |
|
# locked within the UI, as the Spinfile will manage its state. Example, if only |
|
# chaosMonkey were defined here, the UI would lock it, but attributes could |
|
# still be managed via the UI. |
|
config: |
|
attributes: |
|
owner: [email protected] |
|
pagerDuty: Spinnaker |
|
repoType: github |
|
repoProject: spinnaker |
|
repoName: clouddriver |
|
description: cloud read and write operations |
|
accounts: |
|
- my-prod-account |
|
- my-test-account |
|
cloudProvider: |
|
- aws |
|
# ... |
|
notifications: |
|
- type: slack |
|
channel: "#spinnaker" |
|
when: |
|
- event: pipeline.complete |
|
message: Optional |
|
features: |
|
ci: true |
|
pipelines: true |
|
# ... |
|
links: |
|
- title: Logs |
|
links: |
|
- title: catalina.out |
|
path: :1234/logs?view=tomcat/catalina.out |
|
chaosMonkey: |
|
enabled: true |
|
# ... |
|
trafficGuards: |
|
- account: my-prod-account |
|
region: "*" |
|
|
|
# Metadata is strictly data that can be used to help inform Spinnaker |
|
# of how to intelligently provision the application. |
|
metadata: |
|
workload: network # enum cpu|mem|network|etc ... could allow us to |
|
# decide what instance type to provision a server on. |
|
package: docker|deb |
|
pipelines: |
|
# Simple 1-1 mapping to TemplateConfiguration. It feels awkward to have |
|
# pipelines.pipeline.name; so may be worth a diversion in APIs from what |
|
# orca is internally expecting here. |
|
- pipeline: |
|
name: Bake & Deploy to Test |
|
template: |
|
source: spinnaker://my-managed-pipeline-template |
|
notifications: [] |
|
# ... |
|
stages: {} # config-time stage definitions |
|
modules: {} # config-time module definitions |
|
|
|
# Additional, non-pipeline things that Spinnaker typically manages for |
|
# people. |
|
infrastructure: |
|
loadBalancers: [] |
|
securityGroups: [] |
|
# ... |
|
|
|
# etc... |
|
# Additional unknown keys are not syntax errors, but offered as potential |
|
# extension points. It's totally reasonable that we would want to support |
|
# a root-level "netflix", "google" or "fooCompany" configuration namespace. |
|
netflix: |
|
tier: 0 |