caicloud/cyclone

There are duplicated integration instances

supereagle opened this issue · 1 comments

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

What happened:

image

There is only one in the result of REST API:

{
    "metadata": {
        "total": 1,
        "itemsLength": 1
    },
    "items": [
        {
            "metadata": {
                "name": "gitlab",
                "namespace": "cyclone-system",
                "selfLink": "/api/v1/namespaces/cyclone-system/secrets/gitlab",
                "uid": "6b50b65b-7f8f-11e9-b8e7-025000000001",
                "resourceVersion": "658632",
                "creationTimestamp": "2019-05-26T08:22:36Z",
                "labels": {
                    "integration.cyclone.dev/type": "SCM"
                },
                "annotations": {
                    "cyclone.dev/alias": "gitlab",
                    "cyclone.dev/description": ""
                }
            },
            "spec": {
                "type": "SCM",
                "scm": {
                    "type": "GitLab",
                    "server": "http://192.168.21.96:10081",
                    "user": "root",
                    "password": "",
                    "token": "ce651de88a63d856471b75d08e7bc1c73f5ec11f6917e9b441a6193b0ac19036",
                    "authType": "Password"
                }
            }
        }
    ]
}

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
/assign @huxiangtao
/priority p0

Have fixed

/close