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

Commit 339d9dd

Browse files
authored
Update deployment yaml file (#39)
* update deployment yaml file * fix spacing * fix spacing
1 parent 097b4fe commit 339d9dd

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

adapter/authserver/authserver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ func (s *RemoteService) UserInfoEndpoint() string {
122122
// GetTokens performs a request to the token endpoint
123123
func (s *RemoteService) GetTokens(authnMethod string, clientID string, clientSecret string, authorizationCode string, redirectURI string, refreshToken string) (*TokenResponse, error) {
124124
_ = s.initialize()
125-
form := url.Values{
126-
"client_id": {clientID},
127-
}
125+
126+
form := url.Values{}
127+
128128
if refreshToken != "" {
129129
form.Add("grant_type", "refresh_token")
130130
form.Add("refresh_token", refreshToken)

adapter/authserver/keyset/keyset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestNew(t *testing.T) {
3939

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

adapter/networking/networking.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
const (
11-
filterType = "xFilterType"
11+
filterType = "x-filter-type"
1212
istioAdapter = "IstioAdapter"
1313
defaultTimeout = 5 * time.Second
1414
)

helm/appidentityandaccessadapter/templates/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: dpl-{{ .Values.appName }}
@@ -7,6 +7,9 @@ metadata:
77
app: {{ .Values.appName }}
88
spec:
99
replicas: {{ .Values.replicaCount }}
10+
selector:
11+
matchLabels:
12+
app: {{ .Values.appName }}
1013
template:
1114
metadata:
1215
labels:

samples/app/sample-app.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
number: 8000
4242
host: svc-sample-app
4343
---
44-
apiVersion: extensions/v1beta1
44+
apiVersion: apps/v1
4545
kind: Deployment
4646
metadata:
4747
name: dpl-sample-app
@@ -50,6 +50,9 @@ metadata:
5050
app: sample-app
5151
spec:
5252
replicas: 1
53+
selector:
54+
matchLabels:
55+
app: sample-app
5356
template:
5457
metadata:
5558
labels:

0 commit comments

Comments
 (0)