kuma

Форк
0
/
options.proto 
87 строк · 2.5 Кб
1
syntax = "proto3";
2

3
package kuma.mesh;
4

5
option go_package = "github.com/kumahq/kuma/api/mesh";
6

7
import "google/protobuf/descriptor.proto";
8

9
message KumaResourceOptions {
10
  // Name of the Kuma resource struct.
11
  string name = 1;
12

13
  // Name and value of the modelResourceType constant.
14
  string type = 2;
15

16
  // True if this resource has global scope. Otherwise it will be mesh scope.
17
  bool global = 3;
18

19
  // Name of the resource's Go package.
20
  string package = 4;
21

22
  // Whether to skip type registration for this resource.
23
  bool skip_registration = 6;
24

25
  KumaKdsOptions kds = 10;
26
  KumaWsOptions ws = 7;
27

28
  // Whether scope is "Namespace"; Otherwise to "Cluster".
29
  bool scope_namespace = 11;
30

31
  // Whether to skip generation of native API helper functions.
32
  bool skip_kubernetes_wrappers = 12;
33

34
  // Whether to generate Inspect API endpoint
35
  bool allow_to_inspect = 13;
36

37
  // If resource has more than one version, then the flag defines which version
38
  // is used in the storage. All other versions must be convertible to it.
39
  bool storage_version = 14;
40

41
  // The name of the policy showed as plural to be displayed in the UI and maybe
42
  // CLI
43
  string plural_display_name = 15;
44

45
  // Is Experimental indicates if a policy is in experimental state (might not
46
  // be production ready).
47
  bool is_experimental = 16;
48

49
  // Columns to set using `+kubebuilder::printcolumns`
50
  repeated string additional_printer_columns = 17;
51

52
  // Whether the resource has a matching insight type
53
  bool has_insights = 18;
54
}
55

56
message KumaWsOptions {
57
  // Name is the name of the policy for resource name usage in path.
58
  string name = 1;
59
  // Plural is only to be set if the plural of the resource is irregular (not
60
  // just adding a 's' at the end).
61
  string plural = 2;
62
  // ReadOnly if the resource is read only.
63
  bool read_only = 3;
64
  // AdminOnly whether this entity requires admin auth to access these
65
  // endpoints.
66
  bool admin_only = 4;
67
}
68

69
message KumaKdsOptions {
70
  // SendToGlobal whether this entity will be sent from zone cp to global cp
71
  bool send_to_global = 1;
72
  // SendToZone whether this entity will be sent from global cp to zone cp
73
  bool send_to_zone = 2;
74
}
75

76
message KumaPolicyOptions {
77
  // Whether to skip type registration for this resource.
78
  bool skip_registration = 1;
79
  // An optional alternative plural form if this is unset default to a standard
80
  // derivation of the name
81
  string plural = 2;
82
}
83

84
extend google.protobuf.MessageOptions {
85
  KumaResourceOptions resource = 43534533; // 'kuma'
86
  KumaPolicyOptions policy = 43534534;     // 'kuma'
87
}
88

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.