Skip to content

Commit

Permalink
feat: [PLG-3110] Updating scope for Cluster and Environment linking (#60
Browse files Browse the repository at this point in the history
)

* feat: [PLG-3110] Adding support for linking a clusterId with an environmentId

Command looks like:
`./harness gitops-cluster link --cluster-id gitopscluster --environment-id harnessdevenv --project-id cmdProject --agent-identifier gitopsagentdec20`
Usage:
`./harness gitops-cluster link help`
NAME:
   harness gitops-cluster link - Links a GitOps-cluster with an environment.

USAGE:
   harness gitops-cluster link [command options] [arguments...]

OPTIONS:
   --agent-identifier value  provide GitOps Agent Identifier.
   --cluster-id value        provide a Cluster Identifier.
   --environment-id value    provide an Environment Identifier.
   --org-id value            provide an Organization Identifier.
   --project-id value        provide a Project Identifier.
   --help, -h                show help

* feat: [PLG-3110] Updating scope for Cluster and Environment linking
  • Loading branch information
neelam-harness authored Dec 27, 2023
1 parent c7b7c45 commit 2b988bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitops-cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func createClusterEnvPayload(clusterId string, orgId string,
OrgIdentifier: orgId,
ProjectIdentifier: projId,
EnvRef: envId,
Scope: "ACCOUNT",
Scope: "PROJECT",
}
}

Expand Down

0 comments on commit 2b988bf

Please sign in to comment.