common_resources.proto 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.gkemulticloud.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option csharp_namespace = "Google.Cloud.GkeMultiCloud.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/gkemulticloud/v1;gkemulticloud";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "CommonResourcesProto";
  22. option java_package = "com.google.cloud.gkemulticloud.v1";
  23. option php_namespace = "Google\\Cloud\\GkeMultiCloud\\V1";
  24. option ruby_package = "Google::Cloud::GkeMultiCloud::V1";
  25. // Workload Identity settings.
  26. message WorkloadIdentityConfig {
  27. // The OIDC issuer URL for this cluster.
  28. string issuer_uri = 1;
  29. // The Workload Identity Pool associated to the cluster.
  30. string workload_pool = 2;
  31. // The ID of the OIDC Identity Provider (IdP) associated to the Workload
  32. // Identity Pool.
  33. string identity_provider = 3;
  34. }
  35. // Constraints applied to pods.
  36. message MaxPodsConstraint {
  37. // Required. The maximum number of pods to schedule on a single node.
  38. int64 max_pods_per_node = 1 [(google.api.field_behavior) = REQUIRED];
  39. }
  40. // Metadata about a long-running operation.
  41. message OperationMetadata {
  42. // Output only. The time at which this operation was created.
  43. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. // Output only. The time at which this operation was completed.
  45. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  46. // Output only. The name of the resource associated to this operation.
  47. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Output only. Human-readable status of the operation, if any.
  49. string status_detail = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  50. // Output only. Human-readable status of any error that occurred during the operation.
  51. string error_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  52. }
  53. // The taint content for the node taint.
  54. message NodeTaint {
  55. // The taint effect.
  56. enum Effect {
  57. // Not set.
  58. EFFECT_UNSPECIFIED = 0;
  59. // Do not allow new pods to schedule onto the node unless they tolerate the
  60. // taint, but allow all pods submitted to Kubelet without going through the
  61. // scheduler to start, and allow all already-running pods to continue
  62. // running. Enforced by the scheduler.
  63. NO_SCHEDULE = 1;
  64. // Like TaintEffectNoSchedule, but the scheduler tries not to schedule
  65. // new pods onto the node, rather than prohibiting new pods from scheduling
  66. // onto the node entirely. Enforced by the scheduler.
  67. PREFER_NO_SCHEDULE = 2;
  68. // Evict any already-running pods that do not tolerate the taint.
  69. // Currently enforced by NodeController.
  70. NO_EXECUTE = 3;
  71. }
  72. // Required. Key for the taint.
  73. string key = 1 [(google.api.field_behavior) = REQUIRED];
  74. // Required. Value for the taint.
  75. string value = 2 [(google.api.field_behavior) = REQUIRED];
  76. // Required. The taint effect.
  77. Effect effect = 3 [(google.api.field_behavior) = REQUIRED];
  78. }
  79. // Fleet related configuration.
  80. //
  81. // Fleets are a Google Cloud concept for logically organizing clusters,
  82. // letting you use and manage multi-cluster capabilities and apply
  83. // consistent policies across your systems.
  84. //
  85. // See [Anthos
  86. // Fleets](https://cloud.google.com/anthos/multicluster-management/fleets) for
  87. // more details on Anthos multi-cluster capabilities using Fleets.
  88. message Fleet {
  89. // Required. The name of the Fleet host project where this cluster will be registered.
  90. //
  91. // Project names are formatted as
  92. // `projects/<project-number>`.
  93. string project = 1 [(google.api.field_behavior) = REQUIRED];
  94. // Output only. The name of the managed Hub Membership resource associated to this cluster.
  95. //
  96. // Membership names are formatted as
  97. // `projects/<project-number>/locations/global/membership/<cluster-id>`.
  98. string membership = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  99. }
  100. // Parameters that describe the Logging configuration in a cluster.
  101. message LoggingConfig {
  102. // The configuration of the logging components;
  103. LoggingComponentConfig component_config = 1;
  104. }
  105. // Parameters that describe the Logging component configuration in a cluster.
  106. message LoggingComponentConfig {
  107. // The components of the logging configuration;
  108. enum Component {
  109. // No component is specified
  110. COMPONENT_UNSPECIFIED = 0;
  111. // This indicates that system logging components is enabled.
  112. SYSTEM_COMPONENTS = 1;
  113. // This indicates that user workload logging component is enabled.
  114. WORKLOADS = 2;
  115. }
  116. // The components to be enabled.
  117. repeated Component enable_components = 1;
  118. }