Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/controlplane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ migration_apply: check-atlas-tool migration_hash
atlas migrate status --dir ${local_migrations_dir} --url ${local_db}
atlas migrate apply --dir ${local_migrations_dir} --url ${local_db}

.PHONY: migration_apply_non_linear
# see https://atlasgo.io/versioned/apply#non-linear-error
migration_apply_non_linear: check-atlas-tool migration_hash
atlas migrate status --dir ${local_migrations_dir} --url ${local_db}
atlas migrate apply --dir ${local_migrations_dir} --url ${local_db} --exec-order non-linear

.PHONY: migration_sync
# sync migration files with the current ent schema
migration_sync: check-atlas-tool migration_hash
Expand Down
270 changes: 203 additions & 67 deletions app/controlplane/api/controlplane/v1/cas_backends.pb.go

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions app/controlplane/api/controlplane/v1/cas_backends.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ service CASBackendService {
rpc Create(CASBackendServiceCreateRequest) returns (CASBackendServiceCreateResponse);
rpc Update(CASBackendServiceUpdateRequest) returns (CASBackendServiceUpdateResponse);
rpc Delete(CASBackendServiceDeleteRequest) returns (CASBackendServiceDeleteResponse);
rpc Revalidate(CASBackendServiceRevalidateRequest) returns (CASBackendServiceRevalidateResponse);
}

message CASBackendServiceListRequest {}
Expand Down Expand Up @@ -99,6 +100,18 @@ message CASBackendServiceDeleteRequest {

message CASBackendServiceDeleteResponse {}

message CASBackendServiceRevalidateRequest {
string name = 1 [(buf.validate.field) = {
cel: {
message: "must contain only lowercase letters, numbers, and hyphens."
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
id: "name.dns-1123"
}
}];
}

message CASBackendServiceRevalidateResponse {}

enum CASBackendErrorReason {
option (errors.default_code) = 500;
CAS_BACKEND_ERROR_REASON_UNSPECIFIED = 0;
Expand Down
45 changes: 41 additions & 4 deletions app/controlplane/api/controlplane/v1/cas_backends_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading