Skip to content

Commit

Permalink
Merge pull request #52 from terraform-providers/docs-standardize-labe…
Browse files Browse the repository at this point in the history
…l-casing

docs: Use lower casing for labels
  • Loading branch information
radeksimko authored Aug 21, 2017
2 parents d168199 + f8df46c commit 230ce57
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions website/docs/r/replication_controller.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ resource "kubernetes_replication_controller" "example" {
metadata {
name = "terraform-example"
labels {
Test = "MyExampleApp"
test = "MyExampleApp"
}
}
spec {
selector {
Test = "MyExampleApp"
test = "MyExampleApp"
}
template {
container {
Expand Down
18 changes: 17 additions & 1 deletion website/docs/r/service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "kubernetes_service" "example" {
}
spec {
selector {
App = "MyApp"
app = "${kubernetes_pod.example.metadata.0.labels.app}"
}
session_affinity = "ClientIP"
port {
Expand All @@ -31,6 +31,22 @@ resource "kubernetes_service" "example" {
type = "LoadBalancer"
}
}
resource "kubernetes_pod" "example" {
metadata {
name = "terraform-example"
labels {
app = "MyApp"
}
}
spec {
container {
image = "nginx:1.7.9"
name = "example"
}
}
}
```

## Argument Reference
Expand Down

0 comments on commit 230ce57

Please sign in to comment.