|
| 1 | +{ |
| 2 | + "description": "GlobalProxySettings is the Schema for the globalproxysettings API.", |
| 3 | + "properties": { |
| 4 | + "apiVersion": { |
| 5 | + "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", |
| 6 | + "type": "string" |
| 7 | + }, |
| 8 | + "kind": { |
| 9 | + "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", |
| 10 | + "type": "string" |
| 11 | + }, |
| 12 | + "metadata": { |
| 13 | + "type": "object" |
| 14 | + }, |
| 15 | + "spec": { |
| 16 | + "description": "GlobalProxySettingsSpec defines the desired state of GlobalProxySettings.", |
| 17 | + "properties": { |
| 18 | + "rules": { |
| 19 | + "description": "Subjects that should receive additional permissions.\nThe subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.\nHowever they must be part of the capsule-user groups.", |
| 20 | + "items": { |
| 21 | + "properties": { |
| 22 | + "clusterResources": { |
| 23 | + "description": "Cluster Resources for tenant Owner.", |
| 24 | + "items": { |
| 25 | + "properties": { |
| 26 | + "apiGroups": { |
| 27 | + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against any resource listed will be allowed. '*' represents all resources. Empty string represents v1 api resources.", |
| 28 | + "items": { |
| 29 | + "type": "string" |
| 30 | + }, |
| 31 | + "type": "array" |
| 32 | + }, |
| 33 | + "operations": { |
| 34 | + "description": "Operations which can be executed on the selected resources.\nDeprecated: For all registered Routes only LIST ang GET requests will intercepted\nOther permissions must be implemented via kubernetes native RBAC", |
| 35 | + "items": { |
| 36 | + "enum": [ |
| 37 | + "List", |
| 38 | + "Update", |
| 39 | + "Delete" |
| 40 | + ], |
| 41 | + "type": "string" |
| 42 | + }, |
| 43 | + "type": "array" |
| 44 | + }, |
| 45 | + "resources": { |
| 46 | + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", |
| 47 | + "items": { |
| 48 | + "type": "string" |
| 49 | + }, |
| 50 | + "type": "array" |
| 51 | + }, |
| 52 | + "selector": { |
| 53 | + "description": "Select all cluster scoped resources with the given label selector.\nDefining a selector which does not match any resources is considered not selectable (eg. using operation NotExists).", |
| 54 | + "properties": { |
| 55 | + "matchExpressions": { |
| 56 | + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", |
| 57 | + "items": { |
| 58 | + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", |
| 59 | + "properties": { |
| 60 | + "key": { |
| 61 | + "description": "key is the label key that the selector applies to.", |
| 62 | + "type": "string" |
| 63 | + }, |
| 64 | + "operator": { |
| 65 | + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", |
| 66 | + "type": "string" |
| 67 | + }, |
| 68 | + "values": { |
| 69 | + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", |
| 70 | + "items": { |
| 71 | + "type": "string" |
| 72 | + }, |
| 73 | + "type": "array", |
| 74 | + "x-kubernetes-list-type": "atomic" |
| 75 | + } |
| 76 | + }, |
| 77 | + "required": [ |
| 78 | + "key", |
| 79 | + "operator" |
| 80 | + ], |
| 81 | + "type": "object", |
| 82 | + "additionalProperties": false |
| 83 | + }, |
| 84 | + "type": "array", |
| 85 | + "x-kubernetes-list-type": "atomic" |
| 86 | + }, |
| 87 | + "matchLabels": { |
| 88 | + "additionalProperties": { |
| 89 | + "type": "string" |
| 90 | + }, |
| 91 | + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", |
| 92 | + "type": "object" |
| 93 | + } |
| 94 | + }, |
| 95 | + "type": "object", |
| 96 | + "x-kubernetes-map-type": "atomic", |
| 97 | + "additionalProperties": false |
| 98 | + } |
| 99 | + }, |
| 100 | + "required": [ |
| 101 | + "apiGroups", |
| 102 | + "resources", |
| 103 | + "selector" |
| 104 | + ], |
| 105 | + "type": "object", |
| 106 | + "additionalProperties": false |
| 107 | + }, |
| 108 | + "type": "array" |
| 109 | + }, |
| 110 | + "subjects": { |
| 111 | + "description": "Subjects that should receive additional permissions.\nThe subjects are selected based on the oncoming requests. They don't have to relate to an existing tenant.\nHowever they must be part of the capsule-user groups.", |
| 112 | + "items": { |
| 113 | + "properties": { |
| 114 | + "kind": { |
| 115 | + "description": "Kind of tenant owner. Possible values are \"User\", \"Group\", and \"ServiceAccount\".", |
| 116 | + "enum": [ |
| 117 | + "User", |
| 118 | + "Group", |
| 119 | + "ServiceAccount" |
| 120 | + ], |
| 121 | + "type": "string" |
| 122 | + }, |
| 123 | + "name": { |
| 124 | + "description": "Name of tenant owner.", |
| 125 | + "type": "string" |
| 126 | + } |
| 127 | + }, |
| 128 | + "required": [ |
| 129 | + "kind", |
| 130 | + "name" |
| 131 | + ], |
| 132 | + "type": "object", |
| 133 | + "additionalProperties": false |
| 134 | + }, |
| 135 | + "type": "array" |
| 136 | + } |
| 137 | + }, |
| 138 | + "required": [ |
| 139 | + "subjects" |
| 140 | + ], |
| 141 | + "type": "object", |
| 142 | + "additionalProperties": false |
| 143 | + }, |
| 144 | + "minItems": 1, |
| 145 | + "type": "array" |
| 146 | + } |
| 147 | + }, |
| 148 | + "required": [ |
| 149 | + "rules" |
| 150 | + ], |
| 151 | + "type": "object", |
| 152 | + "additionalProperties": false |
| 153 | + } |
| 154 | + }, |
| 155 | + "type": "object" |
| 156 | +} |
0 commit comments