namespace.proto 739 B

1234567891011121314151617181920212223242526
  1. syntax = "proto3";
  2. import "kubemodel/diagnostic.proto";
  3. import "google/protobuf/timestamp.proto";
  4. package kubemodel;
  5. option go_package = "github.com/opencost/opencost/core/pkg/model/pb/kubemodel";
  6. // Namespace represents a Kubernetes namespace (allocated resource grouping)
  7. message Namespace {
  8. // Identification
  9. string ID = 1;
  10. string clusterID = 2;
  11. // Properties
  12. string name = 3;
  13. map<string, string> labels = 4;
  14. map<string, string> annotations = 5;
  15. // Resource lifecycle (only when different from cluster window)
  16. optional google.protobuf.Timestamp creationTime = 7;
  17. optional google.protobuf.Timestamp deletionTime = 8;
  18. // Diagnostic information about this resource
  19. optional DiagnosticResult diagnostic = 99;
  20. }