Skip to content

Commit

Permalink
feat(vdp): add secrets field in trigger endpoints (#303)
Browse files Browse the repository at this point in the history
Because

- We will provide functionality that allows users to put secrets in the
request to override the owner's secrets.

This commit

- Adds a `secrets` field in trigger endpoints.

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
donch1989 and droplet-bot authored Apr 16, 2024
1 parent f9a884b commit e6d7c95
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
40 changes: 40 additions & 0 deletions openapiv2/vdp/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2876,6 +2876,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerOrganizationPipelineRequest represents a request to trigger an
organization-owned pipeline synchronously.
Expand All @@ -2889,6 +2894,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerOrganizationPipelineReleaseRequest represents a request to trigger a
pinned release of an organization-owned pipeline asynchronously.
Expand All @@ -2902,6 +2912,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerUserPipelineRequest represents a request to trigger a user-owned
pipeline synchronously.
Expand All @@ -2915,6 +2930,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerUserPipelineReleaseRequest represents a request to trigger a pinned
release of a user-owned pipeline asynchronously.
Expand All @@ -2928,6 +2948,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerOrganizationPipelineRequest represents a request to trigger an
organization-owned pipeline synchronously.
Expand All @@ -2941,6 +2966,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerOrganizationPipelineReleaseRequest represents a request to trigger a
pinned release of an organization-owned pipeline.
Expand All @@ -2954,6 +2984,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerUserPipelineRequest represents a request to trigger a user-owned
pipeline synchronously.
Expand All @@ -2967,6 +3002,11 @@ definitions:
items:
type: object
description: Pipeline input parameters.
secrets:
type: object
additionalProperties:
type: string
description: Pipeline secrets parameters that will override the pipeline's or owner's secrets.
description: |-
TriggerUserPipelineReleaseRequest represents a request to trigger a pinned
release of a user-owned pipeline.
Expand Down
16 changes: 16 additions & 0 deletions vdp/pipeline/v1beta/pipeline.proto
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ message TriggerUserPipelineRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerUserPipelineResponse contains the pipeline execution results, i.e.,
Expand All @@ -669,6 +671,8 @@ message TriggerAsyncUserPipelineRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerAsyncUserPipelineResponse contains the information to access the
Expand Down Expand Up @@ -858,6 +862,8 @@ message TriggerUserPipelineReleaseRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerUserPipelineReleaseResponse contains the pipeline execution results,
Expand All @@ -884,6 +890,8 @@ message TriggerAsyncUserPipelineReleaseRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerAsyncUserPipelineReleaseResponse contains the information to access
Expand Down Expand Up @@ -1102,6 +1110,8 @@ message TriggerOrganizationPipelineRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerOrganizationPipelineResponse contains the pipeline execution results,
Expand All @@ -1128,6 +1138,8 @@ message TriggerAsyncOrganizationPipelineRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerAsyncOrganizationPipelineResponse contains the information to access
Expand Down Expand Up @@ -1324,6 +1336,8 @@ message TriggerOrganizationPipelineReleaseRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerOrganizationPipelineReleaseResponse contains the pipeline execution
Expand Down Expand Up @@ -1351,6 +1365,8 @@ message TriggerAsyncOrganizationPipelineReleaseRequest {
];
// Pipeline input parameters.
repeated google.protobuf.Struct inputs = 2 [(google.api.field_behavior) = REQUIRED];
// Pipeline secrets parameters that will override the pipeline's or owner's secrets.
map<string, string> secrets = 3 [(google.api.field_behavior) = OPTIONAL];
}

// TriggerAsyncOrganizationPipelineReleaseResponse contains the information to
Expand Down

0 comments on commit e6d7c95

Please sign in to comment.