Skip to content

Commit 02c6ae6

Browse files
feat: [deploy] add Skaffold remote config support for GCB repos (#5267)
* feat: add Skaffold remote config support for GCB repos docs: clarified related comments PiperOrigin-RevId: 626346409 Source-Link: googleapis/googleapis@357c057 Source-Link: googleapis/googleapis-gen@06261c1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiMDYyNjFjMTI0YTg0MzRlZGYwZDBjYTcwZjg2ZDFkMmYyYWVjMTg1MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a301603 commit 02c6ae6

File tree

5 files changed

+470
-5
lines changed

5 files changed

+470
-5
lines changed

packages/google-cloud-deploy/protos/google/cloud/deploy/v1/cloud_deploy.proto

+28-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ option (google.api.resource_definition) = {
3535
type: "cloudbuild.googleapis.com/Build"
3636
pattern: "projects/{project}/locations/{location}/builds/{build}"
3737
};
38+
option (google.api.resource_definition) = {
39+
type: "cloudbuild.googleapis.com/Repository"
40+
pattern: "projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}"
41+
};
3842
option (google.api.resource_definition) = {
3943
type: "container.googleapis.com/Cluster"
4044
pattern: "projects/{project}/locations/{location}/clusters/{cluster}"
@@ -1606,7 +1610,7 @@ message SkaffoldModules {
16061610
// Optional. Relative path from the repository root to the Skaffold file.
16071611
string path = 2 [(google.api.field_behavior) = OPTIONAL];
16081612

1609-
// Optional. Git ref the package should be cloned from.
1613+
// Optional. Git branch or tag to use when cloning the repository.
16101614
string ref = 3 [(google.api.field_behavior) = OPTIONAL];
16111615
}
16121616

@@ -1621,6 +1625,26 @@ message SkaffoldModules {
16211625
string path = 2 [(google.api.field_behavior) = OPTIONAL];
16221626
}
16231627

1628+
// Cloud Build V2 Repository containing Skaffold Configs.
1629+
message SkaffoldGCBRepoSource {
1630+
// Required. Name of the Cloud Build V2 Repository.
1631+
// Format is
1632+
// projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}.
1633+
string repository = 1 [
1634+
(google.api.field_behavior) = REQUIRED,
1635+
(google.api.resource_reference) = {
1636+
type: "cloudbuild.googleapis.com/Repository"
1637+
}
1638+
];
1639+
1640+
// Optional. Relative path from the repository root to the Skaffold Config
1641+
// file.
1642+
string path = 2 [(google.api.field_behavior) = OPTIONAL];
1643+
1644+
// Optional. Branch or tag to use when cloning the repository.
1645+
string ref = 3 [(google.api.field_behavior) = OPTIONAL];
1646+
}
1647+
16241648
// Optional. The Skaffold Config modules to use from the specified source.
16251649
repeated string configs = 1 [(google.api.field_behavior) = OPTIONAL];
16261650

@@ -1631,6 +1655,9 @@ message SkaffoldModules {
16311655

16321656
// Cloud Storage bucket containing the Skaffold Config modules.
16331657
SkaffoldGCSSource google_cloud_storage = 3;
1658+
1659+
// Cloud Build V2 repository containing the Skaffold Config modules.
1660+
SkaffoldGCBRepoSource google_cloud_build_repo = 4;
16341661
}
16351662
}
16361663

packages/google-cloud-deploy/protos/protos.d.ts

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

0 commit comments

Comments
 (0)