Skip to content

Commit caa620d

Browse files
authored
fix: service in wrong namespace (#4)
1 parent 5683efd commit caa620d

File tree

8 files changed

+49
-16
lines changed

8 files changed

+49
-16
lines changed

.github/workflows/documentation.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
git-push: "true"
1616
config-file: .terraform-docs.yml
1717
output-file: README.md
18-
output-method: replace
18+
output-method: replace

.github/workflows/terraform.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ jobs:
3838
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
3939
#### Terraform Validation 🤖${{ steps.validate.outputs.stdout }}
4040
#### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
41-
41+
4242
<details><summary>Show Plan</summary>
43-
43+
4444
\`\`\`${process.env.PLAN}\`\`\`
45-
45+
4646
</details>
47-
47+
4848
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;
49-
49+
5050
github.issues.createComment({
5151
issue_number: context.issue.number,
5252
owner: context.repo.owner,
5353
repo: context.repo.repo,
5454
body: output
55-
})
55+
})

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ override.tf.json
2929
# example: *tfplan*
3030
.terraform/
3131
**/*.log
32-
**/*.hcl
32+
**/*.hcl

.header.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ KUBE_CONFIG_PATH=~/.kube/config terraform apply
2222
### Stack Deletion
2323

2424
```bash
25-
KUBE_CONFIG_PATH=~/.kube/config terraform destroy
25+
KUBE_CONFIG_PATH=~/.kube/config terraform destroy
2626
```
2727

2828
## Known Issues
2929

3030
- Why do you have to explicitly export the Kubernetes config?
3131

32-
I found that hardcoding the kubeconfig led to [this terraform bug](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1234).
32+
I found that hardcoding the kubeconfig led to [this terraform bug](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1234).

.pre-commit-config.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-executables-have-shebangs
7+
- id: check-json
8+
- id: pretty-format-json
9+
- id: check-merge-conflict
10+
- id: check-symlinks
11+
- id: check-toml
12+
- id: check-vcs-permalinks
13+
- id: check-xml
14+
- id: check-yaml
15+
- id: destroyed-symlinks
16+
- id: detect-private-key
17+
- id: end-of-file-fixer
18+
- id: mixed-line-ending
19+
- id: sort-simple-yaml
20+
- id: trailing-whitespace
21+
- repo: https://github.com/Yelp/detect-secrets
22+
rev: v1.1.0
23+
hooks:
24+
- id: detect-secrets

.terraform-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ output:
1111
file: README.md
1212
mode: replace
1313
template: |-
14-
{{ .Content }}
14+
{{ .Content }}

.testfaster.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pachyderm + Minio
1+
name: Feast - Combinator Component
22
base:
33
kernel_image: quay.io/testfaster/ignite-kernel
44
os_dockerfile: |-
@@ -54,4 +54,4 @@ launch:
5454
port: 31888
5555
homepage: |
5656
## Follow the tutorial below
57-
Click the buttons above.
57+
Click the buttons above.

examples/testfaster/main.tf

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1+
variable "namespace" {
2+
description = "(Optional) The namespace to install into. Defaults to feast."
3+
type = string
4+
default = "feast"
5+
}
6+
17
module "feast" {
2-
source = "combinator-ml/feast/k8s"
8+
source = "combinator-ml/feast/k8s"
9+
namespace = var.namespace
310
}
411

512
resource "kubernetes_service" "jupyter" {
613
metadata {
7-
name = "testfaster-jupyter"
14+
name = "testfaster-jupyter"
15+
namespace = var.namespace
816
}
917
spec {
1018
selector = {
1119
app = "feast-jupyter"
1220
}
1321
port {
14-
port = 31888
22+
port = 8888
1523
target_port = 8888
24+
node_port = 31888
1625
}
1726
type = "NodePort"
1827
}

0 commit comments

Comments
 (0)