Skip to content

Commit

Permalink
Merge pull request #290 from overmindtech/improve-hcp-info
Browse files Browse the repository at this point in the history
Added more info to the HCP config
  • Loading branch information
dylanratcliffe authored Nov 29, 2024
2 parents 0899d68 + 5338b84 commit 3fc358d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ message ChangeProperties {

// Repo information; can be an empty string. CLI attempts auto-population, but users can override. Not necessarily a URL. The UI will be responsible for any formatting/shortnening/sprucing up should it be required.
string repo = 15;

// User-defined tags associated with this change, will be populated via the CLI and not the UI.
map<string, string> tags = 16;
}
Expand Down
16 changes: 16 additions & 0 deletions config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ message CreateHcpConfigRequest {
}

message CreateHcpConfigResponse {
// The configuration of the HCP Run Task that was created
HcpConfig config = 1;

// The API Key response for the API key that backs this integration. This
// API will have been created but not yet authorised, the user must still be
// redirected to the authorizeURL to complete the process.
apikeys.CreateAPIKeyResponse apiKey = 2;
}

Expand All @@ -110,6 +115,17 @@ message GetHcpConfigRequest {}

message GetHcpConfigResponse {
HcpConfig config = 1;

enum Status {
// The HCP Run Task configuration is active and can be used
CONFIGURED = 0;
// The HCP Run Task configuration is not fully configured and needs to
// be recreated, this is usually due to the API key being revoked or the
// user not completing the authorisation process
ERROR = 1;
}

Status status = 2;
}

message DeleteHcpConfigRequest {}
Expand Down

0 comments on commit 3fc358d

Please sign in to comment.