File tree Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,9 @@ For Git:
61
61
``` sh
62
62
kubectl create secret generic git-repository-auth \
63
63
--namespace=default \
64
+ --type=kubernetes.io/basic-auth \
64
65
--from-literal=username=< GitHub username> \
65
- --from-literal=token =< GitHub Personal Access Token>
66
+ --from-literal=password =< GitHub Personal Access Token>
66
67
```
67
68
* Update the [ git-repository.yaml] ( ./config/samples/git-repository.yaml ) with your repository address
68
69
* Register the repository:
Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ func (t *PorchSuite) TestGitRepository(ctx context.Context) {
87
87
"username" : []byte (config .Username ),
88
88
"password" : []byte (config .Password ),
89
89
},
90
- // TODO: Store as SecretTypeBasicAuth ?
91
90
Type : coreapi .SecretTypeBasicAuth ,
92
91
})
93
92
Original file line number Diff line number Diff line change @@ -28,14 +28,20 @@ spec:
28
28
app : function-runner
29
29
spec :
30
30
containers :
31
- - name : function-runner
32
- image : gcr.io/example-google-project-id/function-runner:latest
33
- imagePullPolicy : Always
34
- ports :
35
- - containerPort : 9445
31
+ - name : function-runner
32
+ image : gcr.io/example-google-project-id/function-runner:latest
33
+ imagePullPolicy : Always
34
+ ports :
35
+ - containerPort : 9445
36
+ resources :
37
+ requests :
38
+ memory : " 32Mi"
39
+ cpu : " 125m"
40
+ limits :
41
+ memory : " 64Mi"
42
+ cpu : " 500m"
36
43
37
44
---
38
-
39
45
apiVersion : v1
40
46
kind : Service
41
47
metadata :
45
51
selector :
46
52
app : function-runner
47
53
ports :
48
- - port : 9445
49
- protocol : TCP
50
- targetPort : 9445
54
+ - port : 9445
55
+ protocol : TCP
56
+ targetPort : 9445
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
-
16
15
kind : ServiceAccount
17
16
apiVersion : v1
18
17
metadata :
19
18
name : porch-server
20
19
namespace : porch-system
21
20
22
21
---
23
-
24
22
apiVersion : apps/v1
25
23
kind : Deployment
26
24
metadata :
@@ -39,23 +37,38 @@ spec:
39
37
apiserver : " true"
40
38
spec :
41
39
serviceAccountName : porch-server
40
+ volumes :
41
+ - name : cache-volume
42
+ emptyDir : {}
42
43
containers :
43
- - name : porch-server
44
- # Update image to the image of your porch apiserver build.
45
- image : gcr.io/example-google-project-id/porch-server:latest
46
- imagePullPolicy : Always
44
+ - name : porch-server
45
+ # Update image to the image of your porch apiserver build.
46
+ image : gcr.io/example-google-project-id/porch-server:latest
47
+ imagePullPolicy : Always
48
+ resources :
49
+ requests :
50
+ memory : " 64Mi"
51
+ cpu : " 250m"
52
+ limits :
53
+ memory : " 128Mi"
54
+ cpu : " 1000m"
55
+ volumeMounts :
56
+ - mountPath : /cache
57
+ name : cache-volume
58
+ args :
59
+ - --function-runner=function-runner:9445
60
+ - --cache-directory=/cache
47
61
48
62
---
49
-
50
63
apiVersion : v1
51
64
kind : Service
52
65
metadata :
53
66
name : api
54
67
namespace : porch-system
55
68
spec :
56
69
ports :
57
- - port : 443
58
- protocol : TCP
59
- targetPort : 443
70
+ - port : 443
71
+ protocol : TCP
72
+ targetPort : 443
60
73
selector :
61
74
apiserver : " true"
Original file line number Diff line number Diff line change 31
31
#
32
32
# kubectl create secret generic git-repository-auth \
33
33
# --namespace=default \
34
+ # --type=kubernetes.io/basic-auth \
34
35
# --from-literal=username=<GitHub username> \
35
- # --from-literal=token =<GitHub Personal Access Token>
36
+ # --from-literal=password =<GitHub Personal Access Token>
36
37
name : git-repository-auth
You can’t perform that action at this time.
0 commit comments