diff --git a/lib/remoteResource.js b/lib/remoteResource.js index 726ed78..48e1677 100644 --- a/lib/remoteResource.js +++ b/lib/remoteResource.js @@ -62,7 +62,6 @@ const createRemoteResources = async (razeeApi, apiKey, subscriptions, clusterId) } }; remoteResourceJson.spec.requests.push(parsed); - const secretJson = { 'apiVersion': 'v1', 'kind': 'Secret', @@ -70,7 +69,7 @@ const createRemoteResources = async (razeeApi, apiKey, subscriptions, clusterId) 'namespace': NAMESPACE, 'name': secretName, 'annotations': { - 'deploy.razee.io/clustersubscription': sub.subscriptionUuid, + 'deploy.razee.io/clustersubscription-secret': sub.subscriptionUuid, 'deploy.razee.io/clusterid': clusterId }, 'labels': { @@ -84,7 +83,6 @@ const createRemoteResources = async (razeeApi, apiKey, subscriptions, clusterId) await applyResource(secretJson); await applyResource(remoteResourceJson); - })); } catch (error) {