Skip to content

Commit

Permalink
Use ingress instead of url as config key
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jul 11, 2022
1 parent fd2ef70 commit 3a68b4a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/clusters/2i2c/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ staticWebsite:
git:
repo: https://github.com/yuvipanda/test-repo-push
branch: master
url:
ingress:
host: staging.2i2c.cloud
path: /textbook
githubAuth:
Expand Down
4 changes: 2 additions & 2 deletions docs/howto/features/static-sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ staticWebsite:
git:
repo: <url-of-git-repo>
branch: <name-of-git-branch>
url:
ingress:
host: <hostname-of-hub>
path: <absolute-path-where-content-is-available>

Expand Down Expand Up @@ -61,7 +61,7 @@ staticWebsite:
git:
repo: https://github.com/inferentialthinking/inferentialthinking.github.io
branch: master
url:
ingress:
host: staging.2i2c.cloud
path: /textbook

Expand Down
2 changes: 1 addition & 1 deletion helm-charts/basehub/templates/static/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data:
nginx.conf: |
server {
listen 8080;
location {{ .Values.staticWebsite.url.path }} {
location {{ .Values.staticWebsite.ingress.path }} {
index index.html;
alias /srv/content/repo;
}
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/basehub/templates/static/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: {{ .Values.staticWebsite.url.host }}
- host: {{ .Values.staticWebsite.ingress.host }}
http:
paths:
- path: {{ .Values.staticWebsite.url.path }}
- path: {{ .Values.staticWebsite.ingress.path }}
pathType: Prefix
backend:
service:
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/basehub/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ properties:
type: string
description: |
Private RSA key created to authenticate as this GitHuba pp
url:
ingress:
type: object
additionalProperties: false
description: |
URL where this static website should be available
Configuration for the ingress that gets traffic into the static site
properties:
host:
type: string
Expand Down

0 comments on commit 3a68b4a

Please sign in to comment.