Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Update deployment yaml file (#39)
Browse files Browse the repository at this point in the history
* update deployment yaml file

* fix spacing

* fix spacing
  • Loading branch information
ishangulhane authored Jan 29, 2020
1 parent 097b4fe commit 339d9dd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions adapter/authserver/authserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (s *RemoteService) UserInfoEndpoint() string {
// GetTokens performs a request to the token endpoint
func (s *RemoteService) GetTokens(authnMethod string, clientID string, clientSecret string, authorizationCode string, redirectURI string, refreshToken string) (*TokenResponse, error) {
_ = s.initialize()
form := url.Values{
"client_id": {clientID},
}

form := url.Values{}

if refreshToken != "" {
form.Add("grant_type", "refresh_token")
form.Add("refresh_token", refreshToken)
Expand Down
2 changes: 1 addition & 1 deletion adapter/authserver/keyset/keyset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestNew(t *testing.T) {

h := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
assert.Equal(t, req.URL.String(), "/publicKeys")
assert.Equal(t, req.Header.Get("xFilterType"), "IstioAdapter")
assert.Equal(t, req.Header.Get("x-filter-type"), "IstioAdapter")
w.Write([]byte(e.res))
})

Expand Down
2 changes: 1 addition & 1 deletion adapter/networking/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
filterType = "xFilterType"
filterType = "x-filter-type"
istioAdapter = "IstioAdapter"
defaultTimeout = 5 * time.Second
)
Expand Down
5 changes: 4 additions & 1 deletion helm/appidentityandaccessadapter/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: dpl-{{ .Values.appName }}
Expand All @@ -7,6 +7,9 @@ metadata:
app: {{ .Values.appName }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Values.appName }}
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion samples/app/sample-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
number: 8000
host: svc-sample-app
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: dpl-sample-app
Expand All @@ -50,6 +50,9 @@ metadata:
app: sample-app
spec:
replicas: 1
selector:
matchLabels:
app: sample-app
template:
metadata:
labels:
Expand Down

0 comments on commit 339d9dd

Please sign in to comment.