SMARCH-112 feat: read docker images directly from harbor

master
Ketelsen, Sven 4 years ago
parent a2ae01cac3
commit 1e2dfc3212

@ -13,3 +13,10 @@ connect_connections:
authType: "BASIC_AUTH" authType: "BASIC_AUTH"
username: "{{ awx_admin_username }}" username: "{{ awx_admin_username }}"
password: "{{ awx_admin_password }}" password: "{{ awx_admin_password }}"
- id: "harbor"
name: "Harbor"
url: "https://{{ shared_service_harbor_hostname }}/v2/"
connectionType: "HTTP"
authType: "BASIC_AUTH"
username: "{{ harbor_admin_username }}"
password: "{{ harbor_admin_password }}"

@ -1 +0,0 @@
{"name":"connect-versions","restApi":true,"configKey":"connect-versions","payloadType":"EXCEL","config":[{"name":"file","type":"FILE","value":"connect-versions.xlsx"},{"name":"columnNames","type":"STRING","value":"label,value"},{"name":"sqlStatement","type":"STRING","value":"SELECT * from version"},{"name":"columnNameLineNumber","type":"INT","value":1},{"name":"skipEmptyLines","type":"BOOLEAN","value":false},{"name":"skipEmptyColumns","type":"BOOLEAN","value":false}]}

@ -0,0 +1,21 @@
{
"name" : "whitelabel-docker-image-tags-plain",
"restApi" : true,
"configKey" : "whitelabel-docker-image-tags-plain",
"payloadType" : "REST",
"config" : [ {
"name" : "connection",
"type" : "CONNECTION",
"value" : "harbor"
},
{
"name" : "resource",
"type" : "STRING",
"value" : "/smardigo/connect-whitelabel-app/tags/list"
},
{
"name" : "sqlStatement",
"type" : "STRING",
"value" : "SELECT * FROM default_table"
} ]
}

@ -0,0 +1,16 @@
{
"name" : "whitelabel-docker-image-tags",
"restApi" : true,
"configKey" : "whitelabel-docker-image-tags",
"payloadType" : "POST_PROCESSING",
"config" : [ {
"name" : "datasource_key",
"type" : "STRING",
"value" : "whitelabel-docker-image-tags-plain"
},
{
"name" : "groovy_script",
"type" : "STRING",
"value" : "def result = []\ndata.each{values ->\n values.tags.each{ value ->\n result.add([value: value, label: value])\n }\n}\nresult"
} ]
}

@ -892,7 +892,7 @@
"type" : "select", "type" : "select",
"input" : true, "input" : true,
"key" : "version", "key" : "version",
"defaultValue" : "8.5.26", "defaultValue" : "latest",
"validate" : { "validate" : {
"select" : false, "select" : false,
"customMessage" : "", "customMessage" : "",
@ -908,7 +908,7 @@
"eq" : "" "eq" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/connect-versions/query", "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/whitelabel-docker-image-tags/query",
"headers" : [ { "headers" : [ {
"key" : "", "key" : "",
"value" : "" "value" : ""
@ -931,7 +931,7 @@
"tags" : null, "tags" : null,
"customConditional" : "", "customConditional" : "",
"logic" : [ ], "logic" : [ ],
"customDefaultValue" : "value='8.5.26'", "customDefaultValue" : "value='latest'",
"reorder" : false, "reorder" : false,
"reference" : false, "reference" : false,
"placeholder" : "", "placeholder" : "",

Loading…
Cancel
Save