Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
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
48 changes: 47 additions & 1 deletion docs/docs/api/platform-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@




<a name="model_auth-proto"></a>

## model/auth.proto
Expand Down Expand Up @@ -7401,6 +7402,52 @@ Empty response for updating users settings for the Rig project.



<a name="model_object-proto"></a>

## model/object.proto



<a name="model-Fingerprint"></a>

### Fingerprint



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| bytes | [bytes](#bytes) | | |






<a name="model-ObjectMetadata"></a>

### ObjectMetadata



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| created_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
| updated_at | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
| updated_by | [Author](#model-Author) | | |
| fingerprint | [Fingerprint](#model-Fingerprint) | | |













<a name="v1alpha2_generated-proto"></a>

## v1alpha2/generated.proto
Expand Down Expand Up @@ -8047,7 +8094,6 @@ Empty response for updating users settings for the Rig project.
| kind | [string](#string) | | |
| apiVersion | [string](#string) | | |
| name | [string](#string) | | |
| environments | [string](#string) | repeated | |
| spec | [ProjEnvCapsuleBase](#platform-v1-ProjEnvCapsuleBase) | | |


Expand Down
4 changes: 1 addition & 3 deletions pkg/api/platform/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ type Project struct {
metav1.TypeMeta `json:",inline"`
// Name is unique
Name string `json:"name" protobuf:"3"`
// A capsule is only allowed in an environment if its project references the environment in this list
Environments []string `json:"environments" protobuf:"4"`
// Project level defaults
Spec ProjEnvCapsuleBase `json:"spec" protobuf:"5"`
Spec ProjEnvCapsuleBase `json:"spec" protobuf:"4"`
}

//+kubebuilder:object:=true
Expand Down
5 changes: 0 additions & 5 deletions pkg/api/platform/v1/zz_generated.deepcopy.go

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

17 changes: 17 additions & 0 deletions proto/rig/model/object.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";

package model;

import "google/protobuf/timestamp.proto";
import "model/author.proto";

message ObjectMetadata {
google.protobuf.Timestamp created_at = 1;
google.protobuf.Timestamp updated_at = 2;
Author updated_by = 3;
Fingerprint fingerprint = 4;
}

message Fingerprint {
bytes bytes = 1;
}
3 changes: 1 addition & 2 deletions proto/rig/platform/v1/generated.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,5 @@ message Project {
string kind = 1;
string apiVersion = 2;
string name = 3;
repeated string environments = 4;
ProjEnvCapsuleBase spec = 5;
ProjEnvCapsuleBase spec = 4;
}