-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
244 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Apply Network Policies on Silver Prod | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/apply-silver-prod.yml | ||
- network-policies/silver/prod/** | ||
|
||
env: | ||
NAMESPACE: b5395d-prod | ||
|
||
jobs: | ||
apply: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
permissions: | ||
contents: read | ||
environment: | ||
name: silver-prod | ||
|
||
steps: | ||
- uses: hmarr/debug-action@a701ed95a46e6f2fb0df25e1a558c16356fae35a | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Apply Terraform | ||
uses: ./.github/actions/apply-terraform | ||
with: | ||
context: network-policies/silver/prod | ||
namespace: ${{ env.NAMESPACE }} | ||
openshift-server-url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift-token: ${{ secrets.OPENSHIFT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Apply Network Policies on Silver Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/apply-silver-test.yml | ||
- network-policies/silver/test/** | ||
|
||
env: | ||
NAMESPACE: b5395d-test | ||
|
||
jobs: | ||
apply: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
permissions: | ||
contents: read | ||
environment: | ||
name: silver-test | ||
|
||
steps: | ||
- uses: hmarr/debug-action@a701ed95a46e6f2fb0df25e1a558c16356fae35a | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: Apply Terraform | ||
uses: ./.github/actions/apply-terraform | ||
with: | ||
context: network-policies/silver/test | ||
namespace: ${{ env.NAMESPACE }} | ||
openshift-server-url: ${{ secrets.OPENSHIFT_SERVER }} | ||
openshift-token: ${{ secrets.OPENSHIFT_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
terraform { | ||
required_version = ">= 1.6.2" | ||
|
||
backend "kubernetes" { | ||
namespace = "b5395d-prod" | ||
secret_suffix = "network-policies" # pragma: allowlist secret | ||
config_path = "~/.kube/config" | ||
} | ||
|
||
required_providers { | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = "=2.23.0" | ||
} | ||
} | ||
} | ||
|
||
provider "kubernetes" { | ||
config_path = "~/.kube/config" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module "fdf5df" { | ||
source = "./network-policy" | ||
license_plate = "fdf5df" | ||
} |
22 changes: 22 additions & 0 deletions
22
network-policies/silver/prod/network-policy/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
terraform { | ||
required_version = ">= 1.6.2" | ||
|
||
required_providers { | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = "=2.23.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module "network_policy" { | ||
source = "../../../_modules/network-policy" | ||
|
||
license_plate = "b5395d" | ||
environment = "prod" | ||
target_license_plate = var.license_plate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "license_plate" { | ||
description = "The namespace's license plate that has access to ClamAV instances" | ||
type = string | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
terraform { | ||
required_version = ">= 1.6.2" | ||
|
||
backend "kubernetes" { | ||
namespace = "b5395d-test" | ||
secret_suffix = "network-policies" # pragma: allowlist secret | ||
config_path = "~/.kube/config" | ||
} | ||
|
||
required_providers { | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = "=2.23.0" | ||
} | ||
} | ||
} | ||
|
||
provider "kubernetes" { | ||
config_path = "~/.kube/config" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module "fdf5df" { | ||
source = "./network-policy" | ||
license_plate = "fdf5df" | ||
} |
22 changes: 22 additions & 0 deletions
22
network-policies/silver/test/network-policy/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
terraform { | ||
required_version = ">= 1.6.2" | ||
|
||
required_providers { | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = "=2.23.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module "network_policy" { | ||
source = "../../../_modules/network-policy" | ||
|
||
license_plate = "b5395d" | ||
environment = "test" | ||
target_license_plate = var.license_plate | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "license_plate" { | ||
description = "The namespace's license plate that has access to ClamAV instances" | ||
type = string | ||
} |