File tree Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+
3
+ ## v1.1.8 (22.03.2023)
4
+ * Add GOOGLE_REGISTRY_HOST and GOOGLE_JSON_KEY to report-image-info
2
5
3
6
## v1.1.8 (28.02.2023)
4
7
* Using @codefresh-io/cf-report-image-toolbox library
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ Report image info to argo platform.
20
20
* GCR_KEY_FILE_PATH (required) - JSON key for authenticating to a Google GCR
21
21
* GCR_KEY_SECRET (required) - The Kubernetes secret containing the GCR key information. Default is 'gcr-key-file'
22
22
* GCR_KEY_SECRET_KEY (optional) - The key in the Kubernetes secret containing the GCR key information. Default is '.keyjson'
23
+ * GOOGLE_REGISTRY_HOST (optional) - The host to Google GCR or Google ACR. Default is 'gcr.io'
24
+ * GOOGLE_JSON_KEY (required) - The Kubernetes secret with the JSON key for authenticating to a Google GCR or Google ACR
25
+ * GOOGLE_KEY_SECRET_KEY (optional) The key in the Kubernetes secret with Google JSON key. Default is 'keyjson'
23
26
* AWS_ACCESS_KEY (required) - The Kubernetes secret with the Amazon access key
24
27
* AWS_ACCESS_KEY_SECRET_KEY (optional) - The key in the Kubernetes secret with the Amazon access key. Default is 'aws-access-key'
25
28
* AWS_SECRET_KEY (required) - The Kubernetes secret with the Amazon secret key
Original file line number Diff line number Diff line change 10
10
"node" : " 18.12.1"
11
11
},
12
12
"dependencies" : {
13
- "@codefresh-io/cf-report-image-toolbox" : " ^1.0.0 " ,
13
+ "@codefresh-io/cf-report-image-toolbox" : " ^1.0.4 " ,
14
14
"joi" : " ^17.6.0"
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ const inputs = {
37
37
}
38
38
} ,
39
39
gcr : {
40
+ host : process . env . GOOGLE_REGISTRY_HOST ?. trim ( ) ,
41
+ json : process . env . GOOGLE_JSON_KEY ?. trim ( ) ,
40
42
keyFilePath : process . env . GCR_KEY_FILE_PATH ?. trim ( ) ,
41
43
} ,
42
44
retrieveCredentialsByDomain : process . env . RETRIEVE_CREDENTIALS_BY_DOMAIN ?. trim ( ) === 'true'
Original file line number Diff line number Diff line change 665
665
" @aws-sdk/util-buffer-from" " 3.208.0"
666
666
tslib "^2.3.1"
667
667
668
- " @codefresh-io/cf-report-image-toolbox@^1.0.0 " :
669
- version "1.0.0 "
670
- resolved "https://registry.yarnpkg.com/@codefresh-io/cf-report-image-toolbox/-/cf-report-image-toolbox-1.0.0 .tgz#3f8c6394e5e82d044826f2d751b04a9c776b153f "
671
- integrity sha512-LncgfLcTv+M4aPqOl+rUU0PoMIwRP1pe6OIvd9yAiZYC52cY5FV7gfApGrKFtGtTMqbLK4MBW2/f03DzF4qp2Q ==
668
+ " @codefresh-io/cf-report-image-toolbox@^1.0.4 " :
669
+ version "1.0.4 "
670
+ resolved "https://registry.yarnpkg.com/@codefresh-io/cf-report-image-toolbox/-/cf-report-image-toolbox-1.0.4 .tgz#823a22484094e65d203ab559a9635ce1c28790cf "
671
+ integrity sha512-80YxS+ADLxP+atLupDJsHaMLzc2imylYf75h0CtwEG0eSUPxTdw5J66Sx5fk2i+IuKwyD5m3U0AeGvpQ6sDxDg ==
672
672
dependencies :
673
673
" @aws-sdk/client-sts" " ^3.272.0"
674
674
" @codefresh-io/docker-reference" " ^0.0.11"
Original file line number Diff line number Diff line change @@ -297,6 +297,12 @@ spec:
297
297
default : ' gcr-key-file'
298
298
- name : GCR_KEY_SECRET_KEY
299
299
default : ' .keyjson'
300
+ - name : GOOGLE_REGISTRY_HOST
301
+ default : ' gcr.io'
302
+ - name : GOOGLE_JSON_KEY
303
+ default : ' cf-not-exist'
304
+ - name : GOOGLE_KEY_SECRET_KEY
305
+ default : ' keyjson'
300
306
- name : DOCKER_CONFIG_SECRET
301
307
default : ' docker-registry'
302
308
- name : DOCKER_CONFIG_SECRET_KEY
@@ -340,6 +346,14 @@ spec:
340
346
value : ' {{ inputs.parameters.CF_HOST_URL }}'
341
347
- name : GCR_KEY_FILE_PATH
342
348
value : ' {{ inputs.parameters.GCR_KEY_FILE_PATH }}'
349
+ - name : GOOGLE_REGISTRY_HOST
350
+ value : ' {{ inputs.parameters.GOOGLE_REGISTRY_HOST }}'
351
+ - name : GOOGLE_JSON_KEY
352
+ valueFrom :
353
+ secretKeyRef :
354
+ name : ' {{ inputs.parameters.GOOGLE_JSON_KEY }}'
355
+ optional : true
356
+ key : ' {{ inputs.parameters.GOOGLE_KEY_SECRET_KEY }}'
343
357
- name : DOCKER_CONFIG_FILE_PATH
344
358
value : ' {{ inputs.parameters.DOCKER_CONFIG_FILE_PATH }}'
345
359
- name : RETRIEVE_CREDENTIALS_BY_DOMAIN
You can’t perform that action at this time.
0 commit comments