Skip to content

Commit 5f10bf5

Browse files
inital setup
1 parent 79ca7ae commit 5f10bf5

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
3030
- name: Bump version and push tag
3131
uses: anothrNick/[email protected]
32+
id: tag
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3435

main.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#-----------#
2+
# Resources #
3+
#-----------#
4+
5+
resource kubernetes_namespace this {
6+
metadata {
7+
name = var.name
8+
9+
labels = {
10+
name = var.name
11+
description = var.description
12+
}
13+
}
14+
}

outputs.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#---------#
2+
# Outputs #
3+
#---------#
4+
output "name" {
5+
value = kubernetes_namespace.this.metadata[0].name
6+
description = "Namespace name"
7+
}

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#-----------#
2+
# Variables #
3+
#-----------#
4+
variable "name" {
5+
description = "namespace name"
6+
}
7+
8+
variable "description" {
9+
description = "description to add"
10+
}

0 commit comments

Comments
 (0)