Skip to content

Commit

Permalink
Use Istio port name naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
sathieu committed Oct 26, 2021
1 parent 62cfb26 commit c121bc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kubeseal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func openCertURI(uri string) (io.ReadCloser, error) {
func openCertCluster(c corev1.CoreV1Interface, namespace, name string) (io.ReadCloser, error) {
f, err := c.
Services(namespace).
ProxyGet("http", name, "", "/v1/cert.pem", nil).
ProxyGet("http", name, "http", "/v1/cert.pem", nil).
Stream()
if err != nil {
return nil, fmt.Errorf("cannot fetch certificate: %v", err)
Expand Down
3 changes: 2 additions & 1 deletion helm/sealed-secrets/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
{{- end }}
spec:
ports:
- port: 8080
- name: http
port: 8080
targetPort: 8080
selector:
app.kubernetes.io/name: {{ template "sealed-secrets.name" . }}
Expand Down

0 comments on commit c121bc8

Please sign in to comment.