Skip to content

Commit 2c9284b

Browse files
authored
add metadata to deployment target (#243)
* add metadata to deployment target * remove title
1 parent fe766a8 commit 2c9284b

12 files changed

+2368
-1943
lines changed

Diff for: generated/go/porter/v1/cluster_control_plane.pb.go

+1,172-1,154
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/go/porter/v1/deployment_target.pb.go

+459
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/go/porter/v1/porter_app.pb.go

+435-633
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/js/src/porter/v1/cluster_control_plane_pb.d.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import type { AWSVpc, EKSPreflightValues } from "./eks_pb.js";
1212
import type { Error } from "./errors_pb.js";
1313
import type { Contract, ContractRevision } from "./contract_pb.js";
1414
import type { ContractComplianceCheckGroup, EnumComplianceProfile, EnumComplianceVendor, VendorComplianceCheck } from "./compliance_pb.js";
15-
import type { AppImage, Build, Deletions, DeploymentTarget, DeploymentTargetIdentifier, EnumAppRevisionStatus, EnvGroup, EnvGroupVariables, EnvVariableDeletions, JobRun, PorterApp } from "./porter_app_pb.js";
15+
import type { AppImage, Build, Deletions, EnumAppRevisionStatus, EnvGroup, EnvGroupVariables, EnvVariableDeletions, JobRun, PorterApp } from "./porter_app_pb.js";
16+
import type { DeploymentTarget, DeploymentTargetIdentifier, DeploymentTargetMeta } from "./deployment_target_pb.js";
1617
import type { Addon, PrerequisiteAddon } from "./addons_pb.js";
1718
import type { AppEventType } from "./agent_app_event_types_pb.js";
1819
import type { Alert } from "./prometheus_alerts_pb.js";
@@ -3624,6 +3625,13 @@ export declare class CreateDeploymentTargetRequest extends Message<CreateDeploym
36243625
*/
36253626
isPreview: boolean;
36263627

3628+
/**
3629+
* metadata is a metadata object that can be used to store additional information about the deployment target
3630+
*
3631+
* @generated from field: porter.v1.DeploymentTargetMeta metadata = 6;
3632+
*/
3633+
metadata?: DeploymentTargetMeta;
3634+
36273635
constructor(data?: PartialMessage<CreateDeploymentTargetRequest>);
36283636

36293637
static readonly runtime: typeof proto3;

Diff for: generated/js/src/porter/v1/cluster_control_plane_pb.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import { AWSVpc, EKSPreflightValues } from "./eks_pb.js";
1111
import { Error } from "./errors_pb.js";
1212
import { Contract, ContractRevision } from "./contract_pb.js";
1313
import { ContractComplianceCheckGroup, EnumComplianceProfile, EnumComplianceVendor, VendorComplianceCheck } from "./compliance_pb.js";
14-
import { AppImage, Build, Deletions, DeploymentTarget, DeploymentTargetIdentifier, EnumAppRevisionStatus, EnvGroup, EnvGroupVariables, EnvVariableDeletions, JobRun, PorterApp } from "./porter_app_pb.js";
14+
import { AppImage, Build, Deletions, EnumAppRevisionStatus, EnvGroup, EnvGroupVariables, EnvVariableDeletions, JobRun, PorterApp } from "./porter_app_pb.js";
15+
import { DeploymentTarget, DeploymentTargetIdentifier, DeploymentTargetMeta } from "./deployment_target_pb.js";
1516
import { Addon, PrerequisiteAddon } from "./addons_pb.js";
1617
import { AppEventType } from "./agent_app_event_types_pb.js";
1718
import { Alert } from "./prometheus_alerts_pb.js";
@@ -1208,6 +1209,7 @@ export const CreateDeploymentTargetRequest = /*@__PURE__*/ proto3.makeMessageTyp
12081209
{ no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12091210
{ no: 4, name: "cluster_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
12101211
{ no: 5, name: "is_preview", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1212+
{ no: 6, name: "metadata", kind: "message", T: DeploymentTargetMeta },
12111213
],
12121214
);
12131215

Diff for: generated/js/src/porter/v1/deployment_target_pb.d.ts

+182
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
// @generated by protoc-gen-es v1.9.0
2+
// @generated from file porter/v1/deployment_target.proto (package porter.v1, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7+
import { Message, proto3 } from "@bufbuild/protobuf";
8+
9+
/**
10+
* DeploymentTargetIdentifier is the object that identifies a deployment target. One of id or name must be provided, with id taking precedence.
11+
*
12+
* @generated from message porter.v1.DeploymentTargetIdentifier
13+
*/
14+
export declare class DeploymentTargetIdentifier extends Message<DeploymentTargetIdentifier> {
15+
/**
16+
* id is the id of the deployment target
17+
*
18+
* @generated from field: string id = 1;
19+
*/
20+
id: string;
21+
22+
/**
23+
* name is the name of the deployment target
24+
*
25+
* @generated from field: string name = 2;
26+
*/
27+
name: string;
28+
29+
constructor(data?: PartialMessage<DeploymentTargetIdentifier>);
30+
31+
static readonly runtime: typeof proto3;
32+
static readonly typeName = "porter.v1.DeploymentTargetIdentifier";
33+
static readonly fields: FieldList;
34+
35+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeploymentTargetIdentifier;
36+
37+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeploymentTargetIdentifier;
38+
39+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeploymentTargetIdentifier;
40+
41+
static equals(a: DeploymentTargetIdentifier | PlainMessage<DeploymentTargetIdentifier> | undefined, b: DeploymentTargetIdentifier | PlainMessage<DeploymentTargetIdentifier> | undefined): boolean;
42+
}
43+
44+
/**
45+
* @generated from message porter.v1.DeploymentTarget
46+
*/
47+
export declare class DeploymentTarget extends Message<DeploymentTarget> {
48+
/**
49+
* @generated from field: int64 project_id = 1;
50+
*/
51+
projectId: bigint;
52+
53+
/**
54+
* name is the vanity name for the deployment target
55+
*
56+
* @generated from field: string name = 2;
57+
*/
58+
name: string;
59+
60+
/**
61+
* namespace is the namespace that the deployment target points to
62+
*
63+
* @generated from field: string namespace = 3;
64+
*/
65+
namespace: string;
66+
67+
/**
68+
* cluster_id is the id of the cluster that the deployment target points to
69+
*
70+
* @generated from field: int64 cluster_id = 4;
71+
*/
72+
clusterId: bigint;
73+
74+
/**
75+
* is_preview indicates whether this is a preview deployment target or not
76+
*
77+
* @generated from field: bool is_preview = 5;
78+
*/
79+
isPreview: boolean;
80+
81+
/**
82+
* is_default indicates whether this is the default deployment target for the cluster
83+
*
84+
* @generated from field: bool is_default = 6;
85+
*/
86+
isDefault: boolean;
87+
88+
/**
89+
* id is the id of the deployment target
90+
*
91+
* @generated from field: string id = 7;
92+
*/
93+
id: string;
94+
95+
/**
96+
* metadata is the metadata for the deployment target, if any
97+
*
98+
* @generated from field: porter.v1.DeploymentTargetMeta metadata = 8;
99+
*/
100+
metadata?: DeploymentTargetMeta;
101+
102+
constructor(data?: PartialMessage<DeploymentTarget>);
103+
104+
static readonly runtime: typeof proto3;
105+
static readonly typeName = "porter.v1.DeploymentTarget";
106+
static readonly fields: FieldList;
107+
108+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeploymentTarget;
109+
110+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeploymentTarget;
111+
112+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeploymentTarget;
113+
114+
static equals(a: DeploymentTarget | PlainMessage<DeploymentTarget> | undefined, b: DeploymentTarget | PlainMessage<DeploymentTarget> | undefined): boolean;
115+
}
116+
117+
/**
118+
* @generated from message porter.v1.DeploymentTargetMeta
119+
*/
120+
export declare class DeploymentTargetMeta extends Message<DeploymentTargetMeta> {
121+
/**
122+
* pull_request is information about the pull request that triggered the deployment, if applicable
123+
*
124+
* @generated from field: porter.v1.PullRequest pull_request = 1;
125+
*/
126+
pullRequest?: PullRequest;
127+
128+
constructor(data?: PartialMessage<DeploymentTargetMeta>);
129+
130+
static readonly runtime: typeof proto3;
131+
static readonly typeName = "porter.v1.DeploymentTargetMeta";
132+
static readonly fields: FieldList;
133+
134+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeploymentTargetMeta;
135+
136+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeploymentTargetMeta;
137+
138+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeploymentTargetMeta;
139+
140+
static equals(a: DeploymentTargetMeta | PlainMessage<DeploymentTargetMeta> | undefined, b: DeploymentTargetMeta | PlainMessage<DeploymentTargetMeta> | undefined): boolean;
141+
}
142+
143+
/**
144+
* @generated from message porter.v1.PullRequest
145+
*/
146+
export declare class PullRequest extends Message<PullRequest> {
147+
/**
148+
* repository is the repository that the pull request is in
149+
*
150+
* @generated from field: string repository = 1;
151+
*/
152+
repository: string;
153+
154+
/**
155+
* number is the number of the pull request
156+
*
157+
* @generated from field: int64 number = 2;
158+
*/
159+
number: bigint;
160+
161+
/**
162+
* head_ref is the head ref of the pull request
163+
*
164+
* @generated from field: string head_ref = 3;
165+
*/
166+
headRef: string;
167+
168+
constructor(data?: PartialMessage<PullRequest>);
169+
170+
static readonly runtime: typeof proto3;
171+
static readonly typeName = "porter.v1.PullRequest";
172+
static readonly fields: FieldList;
173+
174+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PullRequest;
175+
176+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PullRequest;
177+
178+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PullRequest;
179+
180+
static equals(a: PullRequest | PlainMessage<PullRequest> | undefined, b: PullRequest | PlainMessage<PullRequest> | undefined): boolean;
181+
}
182+

Diff for: generated/js/src/porter/v1/deployment_target_pb.js

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// @generated by protoc-gen-es v1.9.0
2+
// @generated from file porter/v1/deployment_target.proto (package porter.v1, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import { proto3 } from "@bufbuild/protobuf";
7+
8+
/**
9+
* DeploymentTargetIdentifier is the object that identifies a deployment target. One of id or name must be provided, with id taking precedence.
10+
*
11+
* @generated from message porter.v1.DeploymentTargetIdentifier
12+
*/
13+
export const DeploymentTargetIdentifier = /*@__PURE__*/ proto3.makeMessageType(
14+
"porter.v1.DeploymentTargetIdentifier",
15+
() => [
16+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
18+
],
19+
);
20+
21+
/**
22+
* @generated from message porter.v1.DeploymentTarget
23+
*/
24+
export const DeploymentTarget = /*@__PURE__*/ proto3.makeMessageType(
25+
"porter.v1.DeploymentTarget",
26+
() => [
27+
{ no: 1, name: "project_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
28+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
29+
{ no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
30+
{ no: 4, name: "cluster_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
31+
{ no: 5, name: "is_preview", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
32+
{ no: 6, name: "is_default", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
33+
{ no: 7, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
34+
{ no: 8, name: "metadata", kind: "message", T: DeploymentTargetMeta },
35+
],
36+
);
37+
38+
/**
39+
* @generated from message porter.v1.DeploymentTargetMeta
40+
*/
41+
export const DeploymentTargetMeta = /*@__PURE__*/ proto3.makeMessageType(
42+
"porter.v1.DeploymentTargetMeta",
43+
() => [
44+
{ no: 1, name: "pull_request", kind: "message", T: PullRequest },
45+
],
46+
);
47+
48+
/**
49+
* @generated from message porter.v1.PullRequest
50+
*/
51+
export const PullRequest = /*@__PURE__*/ proto3.makeMessageType(
52+
"porter.v1.PullRequest",
53+
() => [
54+
{ no: 1, name: "repository", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55+
{ no: 2, name: "number", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
56+
{ no: 3, name: "head_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57+
],
58+
);
59+

0 commit comments

Comments
 (0)