@@ -35,6 +35,10 @@ option (google.api.resource_definition) = {
35
35
type : "cloudbuild.googleapis.com/Build"
36
36
pattern : "projects/{project}/locations/{location}/builds/{build}"
37
37
};
38
+ option (google.api.resource_definition ) = {
39
+ type : "cloudbuild.googleapis.com/Repository"
40
+ pattern : "projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}"
41
+ };
38
42
option (google.api.resource_definition ) = {
39
43
type : "container.googleapis.com/Cluster"
40
44
pattern : "projects/{project}/locations/{location}/clusters/{cluster}"
@@ -1606,7 +1610,7 @@ message SkaffoldModules {
1606
1610
// Optional. Relative path from the repository root to the Skaffold file.
1607
1611
string path = 2 [(google.api.field_behavior ) = OPTIONAL ];
1608
1612
1609
- // Optional. Git ref the package should be cloned from .
1613
+ // Optional. Git branch or tag to use when cloning the repository .
1610
1614
string ref = 3 [(google.api.field_behavior ) = OPTIONAL ];
1611
1615
}
1612
1616
@@ -1621,6 +1625,26 @@ message SkaffoldModules {
1621
1625
string path = 2 [(google.api.field_behavior ) = OPTIONAL ];
1622
1626
}
1623
1627
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
+
1624
1648
// Optional. The Skaffold Config modules to use from the specified source.
1625
1649
repeated string configs = 1 [(google.api.field_behavior ) = OPTIONAL ];
1626
1650
@@ -1631,6 +1655,9 @@ message SkaffoldModules {
1631
1655
1632
1656
// Cloud Storage bucket containing the Skaffold Config modules.
1633
1657
SkaffoldGCSSource google_cloud_storage = 3 ;
1658
+
1659
+ // Cloud Build V2 repository containing the Skaffold Config modules.
1660
+ SkaffoldGCBRepoSource google_cloud_build_repo = 4 ;
1634
1661
}
1635
1662
}
1636
1663
0 commit comments