-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingress configuration in Helm chart #7
Conversation
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
charts/templates/ingress.yaml
Outdated
tls: | ||
- hosts: | ||
- {{ .Values.ingress.host }} | ||
secretName: {{ include "coral-credits.ingress.tls.secretName" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to define this in helpers.tpl (and allow override from values.yaml)
885d249
to
7f717ca
Compare
It would be nice for the functional test to reflect this. I guess that would involve adding an nginx onto the kind cluster |
charts/templates/ingress.yaml
Outdated
annotations: | ||
{{ .Values.ingress.annotations }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you might need something like:
{{- with .Values.ingress.annotions }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you adapt the functional test as well to install an nginx ingress controller and test this endpoint instead of the current port forwarding?
You should be able to just add a helm command that replicates the functionality of azimuth-ops:
https://github.com/stackhpc/ansible-collection-azimuth-ops/blob/500e98bc4ff8c93e8a75207f9908e483a737c866/roles/ingress_nginx/tasks/main.yml#L3-L14
f124fbb
to
1150fa5
Compare
I think this will get fixed when you configure nginx and inject values in the functional test |
5e547e5
to
8b06bc5
Compare
@assumptionsandg this may be useful to look at https://kind.sigs.k8s.io/docs/user/ingress/. also I normally use https://github.com/lhotari/action-upterm for debugging issues in actions |
3ea4916
to
bcc0e4f
Compare
4244f5e
to
ecddc2e
Compare
charts/templates/ingress.yaml
Outdated
- host: {{ .Values.ingress.host }} | ||
http: | ||
paths: | ||
- path: {{ .Values.ingress.path }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets hard code this to "/" I think?
charts/values.yaml
Outdated
# The hostname to use for the portal | ||
host: | ||
# The path for the coral credits API | ||
path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove the path config for now, I think, keep it simple.
charts/values.yaml
Outdated
@@ -104,6 +123,7 @@ replicaCount: 1 | |||
|
|||
# Service details for the api | |||
service: | |||
name: coral-credits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we not call this http?
214fb1b
to
5efecb7
Compare
51be4a1
to
c00604e
Compare
c00604e
to
68a5461
Compare
LGTM |
No description provided.