Skip to content

Commit

Permalink
Change 'phase' back to 'environment'!
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfield committed Nov 26, 2018
1 parent 4b17563 commit 382f36a
Show file tree
Hide file tree
Showing 46 changed files with 67 additions and 67 deletions.
2 changes: 1 addition & 1 deletion hello-cloudbuild/k8s/demo/production-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: production
environment: production
2 changes: 1 addition & 1 deletion hello-cloudbuild/k8s/demo/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: staging
environment: staging
6 changes: 3 additions & 3 deletions hello-cloudbuild/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ spec:
metadata:
labels:
app: {{ .Values.container.name }}
phase: {{ .Values.phase }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.container.image }}:{{ .Values.container.tag }}
ports:
- containerPort: {{ .Values.container.port }}
env:
- name: PHASE
value: {{ .Values.phase }}
- name: environment
value: {{ .Values.environment }}

2 changes: 1 addition & 1 deletion hello-cloudbuild/k8s/demo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phase: development
environment: development
container:
name: demo
port: 8888
Expand Down
2 changes: 1 addition & 1 deletion hello-drone/k8s/demo/production-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: production
environment: production
2 changes: 1 addition & 1 deletion hello-drone/k8s/demo/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: staging
environment: staging
6 changes: 3 additions & 3 deletions hello-drone/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ spec:
metadata:
labels:
app: {{ .Values.container.name }}
phase: {{ .Values.phase }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.container.image }}:{{ .Values.container.tag }}
ports:
- containerPort: {{ .Values.container.port }}
env:
- name: PHASE
value: {{ .Values.phase }}
- name: environment
value: {{ .Values.environment }}

2 changes: 1 addition & 1 deletion hello-drone/k8s/demo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phase: development
environment: development
container:
name: demo
port: 8888
Expand Down
2 changes: 1 addition & 1 deletion hello-helm/k8s/demo/production-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: production
environment: production
2 changes: 1 addition & 1 deletion hello-helm/k8s/demo/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: staging
environment: staging
6 changes: 3 additions & 3 deletions hello-helm/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ spec:
metadata:
labels:
app: {{ .Values.container.name }}
phase: {{ .Values.phase }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.container.image }}:{{ .Values.container.tag }}
ports:
- containerPort: {{ .Values.container.port }}
env:
- name: PHASE
value: {{ .Values.phase }}
- name: environment
value: {{ .Values.environment }}

4 changes: 2 additions & 2 deletions hello-helm/k8s/demo/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
app: {{ .Values.container.name }}
spec:
ports:
- port: {{ .Values.container.port }}
- port: 80
protocol: TCP
targetPort: {{ .Values.container.port }}
selector:
app: {{ .Values.container.name }}
type: ClusterIP
type: LoadBalancer
2 changes: 1 addition & 1 deletion hello-helm/k8s/demo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phase: development
environment: development
container:
name: demo
port: 8888
Expand Down
2 changes: 1 addition & 1 deletion hello-skaffold/k8s/demo/production-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: production
environment: production
2 changes: 1 addition & 1 deletion hello-skaffold/k8s/demo/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: staging
environment: staging
6 changes: 3 additions & 3 deletions hello-skaffold/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ spec:
metadata:
labels:
app: {{ .Values.container.name }}
phase: {{ .Values.phase }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.container.image }}:{{ .Values.container.tag }}
ports:
- containerPort: {{ .Values.container.port }}
env:
- name: PHASE
value: {{ .Values.phase }}
- name: environment
value: {{ .Values.environment }}

2 changes: 1 addition & 1 deletion hello-skaffold/k8s/demo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phase: development
environment: development
image:
repository: demo
tag: hello
Expand Down
2 changes: 1 addition & 1 deletion hello-sops/k8s/demo/production-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: production
environment: production
2 changes: 1 addition & 1 deletion hello-sops/k8s/demo/staging-values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase: staging
environment: staging
2 changes: 1 addition & 1 deletion hello-sops/k8s/demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
metadata:
labels:
app: {{ .Values.container.name }}
phase: {{ .Values.phase }}
environment: {{ .Values.environment }}
spec:
containers:
- name: {{ .Values.container.name }}
Expand Down
4 changes: 2 additions & 2 deletions hello-sops/k8s/demo/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ metadata:
name: {{ .Values.container.name }}-secrets
type: Opaque
data:
{{ $phase := .Values.phase }}
secrets.yaml: {{ .Files.Get (nospace (cat $phase "-secrets.yaml")) | b64enc }}
{{ $environment := .Values.environment }}
secrets.yaml: {{ .Files.Get (nospace (cat $environment "-secrets.yaml")) | b64enc }}
2 changes: 1 addition & 1 deletion hello-sops/k8s/demo/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phase: development
environment: development
container:
name: demo
port: 8888
Expand Down
4 changes: 2 additions & 2 deletions terraform/aws/bucket/01/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_s3_bucket" "bucket" {
acl = "private"

tags {
App = "demo"
Phase = "test"
App = "demo"
environment = "test"
}
}
6 changes: 3 additions & 3 deletions terraform/aws/bucket/02/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
provider "aws" {}

resource "aws_s3_bucket" "bucket" {
bucket = "${var.phase}-${var.your_name}-cloudnativedevops-${var.name}-bucket"
bucket = "${var.environment}-${var.your_name}-cloudnativedevops-${var.name}-bucket"
acl = "private"

tags {
App = "${var.name}"
Phase = "${var.phase}"
App = "${var.name}"
environment = "${var.environment}"
}
}
2 changes: 1 addition & 1 deletion terraform/aws/bucket/02/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}

Expand Down
6 changes: 3 additions & 3 deletions terraform/aws/bucket/03/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
provider "aws" {}

resource "aws_s3_bucket" "bucket" {
bucket = "${var.phase}-${var.your_name}-cloudnativedevops-${var.name}-bucket"
bucket = "${var.environment}-${var.your_name}-cloudnativedevops-${var.name}-bucket"
acl = "private"

tags {
App = "${var.name}"
Phase = "${var.phase}"
App = "${var.name}"
environment = "${var.environment}"
}
}
2 changes: 1 addition & 1 deletion terraform/aws/bucket/03/production.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "production"
environment = "production"
2 changes: 1 addition & 1 deletion terraform/aws/bucket/03/staging.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "staging"
environment = "staging"
2 changes: 1 addition & 1 deletion terraform/aws/bucket/03/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}

Expand Down
4 changes: 2 additions & 2 deletions terraform/aws/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "aws_rds_cluster" "db" {
skip_final_snapshot = true

tags {
App = "${var.name}"
Phase = "${var.phase}"
App = "${var.name}"
environment = "${var.environment}"
}
}
2 changes: 1 addition & 1 deletion terraform/aws/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}
6 changes: 3 additions & 3 deletions terraform/aws/vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ resource "aws_instance" "vm" {
instance_type = "t2.micro"

tags {
App = "${var.name}"
Phase = "${var.phase}"
Name = "${var.phase}-${var.name}"
App = "${var.name}"
environment = "${var.environment}"
Name = "${var.environment}-${var.name}"
}
}
2 changes: 1 addition & 1 deletion terraform/aws/vm/production.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "production"
environment = "production"
2 changes: 1 addition & 1 deletion terraform/aws/vm/staging.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "staging"
environment = "staging"
2 changes: 1 addition & 1 deletion terraform/aws/vm/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}
4 changes: 2 additions & 2 deletions terraform/gcp/bucket/01/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "google_storage_bucket" "bucket" {
name = "test-<YOUR_NAME>-cloudnativedevops-demo-bucket"

labels {
app = "demo"
phase = "test"
app = "demo"
environment = "test"
}
}
6 changes: 3 additions & 3 deletions terraform/gcp/bucket/02/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
provider "google" {}

resource "google_storage_bucket" "bucket" {
name = "${var.phase}-${var.your_name}-cloudnativedevops-${var.name}-bucket"
name = "${var.environment}-${var.your_name}-cloudnativedevops-${var.name}-bucket"

labels {
app = "${var.name}"
phase = "${var.phase}"
app = "${var.name}"
environment = "${var.environment}"
}
}
2 changes: 1 addition & 1 deletion terraform/gcp/bucket/02/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/gcp/bucket/03/production.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "production"
environment = "production"
2 changes: 1 addition & 1 deletion terraform/gcp/bucket/03/staging.tfvars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
phase = "staging"
environment = "staging"
2 changes: 1 addition & 1 deletion terraform/gcp/bucket/03/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/gcp/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}
2 changes: 1 addition & 1 deletion terraform/gcp/k8scluster/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
provider "google" {}

resource "google_container_cluster" "k8s-cluster" {
name = "${var.phase}-cloudnativedevops-${var.name}-k8s-cluster"
name = "${var.environment}-cloudnativedevops-${var.name}-k8s-cluster"
initial_node_count = "${var.initial_node_count}"
zone = "${var.zone}"
}
2 changes: 1 addition & 1 deletion terraform/gcp/k8scluster/production.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
phase = "production"
environment = "production"

initial_node_count = 4
2 changes: 1 addition & 1 deletion terraform/gcp/k8scluster/staging.tfvars
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
phase = "staging"
environment = "staging"

initial_node_count = 3
2 changes: 1 addition & 1 deletion terraform/gcp/k8scluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "name" {
default = "demo"
}

variable "phase" {
variable "environment" {
default = "test"
}

Expand Down

0 comments on commit 382f36a

Please sign in to comment.