mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
lot more stuff
This commit is contained in:
1
TODO.md
Normal file
1
TODO.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
- Fix issue with incompatible spec breaking the server
|
||||||
@@ -6,10 +6,12 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "3.3.1",
|
"@eslint/eslintrc": "3.3.1",
|
||||||
"@eslint/js": "9.32.0",
|
"@eslint/js": "9.32.0",
|
||||||
|
"@types/deep-equal": "^1.0.4",
|
||||||
"eslint": "9.32.0",
|
"eslint": "9.32.0",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-import": "2.32.0",
|
"eslint-plugin-import": "2.32.0",
|
||||||
"eslint-plugin-prettier": "5.5.3",
|
"eslint-plugin-prettier": "5.5.3",
|
||||||
|
"json-schema-to-typescript": "^15.0.4",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"typescript": "5.8.3",
|
"typescript": "5.8.3",
|
||||||
"typescript-eslint": "8.38.0"
|
"typescript-eslint": "8.38.0"
|
||||||
@@ -20,8 +22,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@goauthentik/api": "2025.6.3-1751754396",
|
"@goauthentik/api": "2025.6.3-1751754396",
|
||||||
"@kubernetes/client-node": "^1.3.0",
|
"@kubernetes/client-node": "^1.3.0",
|
||||||
|
"debounce": "^2.2.0",
|
||||||
|
"deep-equal": "^2.2.3",
|
||||||
"dotenv": "^17.2.1",
|
"dotenv": "^17.2.1",
|
||||||
|
"eventemitter3": "^5.0.1",
|
||||||
"knex": "^3.1.0",
|
"knex": "^3.1.0",
|
||||||
|
"p-queue": "^8.1.0",
|
||||||
|
"p-retry": "^6.2.1",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.16.3",
|
||||||
"sqlite3": "^5.1.7",
|
"sqlite3": "^5.1.7",
|
||||||
"yaml": "^2.8.0",
|
"yaml": "^2.8.0",
|
||||||
|
|||||||
201
pnpm-lock.yaml
generated
201
pnpm-lock.yaml
generated
@@ -14,12 +14,27 @@ importers:
|
|||||||
'@kubernetes/client-node':
|
'@kubernetes/client-node':
|
||||||
specifier: ^1.3.0
|
specifier: ^1.3.0
|
||||||
version: 1.3.0(encoding@0.1.13)
|
version: 1.3.0(encoding@0.1.13)
|
||||||
|
debounce:
|
||||||
|
specifier: ^2.2.0
|
||||||
|
version: 2.2.0
|
||||||
|
deep-equal:
|
||||||
|
specifier: ^2.2.3
|
||||||
|
version: 2.2.3
|
||||||
dotenv:
|
dotenv:
|
||||||
specifier: ^17.2.1
|
specifier: ^17.2.1
|
||||||
version: 17.2.1
|
version: 17.2.1
|
||||||
|
eventemitter3:
|
||||||
|
specifier: ^5.0.1
|
||||||
|
version: 5.0.1
|
||||||
knex:
|
knex:
|
||||||
specifier: ^3.1.0
|
specifier: ^3.1.0
|
||||||
version: 3.1.0(pg@8.16.3)(sqlite3@5.1.7)
|
version: 3.1.0(pg@8.16.3)(sqlite3@5.1.7)
|
||||||
|
p-queue:
|
||||||
|
specifier: ^8.1.0
|
||||||
|
version: 8.1.0
|
||||||
|
p-retry:
|
||||||
|
specifier: ^6.2.1
|
||||||
|
version: 6.2.1
|
||||||
pg:
|
pg:
|
||||||
specifier: ^8.16.3
|
specifier: ^8.16.3
|
||||||
version: 8.16.3
|
version: 8.16.3
|
||||||
@@ -39,6 +54,9 @@ importers:
|
|||||||
'@eslint/js':
|
'@eslint/js':
|
||||||
specifier: 9.32.0
|
specifier: 9.32.0
|
||||||
version: 9.32.0
|
version: 9.32.0
|
||||||
|
'@types/deep-equal':
|
||||||
|
specifier: ^1.0.4
|
||||||
|
version: 1.0.4
|
||||||
eslint:
|
eslint:
|
||||||
specifier: 9.32.0
|
specifier: 9.32.0
|
||||||
version: 9.32.0
|
version: 9.32.0
|
||||||
@@ -51,6 +69,9 @@ importers:
|
|||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 5.5.3
|
specifier: 5.5.3
|
||||||
version: 5.5.3(eslint-config-prettier@10.1.8(eslint@9.32.0))(eslint@9.32.0)(prettier@3.6.2)
|
version: 5.5.3(eslint-config-prettier@10.1.8(eslint@9.32.0))(eslint@9.32.0)(prettier@3.6.2)
|
||||||
|
json-schema-to-typescript:
|
||||||
|
specifier: ^15.0.4
|
||||||
|
version: 15.0.4
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.6.2
|
specifier: 3.6.2
|
||||||
version: 3.6.2
|
version: 3.6.2
|
||||||
@@ -63,6 +84,10 @@ importers:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
|
'@apidevtools/json-schema-ref-parser@11.9.3':
|
||||||
|
resolution: {integrity: sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==}
|
||||||
|
engines: {node: '>= 16'}
|
||||||
|
|
||||||
'@eslint-community/eslint-utils@4.7.0':
|
'@eslint-community/eslint-utils@4.7.0':
|
||||||
resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
|
resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
@@ -127,6 +152,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
|
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
|
||||||
engines: {node: '>=18.18'}
|
engines: {node: '>=18.18'}
|
||||||
|
|
||||||
|
'@jsdevtools/ono@7.1.3':
|
||||||
|
resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==}
|
||||||
|
|
||||||
'@jsep-plugin/assignment@1.3.0':
|
'@jsep-plugin/assignment@1.3.0':
|
||||||
resolution: {integrity: sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==}
|
resolution: {integrity: sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==}
|
||||||
engines: {node: '>= 10.16.0'}
|
engines: {node: '>= 10.16.0'}
|
||||||
@@ -173,6 +201,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==}
|
resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==}
|
||||||
engines: {node: '>= 6'}
|
engines: {node: '>= 6'}
|
||||||
|
|
||||||
|
'@types/deep-equal@1.0.4':
|
||||||
|
resolution: {integrity: sha512-tqdiS4otQP4KmY0PR3u6KbZ5EWvhNdUoS/jc93UuK23C220lOZ/9TvjfxdPcKvqwwDVtmtSCrnr0p/2dirAxkA==}
|
||||||
|
|
||||||
'@types/estree@1.0.8':
|
'@types/estree@1.0.8':
|
||||||
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
|
resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
|
||||||
|
|
||||||
@@ -185,12 +216,18 @@ packages:
|
|||||||
'@types/json5@0.0.29':
|
'@types/json5@0.0.29':
|
||||||
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
|
resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
|
||||||
|
|
||||||
|
'@types/lodash@4.17.20':
|
||||||
|
resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==}
|
||||||
|
|
||||||
'@types/node-fetch@2.6.12':
|
'@types/node-fetch@2.6.12':
|
||||||
resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==}
|
resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==}
|
||||||
|
|
||||||
'@types/node@22.16.5':
|
'@types/node@22.16.5':
|
||||||
resolution: {integrity: sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==}
|
resolution: {integrity: sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==}
|
||||||
|
|
||||||
|
'@types/retry@0.12.2':
|
||||||
|
resolution: {integrity: sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==}
|
||||||
|
|
||||||
'@types/stream-buffers@3.0.7':
|
'@types/stream-buffers@3.0.7':
|
||||||
resolution: {integrity: sha512-azOCy05sXVXrO+qklf0c/B07H/oHaIuDDAiHPVwlk3A9Ek+ksHyTeMajLZl3r76FxpPpxem//4Te61G1iW3Giw==}
|
resolution: {integrity: sha512-azOCy05sXVXrO+qklf0c/B07H/oHaIuDDAiHPVwlk3A9Ek+ksHyTeMajLZl3r76FxpPpxem//4Te61G1iW3Giw==}
|
||||||
|
|
||||||
@@ -476,6 +513,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
|
resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
debounce@2.2.0:
|
||||||
|
resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
debug@3.2.7:
|
debug@3.2.7:
|
||||||
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -506,6 +547,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
|
resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
|
deep-equal@2.2.3:
|
||||||
|
resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
deep-extend@0.6.0:
|
deep-extend@0.6.0:
|
||||||
resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}
|
resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}
|
||||||
engines: {node: '>=4.0.0'}
|
engines: {node: '>=4.0.0'}
|
||||||
@@ -572,6 +617,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
es-get-iterator@1.1.3:
|
||||||
|
resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==}
|
||||||
|
|
||||||
es-object-atoms@1.1.1:
|
es-object-atoms@1.1.1:
|
||||||
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
|
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -696,6 +744,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
|
resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
eventemitter3@5.0.1:
|
||||||
|
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
|
||||||
|
|
||||||
expand-template@2.0.3:
|
expand-template@2.0.3:
|
||||||
resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
|
resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
@@ -722,6 +773,14 @@ packages:
|
|||||||
fastq@1.19.1:
|
fastq@1.19.1:
|
||||||
resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==}
|
resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==}
|
||||||
|
|
||||||
|
fdir@6.4.6:
|
||||||
|
resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
|
||||||
|
peerDependencies:
|
||||||
|
picomatch: ^3 || ^4
|
||||||
|
peerDependenciesMeta:
|
||||||
|
picomatch:
|
||||||
|
optional: true
|
||||||
|
|
||||||
file-entry-cache@8.0.0:
|
file-entry-cache@8.0.0:
|
||||||
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
|
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
|
||||||
engines: {node: '>=16.0.0'}
|
engines: {node: '>=16.0.0'}
|
||||||
@@ -929,6 +988,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==}
|
resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==}
|
||||||
engines: {node: '>= 12'}
|
engines: {node: '>= 12'}
|
||||||
|
|
||||||
|
is-arguments@1.2.0:
|
||||||
|
resolution: {integrity: sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
is-array-buffer@3.0.5:
|
is-array-buffer@3.0.5:
|
||||||
resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
|
resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -992,6 +1055,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
|
resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
is-network-error@1.1.0:
|
||||||
|
resolution: {integrity: sha512-tUdRRAnhT+OtCZR/LxZelH/C7QtjtFrTu5tXCA8pl55eTUElUHT+GPYV8MBMBvea/j+NxQqVt3LbWMRir7Gx9g==}
|
||||||
|
engines: {node: '>=16'}
|
||||||
|
|
||||||
is-number-object@1.1.1:
|
is-number-object@1.1.1:
|
||||||
resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}
|
resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -1064,6 +1131,11 @@ packages:
|
|||||||
json-buffer@3.0.1:
|
json-buffer@3.0.1:
|
||||||
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
|
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
|
||||||
|
|
||||||
|
json-schema-to-typescript@15.0.4:
|
||||||
|
resolution: {integrity: sha512-Su9oK8DR4xCmDsLlyvadkXzX6+GGXJpbhwoLtOGArAG61dvbW4YQmSEno2y66ahpIdmLMg6YUf/QHLgiwvkrHQ==}
|
||||||
|
engines: {node: '>=16.0.0'}
|
||||||
|
hasBin: true
|
||||||
|
|
||||||
json-schema-traverse@0.4.1:
|
json-schema-traverse@0.4.1:
|
||||||
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
|
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
|
||||||
|
|
||||||
@@ -1260,6 +1332,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
|
resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
|
object-is@1.1.6:
|
||||||
|
resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==}
|
||||||
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
object-keys@1.1.1:
|
object-keys@1.1.1:
|
||||||
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
|
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -1306,6 +1382,18 @@ packages:
|
|||||||
resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}
|
resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
|
p-queue@8.1.0:
|
||||||
|
resolution: {integrity: sha512-mxLDbbGIBEXTJL0zEx8JIylaj3xQ7Z/7eEVjcF9fJX4DBiH9oqe+oahYnlKKxm0Ci9TlWTyhSHgygxMxjIB2jw==}
|
||||||
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
|
p-retry@6.2.1:
|
||||||
|
resolution: {integrity: sha512-hEt02O4hUct5wtwg4H4KcWgDdm+l1bOaEy/hWzd8xtXB9BqxTWBBhb+2ImAtH4Cv4rPjV76xN3Zumqk3k3AhhQ==}
|
||||||
|
engines: {node: '>=16.17'}
|
||||||
|
|
||||||
|
p-timeout@6.1.4:
|
||||||
|
resolution: {integrity: sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==}
|
||||||
|
engines: {node: '>=14.16'}
|
||||||
|
|
||||||
parent-module@1.0.1:
|
parent-module@1.0.1:
|
||||||
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
|
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
@@ -1366,6 +1454,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
|
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
|
||||||
engines: {node: '>=8.6'}
|
engines: {node: '>=8.6'}
|
||||||
|
|
||||||
|
picomatch@4.0.3:
|
||||||
|
resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
|
||||||
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
possible-typed-array-names@1.1.0:
|
possible-typed-array-names@1.1.0:
|
||||||
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
|
resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -1463,6 +1555,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
|
resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}
|
||||||
engines: {node: '>= 4'}
|
engines: {node: '>= 4'}
|
||||||
|
|
||||||
|
retry@0.13.1:
|
||||||
|
resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}
|
||||||
|
engines: {node: '>= 4'}
|
||||||
|
|
||||||
reusify@1.1.0:
|
reusify@1.1.0:
|
||||||
resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
|
resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
|
||||||
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
||||||
@@ -1669,6 +1765,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==}
|
resolution: {integrity: sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
|
tinyglobby@0.2.14:
|
||||||
|
resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
|
||||||
|
engines: {node: '>=12.0.0'}
|
||||||
|
|
||||||
to-regex-range@5.0.1:
|
to-regex-range@5.0.1:
|
||||||
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
|
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
|
||||||
engines: {node: '>=8.0'}
|
engines: {node: '>=8.0'}
|
||||||
@@ -1809,6 +1909,12 @@ packages:
|
|||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
|
'@apidevtools/json-schema-ref-parser@11.9.3':
|
||||||
|
dependencies:
|
||||||
|
'@jsdevtools/ono': 7.1.3
|
||||||
|
'@types/json-schema': 7.0.15
|
||||||
|
js-yaml: 4.1.0
|
||||||
|
|
||||||
'@eslint-community/eslint-utils@4.7.0(eslint@9.32.0)':
|
'@eslint-community/eslint-utils@4.7.0(eslint@9.32.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint: 9.32.0
|
eslint: 9.32.0
|
||||||
@@ -1871,6 +1977,8 @@ snapshots:
|
|||||||
|
|
||||||
'@humanwhocodes/retry@0.4.3': {}
|
'@humanwhocodes/retry@0.4.3': {}
|
||||||
|
|
||||||
|
'@jsdevtools/ono@7.1.3': {}
|
||||||
|
|
||||||
'@jsep-plugin/assignment@1.3.0(jsep@1.4.0)':
|
'@jsep-plugin/assignment@1.3.0(jsep@1.4.0)':
|
||||||
dependencies:
|
dependencies:
|
||||||
jsep: 1.4.0
|
jsep: 1.4.0
|
||||||
@@ -1935,6 +2043,8 @@ snapshots:
|
|||||||
'@tootallnate/once@1.1.2':
|
'@tootallnate/once@1.1.2':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
'@types/deep-equal@1.0.4': {}
|
||||||
|
|
||||||
'@types/estree@1.0.8': {}
|
'@types/estree@1.0.8': {}
|
||||||
|
|
||||||
'@types/js-yaml@4.0.9': {}
|
'@types/js-yaml@4.0.9': {}
|
||||||
@@ -1943,6 +2053,8 @@ snapshots:
|
|||||||
|
|
||||||
'@types/json5@0.0.29': {}
|
'@types/json5@0.0.29': {}
|
||||||
|
|
||||||
|
'@types/lodash@4.17.20': {}
|
||||||
|
|
||||||
'@types/node-fetch@2.6.12':
|
'@types/node-fetch@2.6.12':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 22.16.5
|
'@types/node': 22.16.5
|
||||||
@@ -1952,6 +2064,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 6.21.0
|
undici-types: 6.21.0
|
||||||
|
|
||||||
|
'@types/retry@0.12.2': {}
|
||||||
|
|
||||||
'@types/stream-buffers@3.0.7':
|
'@types/stream-buffers@3.0.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 22.16.5
|
'@types/node': 22.16.5
|
||||||
@@ -2321,6 +2435,8 @@ snapshots:
|
|||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
is-data-view: 1.0.2
|
is-data-view: 1.0.2
|
||||||
|
|
||||||
|
debounce@2.2.0: {}
|
||||||
|
|
||||||
debug@3.2.7:
|
debug@3.2.7:
|
||||||
dependencies:
|
dependencies:
|
||||||
ms: 2.1.3
|
ms: 2.1.3
|
||||||
@@ -2337,6 +2453,27 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
mimic-response: 3.1.0
|
mimic-response: 3.1.0
|
||||||
|
|
||||||
|
deep-equal@2.2.3:
|
||||||
|
dependencies:
|
||||||
|
array-buffer-byte-length: 1.0.2
|
||||||
|
call-bind: 1.0.8
|
||||||
|
es-get-iterator: 1.1.3
|
||||||
|
get-intrinsic: 1.3.0
|
||||||
|
is-arguments: 1.2.0
|
||||||
|
is-array-buffer: 3.0.5
|
||||||
|
is-date-object: 1.1.0
|
||||||
|
is-regex: 1.2.1
|
||||||
|
is-shared-array-buffer: 1.0.4
|
||||||
|
isarray: 2.0.5
|
||||||
|
object-is: 1.1.6
|
||||||
|
object-keys: 1.1.1
|
||||||
|
object.assign: 4.1.7
|
||||||
|
regexp.prototype.flags: 1.5.4
|
||||||
|
side-channel: 1.1.0
|
||||||
|
which-boxed-primitive: 1.1.1
|
||||||
|
which-collection: 1.0.2
|
||||||
|
which-typed-array: 1.1.19
|
||||||
|
|
||||||
deep-extend@0.6.0: {}
|
deep-extend@0.6.0: {}
|
||||||
|
|
||||||
deep-is@0.1.4: {}
|
deep-is@0.1.4: {}
|
||||||
@@ -2451,6 +2588,18 @@ snapshots:
|
|||||||
|
|
||||||
es-errors@1.3.0: {}
|
es-errors@1.3.0: {}
|
||||||
|
|
||||||
|
es-get-iterator@1.1.3:
|
||||||
|
dependencies:
|
||||||
|
call-bind: 1.0.8
|
||||||
|
get-intrinsic: 1.3.0
|
||||||
|
has-symbols: 1.1.0
|
||||||
|
is-arguments: 1.2.0
|
||||||
|
is-map: 2.0.3
|
||||||
|
is-set: 2.0.3
|
||||||
|
is-string: 1.1.1
|
||||||
|
isarray: 2.0.5
|
||||||
|
stop-iteration-iterator: 1.1.0
|
||||||
|
|
||||||
es-object-atoms@1.1.1:
|
es-object-atoms@1.1.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
es-errors: 1.3.0
|
es-errors: 1.3.0
|
||||||
@@ -2605,6 +2754,8 @@ snapshots:
|
|||||||
|
|
||||||
esutils@2.0.3: {}
|
esutils@2.0.3: {}
|
||||||
|
|
||||||
|
eventemitter3@5.0.1: {}
|
||||||
|
|
||||||
expand-template@2.0.3: {}
|
expand-template@2.0.3: {}
|
||||||
|
|
||||||
fast-deep-equal@3.1.3: {}
|
fast-deep-equal@3.1.3: {}
|
||||||
@@ -2629,6 +2780,10 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
reusify: 1.1.0
|
reusify: 1.1.0
|
||||||
|
|
||||||
|
fdir@6.4.6(picomatch@4.0.3):
|
||||||
|
optionalDependencies:
|
||||||
|
picomatch: 4.0.3
|
||||||
|
|
||||||
file-entry-cache@8.0.0:
|
file-entry-cache@8.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
flat-cache: 4.0.1
|
flat-cache: 4.0.1
|
||||||
@@ -2858,6 +3013,11 @@ snapshots:
|
|||||||
jsbn: 1.1.0
|
jsbn: 1.1.0
|
||||||
sprintf-js: 1.1.3
|
sprintf-js: 1.1.3
|
||||||
|
|
||||||
|
is-arguments@1.2.0:
|
||||||
|
dependencies:
|
||||||
|
call-bound: 1.0.4
|
||||||
|
has-tostringtag: 1.0.2
|
||||||
|
|
||||||
is-array-buffer@3.0.5:
|
is-array-buffer@3.0.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
call-bind: 1.0.8
|
call-bind: 1.0.8
|
||||||
@@ -2925,6 +3085,8 @@ snapshots:
|
|||||||
|
|
||||||
is-negative-zero@2.0.3: {}
|
is-negative-zero@2.0.3: {}
|
||||||
|
|
||||||
|
is-network-error@1.1.0: {}
|
||||||
|
|
||||||
is-number-object@1.1.1:
|
is-number-object@1.1.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
call-bound: 1.0.4
|
call-bound: 1.0.4
|
||||||
@@ -2991,6 +3153,18 @@ snapshots:
|
|||||||
|
|
||||||
json-buffer@3.0.1: {}
|
json-buffer@3.0.1: {}
|
||||||
|
|
||||||
|
json-schema-to-typescript@15.0.4:
|
||||||
|
dependencies:
|
||||||
|
'@apidevtools/json-schema-ref-parser': 11.9.3
|
||||||
|
'@types/json-schema': 7.0.15
|
||||||
|
'@types/lodash': 4.17.20
|
||||||
|
is-glob: 4.0.3
|
||||||
|
js-yaml: 4.1.0
|
||||||
|
lodash: 4.17.21
|
||||||
|
minimist: 1.2.8
|
||||||
|
prettier: 3.6.2
|
||||||
|
tinyglobby: 0.2.14
|
||||||
|
|
||||||
json-schema-traverse@0.4.1: {}
|
json-schema-traverse@0.4.1: {}
|
||||||
|
|
||||||
json-stable-stringify-without-jsonify@1.0.1: {}
|
json-stable-stringify-without-jsonify@1.0.1: {}
|
||||||
@@ -3200,6 +3374,11 @@ snapshots:
|
|||||||
|
|
||||||
object-inspect@1.13.4: {}
|
object-inspect@1.13.4: {}
|
||||||
|
|
||||||
|
object-is@1.1.6:
|
||||||
|
dependencies:
|
||||||
|
call-bind: 1.0.8
|
||||||
|
define-properties: 1.2.1
|
||||||
|
|
||||||
object-keys@1.1.1: {}
|
object-keys@1.1.1: {}
|
||||||
|
|
||||||
object.assign@4.1.7:
|
object.assign@4.1.7:
|
||||||
@@ -3268,6 +3447,19 @@ snapshots:
|
|||||||
aggregate-error: 3.1.0
|
aggregate-error: 3.1.0
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
p-queue@8.1.0:
|
||||||
|
dependencies:
|
||||||
|
eventemitter3: 5.0.1
|
||||||
|
p-timeout: 6.1.4
|
||||||
|
|
||||||
|
p-retry@6.2.1:
|
||||||
|
dependencies:
|
||||||
|
'@types/retry': 0.12.2
|
||||||
|
is-network-error: 1.1.0
|
||||||
|
retry: 0.13.1
|
||||||
|
|
||||||
|
p-timeout@6.1.4: {}
|
||||||
|
|
||||||
parent-module@1.0.1:
|
parent-module@1.0.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
callsites: 3.1.0
|
callsites: 3.1.0
|
||||||
@@ -3320,6 +3512,8 @@ snapshots:
|
|||||||
|
|
||||||
picomatch@2.3.1: {}
|
picomatch@2.3.1: {}
|
||||||
|
|
||||||
|
picomatch@4.0.3: {}
|
||||||
|
|
||||||
possible-typed-array-names@1.1.0: {}
|
possible-typed-array-names@1.1.0: {}
|
||||||
|
|
||||||
postgres-array@2.0.0: {}
|
postgres-array@2.0.0: {}
|
||||||
@@ -3423,6 +3617,8 @@ snapshots:
|
|||||||
retry@0.12.0:
|
retry@0.12.0:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
retry@0.13.1: {}
|
||||||
|
|
||||||
reusify@1.1.0: {}
|
reusify@1.1.0: {}
|
||||||
|
|
||||||
rfc4648@1.5.4: {}
|
rfc4648@1.5.4: {}
|
||||||
@@ -3696,6 +3892,11 @@ snapshots:
|
|||||||
|
|
||||||
tildify@2.0.0: {}
|
tildify@2.0.0: {}
|
||||||
|
|
||||||
|
tinyglobby@0.2.14:
|
||||||
|
dependencies:
|
||||||
|
fdir: 6.4.6(picomatch@4.0.3)
|
||||||
|
picomatch: 4.0.3
|
||||||
|
|
||||||
to-regex-range@5.0.1:
|
to-regex-range@5.0.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
is-number: 7.0.0
|
is-number: 7.0.0
|
||||||
|
|||||||
18
src/__generated__/resources/K8SAddonV1.json
generated
Normal file
18
src/__generated__/resources/K8SAddonV1.json
generated
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"checksum": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
13
src/__generated__/resources/K8SAddonV1.ts
generated
Normal file
13
src/__generated__/resources/K8SAddonV1.ts
generated
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SAddonV1 {
|
||||||
|
spec?: {
|
||||||
|
checksum?: string;
|
||||||
|
source?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
376
src/__generated__/resources/K8SAppProjectV1alpha1.json
generated
Normal file
376
src/__generated__/resources/K8SAppProjectV1alpha1.json
generated
Normal file
@@ -0,0 +1,376 @@
|
|||||||
|
{
|
||||||
|
"description": "AppProject provides a logical grouping of applications, providing controls for:\n* where the apps may deploy to (cluster whitelist)\n* what may be deployed (repository whitelist, resource whitelist/blacklist)\n* who can access these applications (roles, OIDC group claims bindings)\n* and what they can do (RBAC policies)\n* automation access to these roles (JWT tokens)",
|
||||||
|
"properties": {
|
||||||
|
"apiVersion": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"description": "AppProjectSpec is the specification of an AppProject",
|
||||||
|
"properties": {
|
||||||
|
"clusterResourceBlacklist": {
|
||||||
|
"description": "ClusterResourceBlacklist contains list of blacklisted cluster level resources",
|
||||||
|
"items": {
|
||||||
|
"description": "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying\nconcepts during lookup stages without having partially valid types",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"group",
|
||||||
|
"kind"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"clusterResourceWhitelist": {
|
||||||
|
"description": "ClusterResourceWhitelist contains list of whitelisted cluster level resources",
|
||||||
|
"items": {
|
||||||
|
"description": "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying\nconcepts during lookup stages without having partially valid types",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"group",
|
||||||
|
"kind"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"description": "Description contains optional project description",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"destinationServiceAccounts": {
|
||||||
|
"description": "DestinationServiceAccounts holds information about the service accounts to be impersonated for the application sync operation for each destination.",
|
||||||
|
"items": {
|
||||||
|
"description": "ApplicationDestinationServiceAccount holds information about the service account to be impersonated for the application sync operation.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"defaultServiceAccount",
|
||||||
|
"server"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"defaultServiceAccount": {
|
||||||
|
"description": "DefaultServiceAccount to be used for impersonation during the sync operation",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "Namespace specifies the target namespace for the application's resources.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"server": {
|
||||||
|
"description": "Server specifies the URL of the target cluster's Kubernetes control plane API.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"destinations": {
|
||||||
|
"description": "Destinations contains list of destinations available for deployment",
|
||||||
|
"items": {
|
||||||
|
"description": "ApplicationDestination holds information about the application's destination",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Name is an alternate way of specifying the target cluster by its symbolic name. This must be set if Server is not set.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "Namespace specifies the target namespace for the application's resources.\nThe namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"server": {
|
||||||
|
"description": "Server specifies the URL of the target cluster's Kubernetes control plane API. This must be set if Name is not set.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"namespaceResourceBlacklist": {
|
||||||
|
"description": "NamespaceResourceBlacklist contains list of blacklisted namespace level resources",
|
||||||
|
"items": {
|
||||||
|
"description": "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying\nconcepts during lookup stages without having partially valid types",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"group",
|
||||||
|
"kind"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"namespaceResourceWhitelist": {
|
||||||
|
"description": "NamespaceResourceWhitelist contains list of whitelisted namespace level resources",
|
||||||
|
"items": {
|
||||||
|
"description": "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying\nconcepts during lookup stages without having partially valid types",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"group",
|
||||||
|
"kind"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"orphanedResources": {
|
||||||
|
"description": "OrphanedResources specifies if controller should monitor orphaned resources of apps in this project",
|
||||||
|
"properties": {
|
||||||
|
"ignore": {
|
||||||
|
"description": "Ignore contains a list of resources that are to be excluded from orphaned resources monitoring",
|
||||||
|
"items": {
|
||||||
|
"description": "OrphanedResourceKey is a reference to a resource to be ignored from",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"warn": {
|
||||||
|
"description": "Warn indicates if warning condition should be created for apps which have orphaned resources",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"permitOnlyProjectScopedClusters": {
|
||||||
|
"description": "PermitOnlyProjectScopedClusters determines whether destinations can only reference clusters which are project-scoped",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"roles": {
|
||||||
|
"description": "Roles are user defined RBAC roles associated with this project",
|
||||||
|
"items": {
|
||||||
|
"description": "ProjectRole represents a role that has access to a project",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"description": {
|
||||||
|
"description": "Description is a description of the role",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"groups": {
|
||||||
|
"description": "Groups are a list of OIDC group claims bound to this role",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"jwtTokens": {
|
||||||
|
"description": "JWTTokens are a list of generated JWT tokens bound to this role",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"description": "JWTToken holds the issuedAt and expiresAt values of a token",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"iat"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"exp": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"iat": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name is a name for this role",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"policies": {
|
||||||
|
"description": "Policies Stores a list of casbin formatted strings that define access policies for the role in the project",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"signatureKeys": {
|
||||||
|
"description": "SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync",
|
||||||
|
"items": {
|
||||||
|
"description": "SignatureKey is the specification of a key required to verify commit signatures with",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"keyID"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"keyID": {
|
||||||
|
"description": "The ID of the key in hexadecimal notation",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"sourceNamespaces": {
|
||||||
|
"description": "SourceNamespaces defines the namespaces application resources are allowed to be created in",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"sourceRepos": {
|
||||||
|
"description": "SourceRepos contains list of repository URLs which can be used for deployment",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"syncWindows": {
|
||||||
|
"description": "SyncWindows controls when syncs can be run for apps in this project",
|
||||||
|
"items": {
|
||||||
|
"description": "SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"andOperator": {
|
||||||
|
"description": "UseAndOperator use AND operator for matching applications, namespaces and clusters instead of the default OR operator",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"applications": {
|
||||||
|
"description": "Applications contains a list of applications that the window will apply to",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clusters": {
|
||||||
|
"description": "Clusters contains a list of clusters that the window will apply to",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"duration": {
|
||||||
|
"description": "Duration is the amount of time the sync window will be open",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "Kind defines if the window allows or blocks syncs",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"manualSync": {
|
||||||
|
"description": "ManualSync enables manual syncs when they would otherwise be blocked",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"namespaces": {
|
||||||
|
"description": "Namespaces contains a list of namespaces that the window will apply to",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"schedule": {
|
||||||
|
"description": "Schedule is the time the window will begin, specified in cron format",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"timeZone": {
|
||||||
|
"description": "TimeZone of the sync that will be applied to the schedule",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "AppProjectStatus contains status information for AppProject CRs",
|
||||||
|
"properties": {
|
||||||
|
"jwtTokensByRole": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"description": "JWTTokens represents a list of JWT tokens",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"items": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"description": "JWTToken holds the issuedAt and expiresAt values of a token",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"iat"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"exp": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"iat": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "JWTTokensByRole contains a list of JWT tokens issued for a given role",
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"metadata",
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
233
src/__generated__/resources/K8SAppProjectV1alpha1.ts
generated
Normal file
233
src/__generated__/resources/K8SAppProjectV1alpha1.ts
generated
Normal file
@@ -0,0 +1,233 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AppProject provides a logical grouping of applications, providing controls for:
|
||||||
|
* * where the apps may deploy to (cluster whitelist)
|
||||||
|
* * what may be deployed (repository whitelist, resource whitelist/blacklist)
|
||||||
|
* * who can access these applications (roles, OIDC group claims bindings)
|
||||||
|
* * and what they can do (RBAC policies)
|
||||||
|
* * automation access to these roles (JWT tokens)
|
||||||
|
*/
|
||||||
|
export interface K8SAppProjectV1Alpha1 {
|
||||||
|
/**
|
||||||
|
* APIVersion defines the versioned schema of this representation of an object.
|
||||||
|
* Servers should convert recognized schemas to the latest internal value, and
|
||||||
|
* may reject unrecognized values.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
|
*/
|
||||||
|
apiVersion?: string;
|
||||||
|
/**
|
||||||
|
* Kind is a string value representing the REST resource this object represents.
|
||||||
|
* Servers may infer this from the endpoint the client submits requests to.
|
||||||
|
* Cannot be updated.
|
||||||
|
* In CamelCase.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
metadata: {};
|
||||||
|
/**
|
||||||
|
* AppProjectSpec is the specification of an AppProject
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* ClusterResourceBlacklist contains list of blacklisted cluster level resources
|
||||||
|
*/
|
||||||
|
clusterResourceBlacklist?: {
|
||||||
|
group: string;
|
||||||
|
kind: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* ClusterResourceWhitelist contains list of whitelisted cluster level resources
|
||||||
|
*/
|
||||||
|
clusterResourceWhitelist?: {
|
||||||
|
group: string;
|
||||||
|
kind: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Description contains optional project description
|
||||||
|
*/
|
||||||
|
description?: string;
|
||||||
|
/**
|
||||||
|
* DestinationServiceAccounts holds information about the service accounts to be impersonated for the application sync operation for each destination.
|
||||||
|
*/
|
||||||
|
destinationServiceAccounts?: {
|
||||||
|
/**
|
||||||
|
* DefaultServiceAccount to be used for impersonation during the sync operation
|
||||||
|
*/
|
||||||
|
defaultServiceAccount: string;
|
||||||
|
/**
|
||||||
|
* Namespace specifies the target namespace for the application's resources.
|
||||||
|
*/
|
||||||
|
namespace?: string;
|
||||||
|
/**
|
||||||
|
* Server specifies the URL of the target cluster's Kubernetes control plane API.
|
||||||
|
*/
|
||||||
|
server: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Destinations contains list of destinations available for deployment
|
||||||
|
*/
|
||||||
|
destinations?: {
|
||||||
|
/**
|
||||||
|
* Name is an alternate way of specifying the target cluster by its symbolic name. This must be set if Server is not set.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Namespace specifies the target namespace for the application's resources.
|
||||||
|
* The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace
|
||||||
|
*/
|
||||||
|
namespace?: string;
|
||||||
|
/**
|
||||||
|
* Server specifies the URL of the target cluster's Kubernetes control plane API. This must be set if Name is not set.
|
||||||
|
*/
|
||||||
|
server?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* NamespaceResourceBlacklist contains list of blacklisted namespace level resources
|
||||||
|
*/
|
||||||
|
namespaceResourceBlacklist?: {
|
||||||
|
group: string;
|
||||||
|
kind: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* NamespaceResourceWhitelist contains list of whitelisted namespace level resources
|
||||||
|
*/
|
||||||
|
namespaceResourceWhitelist?: {
|
||||||
|
group: string;
|
||||||
|
kind: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* OrphanedResources specifies if controller should monitor orphaned resources of apps in this project
|
||||||
|
*/
|
||||||
|
orphanedResources?: {
|
||||||
|
/**
|
||||||
|
* Ignore contains a list of resources that are to be excluded from orphaned resources monitoring
|
||||||
|
*/
|
||||||
|
ignore?: {
|
||||||
|
group?: string;
|
||||||
|
kind?: string;
|
||||||
|
name?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Warn indicates if warning condition should be created for apps which have orphaned resources
|
||||||
|
*/
|
||||||
|
warn?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* PermitOnlyProjectScopedClusters determines whether destinations can only reference clusters which are project-scoped
|
||||||
|
*/
|
||||||
|
permitOnlyProjectScopedClusters?: boolean;
|
||||||
|
/**
|
||||||
|
* Roles are user defined RBAC roles associated with this project
|
||||||
|
*/
|
||||||
|
roles?: {
|
||||||
|
/**
|
||||||
|
* Description is a description of the role
|
||||||
|
*/
|
||||||
|
description?: string;
|
||||||
|
/**
|
||||||
|
* Groups are a list of OIDC group claims bound to this role
|
||||||
|
*/
|
||||||
|
groups?: string[];
|
||||||
|
/**
|
||||||
|
* JWTTokens are a list of generated JWT tokens bound to this role
|
||||||
|
*/
|
||||||
|
jwtTokens?: {
|
||||||
|
exp?: number;
|
||||||
|
iat: number;
|
||||||
|
id?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Name is a name for this role
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* Policies Stores a list of casbin formatted strings that define access policies for the role in the project
|
||||||
|
*/
|
||||||
|
policies?: string[];
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync
|
||||||
|
*/
|
||||||
|
signatureKeys?: {
|
||||||
|
/**
|
||||||
|
* The ID of the key in hexadecimal notation
|
||||||
|
*/
|
||||||
|
keyID: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* SourceNamespaces defines the namespaces application resources are allowed to be created in
|
||||||
|
*/
|
||||||
|
sourceNamespaces?: string[];
|
||||||
|
/**
|
||||||
|
* SourceRepos contains list of repository URLs which can be used for deployment
|
||||||
|
*/
|
||||||
|
sourceRepos?: string[];
|
||||||
|
/**
|
||||||
|
* SyncWindows controls when syncs can be run for apps in this project
|
||||||
|
*/
|
||||||
|
syncWindows?: {
|
||||||
|
/**
|
||||||
|
* UseAndOperator use AND operator for matching applications, namespaces and clusters instead of the default OR operator
|
||||||
|
*/
|
||||||
|
andOperator?: boolean;
|
||||||
|
/**
|
||||||
|
* Applications contains a list of applications that the window will apply to
|
||||||
|
*/
|
||||||
|
applications?: string[];
|
||||||
|
/**
|
||||||
|
* Clusters contains a list of clusters that the window will apply to
|
||||||
|
*/
|
||||||
|
clusters?: string[];
|
||||||
|
/**
|
||||||
|
* Duration is the amount of time the sync window will be open
|
||||||
|
*/
|
||||||
|
duration?: string;
|
||||||
|
/**
|
||||||
|
* Kind defines if the window allows or blocks syncs
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
/**
|
||||||
|
* ManualSync enables manual syncs when they would otherwise be blocked
|
||||||
|
*/
|
||||||
|
manualSync?: boolean;
|
||||||
|
/**
|
||||||
|
* Namespaces contains a list of namespaces that the window will apply to
|
||||||
|
*/
|
||||||
|
namespaces?: string[];
|
||||||
|
/**
|
||||||
|
* Schedule is the time the window will begin, specified in cron format
|
||||||
|
*/
|
||||||
|
schedule?: string;
|
||||||
|
/**
|
||||||
|
* TimeZone of the sync that will be applied to the schedule
|
||||||
|
*/
|
||||||
|
timeZone?: string;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* AppProjectStatus contains status information for AppProject CRs
|
||||||
|
*/
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* JWTTokensByRole contains a list of JWT tokens issued for a given role
|
||||||
|
*/
|
||||||
|
jwtTokensByRole?: {
|
||||||
|
/**
|
||||||
|
* JWTTokens represents a list of JWT tokens
|
||||||
|
*/
|
||||||
|
[k: string]: {
|
||||||
|
items?: {
|
||||||
|
exp?: number;
|
||||||
|
iat: number;
|
||||||
|
id?: string;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
26928
src/__generated__/resources/K8SApplicationSetV1alpha1.json
generated
Normal file
26928
src/__generated__/resources/K8SApplicationSetV1alpha1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
7835
src/__generated__/resources/K8SApplicationSetV1alpha1.ts
generated
Normal file
7835
src/__generated__/resources/K8SApplicationSetV1alpha1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
6513
src/__generated__/resources/K8SApplicationV1alpha1.json
generated
Normal file
6513
src/__generated__/resources/K8SApplicationV1alpha1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
4608
src/__generated__/resources/K8SApplicationV1alpha1.ts
generated
Normal file
4608
src/__generated__/resources/K8SApplicationV1alpha1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
116
src/__generated__/resources/K8SAuthentikClientV1.json
generated
Normal file
116
src/__generated__/resources/K8SAuthentikClientV1.json
generated
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"authentik": {
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"clientType": {
|
||||||
|
"_enum": [
|
||||||
|
"confidential",
|
||||||
|
"public"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"redirectUris": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"url",
|
||||||
|
"matchingMode"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"matchingMode": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"strict",
|
||||||
|
"regex"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"subMode": {
|
||||||
|
"_enum": [
|
||||||
|
"hashed_user_id",
|
||||||
|
"user_id",
|
||||||
|
"user_uuid",
|
||||||
|
"user_username",
|
||||||
|
"user_email",
|
||||||
|
"user_upn",
|
||||||
|
"11184809"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"authentik",
|
||||||
|
"redirectUris"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
31
src/__generated__/resources/K8SAuthentikClientV1.ts
generated
Normal file
31
src/__generated__/resources/K8SAuthentikClientV1.ts
generated
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SAuthentikClientV1 {
|
||||||
|
spec?: {
|
||||||
|
authentik: {
|
||||||
|
name: string;
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
clientType?: string;
|
||||||
|
redirectUris: {
|
||||||
|
matchingMode: "strict" | "regex";
|
||||||
|
url: string;
|
||||||
|
}[];
|
||||||
|
subMode?: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
78
src/__generated__/resources/K8SAuthentikServerV1.json
generated
Normal file
78
src/__generated__/resources/K8SAuthentikServerV1.json
generated
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"domain": {
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"subdomain": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"domain",
|
||||||
|
"subdomain"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
26
src/__generated__/resources/K8SAuthentikServerV1.ts
generated
Normal file
26
src/__generated__/resources/K8SAuthentikServerV1.ts
generated
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SAuthentikServerV1 {
|
||||||
|
spec?: {
|
||||||
|
domain: {
|
||||||
|
name: string;
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
subdomain: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
463
src/__generated__/resources/K8SAuthorizationPolicyV1.json
generated
Normal file
463
src/__generated__/resources/K8SAuthorizationPolicyV1.json
generated
Normal file
@@ -0,0 +1,463 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"provider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"provider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"action": {
|
||||||
|
"description": "Optional.\n\nValid Options: ALLOW, DENY, AUDIT, CUSTOM",
|
||||||
|
"_enum": [
|
||||||
|
"ALLOW",
|
||||||
|
"DENY",
|
||||||
|
"AUDIT",
|
||||||
|
"CUSTOM"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"provider": {
|
||||||
|
"description": "Specifies detailed configuration of the CUSTOM action.",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Specifies the name of the extension provider.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"from": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"source": {
|
||||||
|
"description": "Source specifies the source of a request.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"ipBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"namespaces": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notNamespaces": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notRemoteIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notRequestPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"principals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requestPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"operation": {
|
||||||
|
"description": "Operation specifies the operation of a request.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"hosts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"methods": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notHosts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notMethods": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPaths": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPorts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"when": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"key"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"description": "The name of an Istio attribute.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"notValues": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"values": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
75
src/__generated__/resources/K8SAuthorizationPolicyV1.ts
generated
Normal file
75
src/__generated__/resources/K8SAuthorizationPolicyV1.ts
generated
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SAuthorizationPolicyV1 {
|
||||||
|
/**
|
||||||
|
* Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
463
src/__generated__/resources/K8SAuthorizationPolicyV1beta1.json
generated
Normal file
463
src/__generated__/resources/K8SAuthorizationPolicyV1beta1.json
generated
Normal file
@@ -0,0 +1,463 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"provider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"provider"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"action": {
|
||||||
|
"description": "Optional.\n\nValid Options: ALLOW, DENY, AUDIT, CUSTOM",
|
||||||
|
"_enum": [
|
||||||
|
"ALLOW",
|
||||||
|
"DENY",
|
||||||
|
"AUDIT",
|
||||||
|
"CUSTOM"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"provider": {
|
||||||
|
"description": "Specifies detailed configuration of the CUSTOM action.",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Specifies the name of the extension provider.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"from": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"source": {
|
||||||
|
"description": "Source specifies the source of a request.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"ipBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"namespaces": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notNamespaces": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notRemoteIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notRequestPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"principals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"remoteIpBlocks": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"requestPrincipals": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"operation": {
|
||||||
|
"description": "Operation specifies the operation of a request.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"hosts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"methods": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notHosts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notMethods": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPaths": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notPorts": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"paths": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"when": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"key"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"description": "The name of an Istio attribute.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"notValues": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"values": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
75
src/__generated__/resources/K8SAuthorizationPolicyV1beta1.ts
generated
Normal file
75
src/__generated__/resources/K8SAuthorizationPolicyV1beta1.ts
generated
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SAuthorizationPolicyV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
185
src/__generated__/resources/K8SCertificateRequestV1.json
generated
Normal file
185
src/__generated__/resources/K8SCertificateRequestV1.json
generated
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
{
|
||||||
|
"description": "A CertificateRequest is used to request a signed certificate from one of the\nconfigured issuers.\n\nAll fields within the CertificateRequest's `spec` are immutable after creation.\nA CertificateRequest will either succeed or fail, as denoted by its `Ready` status\ncondition and its `status.failureTime` field.\n\nA CertificateRequest is a one-shot resource, meaning it represents a single\npoint in time request for a certificate and cannot be re-used.",
|
||||||
|
"properties": {
|
||||||
|
"apiVersion": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"description": "Specification of the desired state of the CertificateRequest resource.\nhttps://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
|
"properties": {
|
||||||
|
"duration": {
|
||||||
|
"description": "Requested 'duration' (i.e. lifetime) of the Certificate. Note that the\nissuer may choose to ignore the requested duration, just like any other\nrequested attribute.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Extra contains extra attributes of the user that created the CertificateRequest.\nPopulated by the cert-manager webhook on creation and immutable.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"groups": {
|
||||||
|
"description": "Groups contains group membership of the user that created the CertificateRequest.\nPopulated by the cert-manager webhook on creation and immutable.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_type": "atomic"
|
||||||
|
},
|
||||||
|
"isCA": {
|
||||||
|
"description": "Requested basic constraints isCA value. Note that the issuer may choose\nto ignore the requested isCA value, just like any other requested attribute.\n\nNOTE: If the CSR in the `Request` field has a BasicConstraints extension,\nit must have the same isCA value as specified here.\n\nIf true, this will automatically add the `cert sign` usage to the list\nof requested `usages`.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"issuerRef": {
|
||||||
|
"description": "Reference to the issuer responsible for issuing the certificate.\nIf the issuer is namespace-scoped, it must be in the same namespace\nas the Certificate. If the issuer is cluster-scoped, it can be used\nfrom any namespace.\n\nThe `name` field of the reference must always be specified.",
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "Group of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "Kind of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"request": {
|
||||||
|
"description": "The PEM-encoded X.509 certificate signing request to be submitted to the\nissuer for signing.\n\nIf the CSR has a BasicConstraints extension, its isCA attribute must\nmatch the `isCA` value of this CertificateRequest.\nIf the CSR has a KeyUsage extension, its key usages must match the\nkey usages in the `usages` field of this CertificateRequest.\nIf the CSR has a ExtKeyUsage extension, its extended key usages\nmust match the extended key usages in the `usages` field of this\nCertificateRequest.",
|
||||||
|
"format": "byte",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"uid": {
|
||||||
|
"description": "UID contains the uid of the user that created the CertificateRequest.\nPopulated by the cert-manager webhook on creation and immutable.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"usages": {
|
||||||
|
"description": "Requested key usages and extended key usages.\n\nNOTE: If the CSR in the `Request` field has uses the KeyUsage or\nExtKeyUsage extension, these extensions must have the same values\nas specified here without any additional values.\n\nIf unset, defaults to `digital signature` and `key encipherment`.",
|
||||||
|
"items": {
|
||||||
|
"description": "KeyUsage specifies valid usage contexts for keys.\nSee:\nhttps://tools.ietf.org/html/rfc5280#section-4.2.1.3\nhttps://tools.ietf.org/html/rfc5280#section-4.2.1.12\n\nValid KeyUsage values are as follows:\n\"signing\",\n\"digital signature\",\n\"content commitment\",\n\"key encipherment\",\n\"key agreement\",\n\"data encipherment\",\n\"cert sign\",\n\"crl sign\",\n\"encipher only\",\n\"decipher only\",\n\"any\",\n\"server auth\",\n\"client auth\",\n\"code signing\",\n\"email protection\",\n\"s/mime\",\n\"ipsec end system\",\n\"ipsec tunnel\",\n\"ipsec user\",\n\"timestamping\",\n\"ocsp signing\",\n\"microsoft sgc\",\n\"netscape sgc\"",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"signing",
|
||||||
|
"digital signature",
|
||||||
|
"content commitment",
|
||||||
|
"key encipherment",
|
||||||
|
"key agreement",
|
||||||
|
"data encipherment",
|
||||||
|
"cert sign",
|
||||||
|
"crl sign",
|
||||||
|
"encipher only",
|
||||||
|
"decipher only",
|
||||||
|
"any",
|
||||||
|
"server auth",
|
||||||
|
"client auth",
|
||||||
|
"code signing",
|
||||||
|
"email protection",
|
||||||
|
"s/mime",
|
||||||
|
"ipsec end system",
|
||||||
|
"ipsec tunnel",
|
||||||
|
"ipsec user",
|
||||||
|
"timestamping",
|
||||||
|
"ocsp signing",
|
||||||
|
"microsoft sgc",
|
||||||
|
"netscape sgc"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"description": "Username contains the name of the user that created the CertificateRequest.\nPopulated by the cert-manager webhook on creation and immutable.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"issuerRef",
|
||||||
|
"request"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status of the CertificateRequest.\nThis is set and managed automatically.\nRead-only.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
|
"properties": {
|
||||||
|
"ca": {
|
||||||
|
"description": "The PEM encoded X.509 certificate of the signer, also known as the CA\n(Certificate Authority).\nThis is set on a best-effort basis by different issuers.\nIf not set, the CA is assumed to be unknown/not available.",
|
||||||
|
"format": "byte",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"certificate": {
|
||||||
|
"description": "The PEM encoded X.509 certificate resulting from the certificate\nsigning request.\nIf not set, the CertificateRequest has either not been completed or has\nfailed. More information on failure can be found by checking the\n`conditions` field.",
|
||||||
|
"format": "byte",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"conditions": {
|
||||||
|
"description": "List of status conditions to indicate the status of a CertificateRequest.\nKnown condition types are `Ready`, `InvalidRequest`, `Approved` and `Denied`.",
|
||||||
|
"items": {
|
||||||
|
"description": "CertificateRequestCondition contains condition information for a CertificateRequest.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"status",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "LastTransitionTime is the timestamp corresponding to the last status\nchange of this condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Message is a human readable description of the details of the last\ntransition, complementing reason.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Reason is a brief machine readable explanation for the condition's last\ntransition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status of the condition, one of (`True`, `False`, `Unknown`).",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type of the condition, known values are (`Ready`, `InvalidRequest`,\n`Approved`, `Denied`).",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map"
|
||||||
|
},
|
||||||
|
"failureTime": {
|
||||||
|
"description": "FailureTime stores the time that this CertificateRequest failed. This is\nused to influence garbage collection and back-off.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
208
src/__generated__/resources/K8SCertificateRequestV1.ts
generated
Normal file
208
src/__generated__/resources/K8SCertificateRequestV1.ts
generated
Normal file
@@ -0,0 +1,208 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A CertificateRequest is used to request a signed certificate from one of the
|
||||||
|
* configured issuers.
|
||||||
|
*
|
||||||
|
* All fields within the CertificateRequest's `spec` are immutable after creation.
|
||||||
|
* A CertificateRequest will either succeed or fail, as denoted by its `Ready` status
|
||||||
|
* condition and its `status.failureTime` field.
|
||||||
|
*
|
||||||
|
* A CertificateRequest is a one-shot resource, meaning it represents a single
|
||||||
|
* point in time request for a certificate and cannot be re-used.
|
||||||
|
*/
|
||||||
|
export interface K8SCertificateRequestV1 {
|
||||||
|
/**
|
||||||
|
* APIVersion defines the versioned schema of this representation of an object.
|
||||||
|
* Servers should convert recognized schemas to the latest internal value, and
|
||||||
|
* may reject unrecognized values.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
|
*/
|
||||||
|
apiVersion?: string;
|
||||||
|
/**
|
||||||
|
* Kind is a string value representing the REST resource this object represents.
|
||||||
|
* Servers may infer this from the endpoint the client submits requests to.
|
||||||
|
* Cannot be updated.
|
||||||
|
* In CamelCase.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
metadata?: {};
|
||||||
|
/**
|
||||||
|
* Specification of the desired state of the CertificateRequest resource.
|
||||||
|
* https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Requested 'duration' (i.e. lifetime) of the Certificate. Note that the
|
||||||
|
* issuer may choose to ignore the requested duration, just like any other
|
||||||
|
* requested attribute.
|
||||||
|
*/
|
||||||
|
duration?: string;
|
||||||
|
/**
|
||||||
|
* Extra contains extra attributes of the user that created the CertificateRequest.
|
||||||
|
* Populated by the cert-manager webhook on creation and immutable.
|
||||||
|
*/
|
||||||
|
extra?: {
|
||||||
|
[k: string]: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Groups contains group membership of the user that created the CertificateRequest.
|
||||||
|
* Populated by the cert-manager webhook on creation and immutable.
|
||||||
|
*/
|
||||||
|
groups?: string[];
|
||||||
|
/**
|
||||||
|
* Requested basic constraints isCA value. Note that the issuer may choose
|
||||||
|
* to ignore the requested isCA value, just like any other requested attribute.
|
||||||
|
*
|
||||||
|
* NOTE: If the CSR in the `Request` field has a BasicConstraints extension,
|
||||||
|
* it must have the same isCA value as specified here.
|
||||||
|
*
|
||||||
|
* If true, this will automatically add the `cert sign` usage to the list
|
||||||
|
* of requested `usages`.
|
||||||
|
*/
|
||||||
|
isCA?: boolean;
|
||||||
|
/**
|
||||||
|
* Reference to the issuer responsible for issuing the certificate.
|
||||||
|
* If the issuer is namespace-scoped, it must be in the same namespace
|
||||||
|
* as the Certificate. If the issuer is cluster-scoped, it can be used
|
||||||
|
* from any namespace.
|
||||||
|
*
|
||||||
|
* The `name` field of the reference must always be specified.
|
||||||
|
*/
|
||||||
|
issuerRef: {
|
||||||
|
/**
|
||||||
|
* Group of the resource being referred to.
|
||||||
|
*/
|
||||||
|
group?: string;
|
||||||
|
/**
|
||||||
|
* Kind of the resource being referred to.
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
/**
|
||||||
|
* Name of the resource being referred to.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The PEM-encoded X.509 certificate signing request to be submitted to the
|
||||||
|
* issuer for signing.
|
||||||
|
*
|
||||||
|
* If the CSR has a BasicConstraints extension, its isCA attribute must
|
||||||
|
* match the `isCA` value of this CertificateRequest.
|
||||||
|
* If the CSR has a KeyUsage extension, its key usages must match the
|
||||||
|
* key usages in the `usages` field of this CertificateRequest.
|
||||||
|
* If the CSR has a ExtKeyUsage extension, its extended key usages
|
||||||
|
* must match the extended key usages in the `usages` field of this
|
||||||
|
* CertificateRequest.
|
||||||
|
*/
|
||||||
|
request: string;
|
||||||
|
/**
|
||||||
|
* UID contains the uid of the user that created the CertificateRequest.
|
||||||
|
* Populated by the cert-manager webhook on creation and immutable.
|
||||||
|
*/
|
||||||
|
uid?: string;
|
||||||
|
/**
|
||||||
|
* Requested key usages and extended key usages.
|
||||||
|
*
|
||||||
|
* NOTE: If the CSR in the `Request` field has uses the KeyUsage or
|
||||||
|
* ExtKeyUsage extension, these extensions must have the same values
|
||||||
|
* as specified here without any additional values.
|
||||||
|
*
|
||||||
|
* If unset, defaults to `digital signature` and `key encipherment`.
|
||||||
|
*/
|
||||||
|
usages?: (
|
||||||
|
| "signing"
|
||||||
|
| "digital signature"
|
||||||
|
| "content commitment"
|
||||||
|
| "key encipherment"
|
||||||
|
| "key agreement"
|
||||||
|
| "data encipherment"
|
||||||
|
| "cert sign"
|
||||||
|
| "crl sign"
|
||||||
|
| "encipher only"
|
||||||
|
| "decipher only"
|
||||||
|
| "any"
|
||||||
|
| "server auth"
|
||||||
|
| "client auth"
|
||||||
|
| "code signing"
|
||||||
|
| "email protection"
|
||||||
|
| "s/mime"
|
||||||
|
| "ipsec end system"
|
||||||
|
| "ipsec tunnel"
|
||||||
|
| "ipsec user"
|
||||||
|
| "timestamping"
|
||||||
|
| "ocsp signing"
|
||||||
|
| "microsoft sgc"
|
||||||
|
| "netscape sgc"
|
||||||
|
)[];
|
||||||
|
/**
|
||||||
|
* Username contains the name of the user that created the CertificateRequest.
|
||||||
|
* Populated by the cert-manager webhook on creation and immutable.
|
||||||
|
*/
|
||||||
|
username?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Status of the CertificateRequest.
|
||||||
|
* This is set and managed automatically.
|
||||||
|
* Read-only.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
|
*/
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* The PEM encoded X.509 certificate of the signer, also known as the CA
|
||||||
|
* (Certificate Authority).
|
||||||
|
* This is set on a best-effort basis by different issuers.
|
||||||
|
* If not set, the CA is assumed to be unknown/not available.
|
||||||
|
*/
|
||||||
|
ca?: string;
|
||||||
|
/**
|
||||||
|
* The PEM encoded X.509 certificate resulting from the certificate
|
||||||
|
* signing request.
|
||||||
|
* If not set, the CertificateRequest has either not been completed or has
|
||||||
|
* failed. More information on failure can be found by checking the
|
||||||
|
* `conditions` field.
|
||||||
|
*/
|
||||||
|
certificate?: string;
|
||||||
|
/**
|
||||||
|
* List of status conditions to indicate the status of a CertificateRequest.
|
||||||
|
* Known condition types are `Ready`, `InvalidRequest`, `Approved` and `Denied`.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* LastTransitionTime is the timestamp corresponding to the last status
|
||||||
|
* change of this condition.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Message is a human readable description of the details of the last
|
||||||
|
* transition, complementing reason.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Reason is a brief machine readable explanation for the condition's last
|
||||||
|
* transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||||
|
*/
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
/**
|
||||||
|
* Type of the condition, known values are (`Ready`, `InvalidRequest`,
|
||||||
|
* `Approved`, `Denied`).
|
||||||
|
*/
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* FailureTime stores the time that this CertificateRequest failed. This is
|
||||||
|
* used to influence garbage collection and back-off.
|
||||||
|
*/
|
||||||
|
failureTime?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
564
src/__generated__/resources/K8SCertificateV1.json
generated
Normal file
564
src/__generated__/resources/K8SCertificateV1.json
generated
Normal file
@@ -0,0 +1,564 @@
|
|||||||
|
{
|
||||||
|
"description": "A Certificate resource should be created to ensure an up to date and signed\nX.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.\n\nThe stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).",
|
||||||
|
"properties": {
|
||||||
|
"apiVersion": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"description": "Specification of the desired state of the Certificate resource.\nhttps://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
|
"properties": {
|
||||||
|
"additionalOutputFormats": {
|
||||||
|
"description": "Defines extra output formats of the private key and signed certificate chain\nto be written to this Certificate's target Secret.",
|
||||||
|
"items": {
|
||||||
|
"description": "CertificateAdditionalOutputFormat defines an additional output format of a\nCertificate resource. These contain supplementary data formats of the signed\ncertificate chain and paired private key.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the name of the format type that should be written to the\nCertificate's target Secret.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DER",
|
||||||
|
"CombinedPEM"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"commonName": {
|
||||||
|
"description": "Requested common name X509 certificate subject attribute.\nMore info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6\nNOTE: TLS clients will ignore this value when any subject alternative name is\nset (see https://tools.ietf.org/html/rfc6125#section-6.4.4).\n\nShould have a length of 64 characters or fewer to avoid generating invalid CSRs.\nCannot be set if the `literalSubject` field is set.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"dnsNames": {
|
||||||
|
"description": "Requested DNS subject alternative names.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"duration": {
|
||||||
|
"description": "Requested 'duration' (i.e. lifetime) of the Certificate. Note that the\nissuer may choose to ignore the requested duration, just like any other\nrequested attribute.\n\nIf unset, this defaults to 90 days.\nMinimum accepted duration is 1 hour.\nValue must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"emailAddresses": {
|
||||||
|
"description": "Requested email subject alternative names.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"encodeUsagesInRequest": {
|
||||||
|
"description": "Whether the KeyUsage and ExtKeyUsage extensions should be set in the encoded CSR.\n\nThis option defaults to true, and should only be disabled if the target\nissuer does not support CSRs with these X509 KeyUsage/ ExtKeyUsage extensions.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"ipAddresses": {
|
||||||
|
"description": "Requested IP address subject alternative names.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"isCA": {
|
||||||
|
"description": "Requested basic constraints isCA value.\nThe isCA value is used to set the `isCA` field on the created CertificateRequest\nresources. Note that the issuer may choose to ignore the requested isCA value, just\nlike any other requested attribute.\n\nIf true, this will automatically add the `cert sign` usage to the list\nof requested `usages`.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"issuerRef": {
|
||||||
|
"description": "Reference to the issuer responsible for issuing the certificate.\nIf the issuer is namespace-scoped, it must be in the same namespace\nas the Certificate. If the issuer is cluster-scoped, it can be used\nfrom any namespace.\n\nThe `name` field of the reference must always be specified.",
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "Group of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "Kind of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"keystores": {
|
||||||
|
"description": "Additional keystore output formats to be stored in the Certificate's Secret.",
|
||||||
|
"properties": {
|
||||||
|
"jks": {
|
||||||
|
"description": "JKS configures options for storing a JKS keystore in the\n`spec.secretName` Secret resource.",
|
||||||
|
"properties": {
|
||||||
|
"alias": {
|
||||||
|
"description": "Alias specifies the alias of the key in the keystore, required by the JKS format.\nIf not provided, the default alias `certificate` will be used.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"create": {
|
||||||
|
"description": "Create enables JKS keystore creation for the Certificate.\nIf true, a file named `keystore.jks` will be created in the target\nSecret resource, encrypted using the password stored in\n`passwordSecretRef` or `password`.\nThe keystore file will be updated immediately.\nIf the issuer provided a CA certificate, a file named `truststore.jks`\nwill also be created in the target Secret resource, encrypted using the\npassword stored in `passwordSecretRef`\ncontaining the issuing Certificate Authority",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"password": {
|
||||||
|
"description": "Password provides a literal password used to encrypt the JKS keystore.\nMutually exclusive with passwordSecretRef.\nOne of password or passwordSecretRef must provide a password with a non-zero length.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"passwordSecretRef": {
|
||||||
|
"description": "PasswordSecretRef is a reference to a non-empty key in a Secret resource\ncontaining the password used to encrypt the JKS keystore.\nMutually exclusive with password.\nOne of password or passwordSecretRef must provide a password with a non-zero length.",
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"description": "The key of the entry in the Secret resource's `data` field to be used.\nSome instances of this field may be defaulted, in others it may be\nrequired.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the resource being referred to.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"pkcs12": {
|
||||||
|
"description": "PKCS12 configures options for storing a PKCS12 keystore in the\n`spec.secretName` Secret resource.",
|
||||||
|
"properties": {
|
||||||
|
"create": {
|
||||||
|
"description": "Create enables PKCS12 keystore creation for the Certificate.\nIf true, a file named `keystore.p12` will be created in the target\nSecret resource, encrypted using the password stored in\n`passwordSecretRef` or in `password`.\nThe keystore file will be updated immediately.\nIf the issuer provided a CA certificate, a file named `truststore.p12` will\nalso be created in the target Secret resource, encrypted using the\npassword stored in `passwordSecretRef` containing the issuing Certificate\nAuthority",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"password": {
|
||||||
|
"description": "Password provides a literal password used to encrypt the PKCS#12 keystore.\nMutually exclusive with passwordSecretRef.\nOne of password or passwordSecretRef must provide a password with a non-zero length.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"passwordSecretRef": {
|
||||||
|
"description": "PasswordSecretRef is a reference to a non-empty key in a Secret resource\ncontaining the password used to encrypt the PKCS#12 keystore.\nMutually exclusive with password.\nOne of password or passwordSecretRef must provide a password with a non-zero length.",
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"description": "The key of the entry in the Secret resource's `data` field to be used.\nSome instances of this field may be defaulted, in others it may be\nrequired.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the resource being referred to.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"profile": {
|
||||||
|
"description": "Profile specifies the key and certificate encryption algorithms and the HMAC algorithm\nused to create the PKCS12 keystore. Default value is `LegacyRC2` for backward compatibility.\n\nIf provided, allowed values are:\n`LegacyRC2`: Deprecated. Not supported by default in OpenSSL 3 or Java 20.\n`LegacyDES`: Less secure algorithm. Use this option for maximal compatibility.\n`Modern2023`: Secure algorithm. Use this option in case you have to always use secure algorithms\n(e.g., because of company policy). Please note that the security of the algorithm is not that important\nin reality, because the unencrypted certificate and private key are also stored in the Secret.",
|
||||||
|
"_enum": [
|
||||||
|
"LegacyRC2",
|
||||||
|
"LegacyDES",
|
||||||
|
"Modern2023"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"create"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"literalSubject": {
|
||||||
|
"description": "Requested X.509 certificate subject, represented using the LDAP \"String\nRepresentation of a Distinguished Name\" [1].\nImportant: the LDAP string format also specifies the order of the attributes\nin the subject, this is important when issuing certs for LDAP authentication.\nExample: `CN=foo,DC=corp,DC=example,DC=com`\nMore info [1]: https://datatracker.ietf.org/doc/html/rfc4514\nMore info: https://github.com/cert-manager/cert-manager/issues/3203\nMore info: https://github.com/cert-manager/cert-manager/issues/4424\n\nCannot be set if the `subject` or `commonName` field is set.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"nameConstraints": {
|
||||||
|
"description": "x.509 certificate NameConstraint extension which MUST NOT be used in a non-CA certificate.\nMore Info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.10\n\nThis is an Alpha Feature and is only enabled with the\n`--feature-gates=NameConstraints=true` option set on both\nthe controller and webhook components.",
|
||||||
|
"properties": {
|
||||||
|
"critical": {
|
||||||
|
"description": "if true then the name constraints are marked critical.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"excluded": {
|
||||||
|
"description": "Excluded contains the constraints which must be disallowed. Any name matching a\nrestriction in the excluded field is invalid regardless\nof information appearing in the permitted",
|
||||||
|
"properties": {
|
||||||
|
"dnsDomains": {
|
||||||
|
"description": "DNSDomains is a list of DNS domains that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"emailAddresses": {
|
||||||
|
"description": "EmailAddresses is a list of Email Addresses that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"ipRanges": {
|
||||||
|
"description": "IPRanges is a list of IP Ranges that are permitted or excluded.\nThis should be a valid CIDR notation.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"uriDomains": {
|
||||||
|
"description": "URIDomains is a list of URI domains that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"permitted": {
|
||||||
|
"description": "Permitted contains the constraints in which the names must be located.",
|
||||||
|
"properties": {
|
||||||
|
"dnsDomains": {
|
||||||
|
"description": "DNSDomains is a list of DNS domains that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"emailAddresses": {
|
||||||
|
"description": "EmailAddresses is a list of Email Addresses that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"ipRanges": {
|
||||||
|
"description": "IPRanges is a list of IP Ranges that are permitted or excluded.\nThis should be a valid CIDR notation.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"uriDomains": {
|
||||||
|
"description": "URIDomains is a list of URI domains that are permitted or excluded.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"otherNames": {
|
||||||
|
"description": "`otherNames` is an escape hatch for SAN that allows any type. We currently restrict the support to string like otherNames, cf RFC 5280 p 37\nAny UTF8 String valued otherName can be passed with by setting the keys oid: x.x.x.x and UTF8Value: somevalue for `otherName`.\nMost commonly this would be UPN set with oid: 1.3.6.1.4.1.311.20.2.3\nYou should ensure that any OID passed is valid for the UTF8String type as we do not explicitly validate this.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"oid": {
|
||||||
|
"description": "OID is the object identifier for the otherName SAN.\nThe object identifier must be expressed as a dotted string, for\nexample, \"1.2.840.113556.1.4.221\".",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"utf8Value": {
|
||||||
|
"description": "utf8Value is the string value of the otherName SAN.\nThe utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "Private key options. These include the key algorithm and size, the used\nencoding and the rotation policy.",
|
||||||
|
"properties": {
|
||||||
|
"algorithm": {
|
||||||
|
"description": "Algorithm is the private key algorithm of the corresponding private key\nfor this certificate.\n\nIf provided, allowed values are either `RSA`, `ECDSA` or `Ed25519`.\nIf `algorithm` is specified and `size` is not provided,\nkey size of 2048 will be used for `RSA` key algorithm and\nkey size of 256 will be used for `ECDSA` key algorithm.\nkey size is ignored when using the `Ed25519` key algorithm.",
|
||||||
|
"_enum": [
|
||||||
|
"RSA",
|
||||||
|
"ECDSA",
|
||||||
|
"Ed25519"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"encoding": {
|
||||||
|
"description": "The private key cryptography standards (PKCS) encoding for this\ncertificate's private key to be encoded in.\n\nIf provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1\nand PKCS#8, respectively.\nDefaults to `PKCS1` if not specified.",
|
||||||
|
"_enum": [
|
||||||
|
"PKCS1",
|
||||||
|
"PKCS8"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"rotationPolicy": {
|
||||||
|
"description": "RotationPolicy controls how private keys should be regenerated when a\nre-issuance is being processed.\n\nIf set to `Never`, a private key will only be generated if one does not\nalready exist in the target `spec.secretName`. If one does exist but it\ndoes not have the correct algorithm or size, a warning will be raised\nto await user intervention.\nIf set to `Always`, a private key matching the specified requirements\nwill be generated whenever a re-issuance occurs.\nDefault is `Always`.\nThe default was changed from `Never` to `Always` in cert-manager >=v1.18.0.\nThe new default can be disabled by setting the\n`--feature-gates=DefaultPrivateKeyRotationPolicyAlways=false` option on\nthe controller component.",
|
||||||
|
"_enum": [
|
||||||
|
"Never",
|
||||||
|
"Always"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"description": "Size is the key bit size of the corresponding private key for this certificate.\n\nIf `algorithm` is set to `RSA`, valid values are `2048`, `4096` or `8192`,\nand will default to `2048` if not specified.\nIf `algorithm` is set to `ECDSA`, valid values are `256`, `384` or `521`,\nand will default to `256` if not specified.\nIf `algorithm` is set to `Ed25519`, Size is ignored.\nNo other values are allowed.",
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"renewBefore": {
|
||||||
|
"description": "How long before the currently issued certificate's expiry cert-manager should\nrenew the certificate. For example, if a certificate is valid for 60 minutes,\nand `renewBefore=10m`, cert-manager will begin to attempt to renew the certificate\n50 minutes after it was issued (i.e. when there are 10 minutes remaining until\nthe certificate is no longer valid).\n\nNOTE: The actual lifetime of the issued certificate is used to determine the\nrenewal time. If an issuer returns a certificate with a different lifetime than\nthe one requested, cert-manager will use the lifetime of the issued certificate.\n\nIf unset, this defaults to 1/3 of the issued certificate's lifetime.\nMinimum accepted value is 5 minutes.\nValue must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration.\nCannot be set if the `renewBeforePercentage` field is set.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"renewBeforePercentage": {
|
||||||
|
"description": "`renewBeforePercentage` is like `renewBefore`, except it is a relative percentage\nrather than an absolute duration. For example, if a certificate is valid for 60\nminutes, and `renewBeforePercentage=25`, cert-manager will begin to attempt to\nrenew the certificate 45 minutes after it was issued (i.e. when there are 15\nminutes (25%) remaining until the certificate is no longer valid).\n\nNOTE: The actual lifetime of the issued certificate is used to determine the\nrenewal time. If an issuer returns a certificate with a different lifetime than\nthe one requested, cert-manager will use the lifetime of the issued certificate.\n\nValue must be an integer in the range (0,100). The minimum effective\n`renewBefore` derived from the `renewBeforePercentage` and `duration` fields is 5\nminutes.\nCannot be set if the `renewBefore` field is set.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"revisionHistoryLimit": {
|
||||||
|
"description": "The maximum number of CertificateRequest revisions that are maintained in\nthe Certificate's history. Each revision represents a single `CertificateRequest`\ncreated by this Certificate, either when it was created, renewed, or Spec\nwas changed. Revisions will be removed by oldest first if the number of\nrevisions exceeds this number.\n\nIf set, revisionHistoryLimit must be a value of `1` or greater.\nDefault value is `1`.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"secretName": {
|
||||||
|
"description": "Name of the Secret resource that will be automatically created and\nmanaged by this Certificate resource. It will be populated with a\nprivate key and certificate, signed by the denoted issuer. The Secret\nresource lives in the same namespace as the Certificate resource.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"secretTemplate": {
|
||||||
|
"description": "Defines annotations and labels to be copied to the Certificate's Secret.\nLabels and annotations on the Secret will be changed as they appear on the\nSecretTemplate when added or removed. SecretTemplate annotations are added\nin conjunction with, and cannot overwrite, the base set of annotations\ncert-manager sets on the Certificate's Secret.",
|
||||||
|
"properties": {
|
||||||
|
"annotations": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Annotations is a key value map to be copied to the target Kubernetes Secret.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Labels is a key value map to be copied to the target Kubernetes Secret.",
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"signatureAlgorithm": {
|
||||||
|
"description": "Signature algorithm to use.\nAllowed values for RSA keys: SHA256WithRSA, SHA384WithRSA, SHA512WithRSA.\nAllowed values for ECDSA keys: ECDSAWithSHA256, ECDSAWithSHA384, ECDSAWithSHA512.\nAllowed values for Ed25519 keys: PureEd25519.",
|
||||||
|
"_enum": [
|
||||||
|
"SHA256WithRSA",
|
||||||
|
"SHA384WithRSA",
|
||||||
|
"SHA512WithRSA",
|
||||||
|
"ECDSAWithSHA256",
|
||||||
|
"ECDSAWithSHA384",
|
||||||
|
"ECDSAWithSHA512",
|
||||||
|
"PureEd25519"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subject": {
|
||||||
|
"description": "Requested set of X509 certificate subject attributes.\nMore info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6\n\nThe common name attribute is specified separately in the `commonName` field.\nCannot be set if the `literalSubject` field is set.",
|
||||||
|
"properties": {
|
||||||
|
"countries": {
|
||||||
|
"description": "Countries to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"localities": {
|
||||||
|
"description": "Cities to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"organizationalUnits": {
|
||||||
|
"description": "Organizational Units to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"organizations": {
|
||||||
|
"description": "Organizations to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"postalCodes": {
|
||||||
|
"description": "Postal codes to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"provinces": {
|
||||||
|
"description": "State/Provinces to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"serialNumber": {
|
||||||
|
"description": "Serial number to be used on the Certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"streetAddresses": {
|
||||||
|
"description": "Street addresses to be used on the Certificate.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"uris": {
|
||||||
|
"description": "Requested URI subject alternative names.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"usages": {
|
||||||
|
"description": "Requested key usages and extended key usages.\nThese usages are used to set the `usages` field on the created CertificateRequest\nresources. If `encodeUsagesInRequest` is unset or set to `true`, the usages\nwill additionally be encoded in the `request` field which contains the CSR blob.\n\nIf unset, defaults to `digital signature` and `key encipherment`.",
|
||||||
|
"items": {
|
||||||
|
"description": "KeyUsage specifies valid usage contexts for keys.\nSee:\nhttps://tools.ietf.org/html/rfc5280#section-4.2.1.3\nhttps://tools.ietf.org/html/rfc5280#section-4.2.1.12\n\nValid KeyUsage values are as follows:\n\"signing\",\n\"digital signature\",\n\"content commitment\",\n\"key encipherment\",\n\"key agreement\",\n\"data encipherment\",\n\"cert sign\",\n\"crl sign\",\n\"encipher only\",\n\"decipher only\",\n\"any\",\n\"server auth\",\n\"client auth\",\n\"code signing\",\n\"email protection\",\n\"s/mime\",\n\"ipsec end system\",\n\"ipsec tunnel\",\n\"ipsec user\",\n\"timestamping\",\n\"ocsp signing\",\n\"microsoft sgc\",\n\"netscape sgc\"",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"signing",
|
||||||
|
"digital signature",
|
||||||
|
"content commitment",
|
||||||
|
"key encipherment",
|
||||||
|
"key agreement",
|
||||||
|
"data encipherment",
|
||||||
|
"cert sign",
|
||||||
|
"crl sign",
|
||||||
|
"encipher only",
|
||||||
|
"decipher only",
|
||||||
|
"any",
|
||||||
|
"server auth",
|
||||||
|
"client auth",
|
||||||
|
"code signing",
|
||||||
|
"email protection",
|
||||||
|
"s/mime",
|
||||||
|
"ipsec end system",
|
||||||
|
"ipsec tunnel",
|
||||||
|
"ipsec user",
|
||||||
|
"timestamping",
|
||||||
|
"ocsp signing",
|
||||||
|
"microsoft sgc",
|
||||||
|
"netscape sgc"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"issuerRef",
|
||||||
|
"secretName"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status of the Certificate.\nThis is set and managed automatically.\nRead-only.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "List of status conditions to indicate the status of certificates.\nKnown condition types are `Ready` and `Issuing`.",
|
||||||
|
"items": {
|
||||||
|
"description": "CertificateCondition contains condition information for a Certificate.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"status",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "LastTransitionTime is the timestamp corresponding to the last status\nchange of this condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Message is a human readable description of the details of the last\ntransition, complementing reason.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"description": "If set, this represents the .metadata.generation that the condition was\nset based upon.\nFor instance, if .metadata.generation is currently 12, but the\n.status.condition[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the Certificate.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Reason is a brief machine readable explanation for the condition's last\ntransition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status of the condition, one of (`True`, `False`, `Unknown`).",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type of the condition, known values are (`Ready`, `Issuing`).",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map"
|
||||||
|
},
|
||||||
|
"failedIssuanceAttempts": {
|
||||||
|
"description": "The number of continuous failed issuance attempts up till now. This\nfield gets removed (if set) on a successful issuance and gets set to\n1 if unset and an issuance has failed. If an issuance has failed, the\ndelay till the next issuance will be calculated using formula\ntime.Hour * 2 ^ (failedIssuanceAttempts - 1).",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"lastFailureTime": {
|
||||||
|
"description": "LastFailureTime is set only if the latest issuance for this\nCertificate failed and contains the time of the failure. If an\nissuance has failed, the delay till the next issuance will be\ncalculated using formula time.Hour * 2 ^ (failedIssuanceAttempts -\n1). If the latest issuance has succeeded this field will be unset.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"nextPrivateKeySecretName": {
|
||||||
|
"description": "The name of the Secret resource containing the private key to be used\nfor the next certificate iteration.\nThe keymanager controller will automatically set this field if the\n`Issuing` condition is set to `True`.\nIt will automatically unset this field when the Issuing condition is\nnot set or False.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"notAfter": {
|
||||||
|
"description": "The expiration time of the certificate stored in the secret named\nby this resource in `spec.secretName`.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"notBefore": {
|
||||||
|
"description": "The time after which the certificate stored in the secret named\nby this resource in `spec.secretName` is valid.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"renewalTime": {
|
||||||
|
"description": "RenewalTime is the time at which the certificate will be next\nrenewed.\nIf not set, no upcoming renewal is scheduled.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"revision": {
|
||||||
|
"description": "The current 'revision' of the certificate as issued.\n\nWhen a CertificateRequest resource is created, it will have the\n`cert-manager.io/certificate-revision` set to one greater than the\ncurrent value of this field.\n\nUpon issuance, this field will be set to the value of the annotation\non the CertificateRequest resource used to issue the certificate.\n\nPersisting the value on the CertificateRequest resource allows the\ncertificates controller to know whether a request is part of an old\nissuance or if it is part of the ongoing revision's issuance by\nchecking if the revision value in the annotation is greater than this\nfield.",
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
634
src/__generated__/resources/K8SCertificateV1.ts
generated
Normal file
634
src/__generated__/resources/K8SCertificateV1.ts
generated
Normal file
@@ -0,0 +1,634 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A Certificate resource should be created to ensure an up to date and signed
|
||||||
|
* X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
|
||||||
|
*
|
||||||
|
* The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
|
||||||
|
*/
|
||||||
|
export interface K8SCertificateV1 {
|
||||||
|
/**
|
||||||
|
* APIVersion defines the versioned schema of this representation of an object.
|
||||||
|
* Servers should convert recognized schemas to the latest internal value, and
|
||||||
|
* may reject unrecognized values.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
|
*/
|
||||||
|
apiVersion?: string;
|
||||||
|
/**
|
||||||
|
* Kind is a string value representing the REST resource this object represents.
|
||||||
|
* Servers may infer this from the endpoint the client submits requests to.
|
||||||
|
* Cannot be updated.
|
||||||
|
* In CamelCase.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
metadata?: {};
|
||||||
|
/**
|
||||||
|
* Specification of the desired state of the Certificate resource.
|
||||||
|
* https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Defines extra output formats of the private key and signed certificate chain
|
||||||
|
* to be written to this Certificate's target Secret.
|
||||||
|
*/
|
||||||
|
additionalOutputFormats?: {
|
||||||
|
/**
|
||||||
|
* Type is the name of the format type that should be written to the
|
||||||
|
* Certificate's target Secret.
|
||||||
|
*/
|
||||||
|
type: "DER" | "CombinedPEM";
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Requested common name X509 certificate subject attribute.
|
||||||
|
* More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
|
||||||
|
* NOTE: TLS clients will ignore this value when any subject alternative name is
|
||||||
|
* set (see https://tools.ietf.org/html/rfc6125#section-6.4.4).
|
||||||
|
*
|
||||||
|
* Should have a length of 64 characters or fewer to avoid generating invalid CSRs.
|
||||||
|
* Cannot be set if the `literalSubject` field is set.
|
||||||
|
*/
|
||||||
|
commonName?: string;
|
||||||
|
/**
|
||||||
|
* Requested DNS subject alternative names.
|
||||||
|
*/
|
||||||
|
dnsNames?: string[];
|
||||||
|
/**
|
||||||
|
* Requested 'duration' (i.e. lifetime) of the Certificate. Note that the
|
||||||
|
* issuer may choose to ignore the requested duration, just like any other
|
||||||
|
* requested attribute.
|
||||||
|
*
|
||||||
|
* If unset, this defaults to 90 days.
|
||||||
|
* Minimum accepted duration is 1 hour.
|
||||||
|
* Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration.
|
||||||
|
*/
|
||||||
|
duration?: string;
|
||||||
|
/**
|
||||||
|
* Requested email subject alternative names.
|
||||||
|
*/
|
||||||
|
emailAddresses?: string[];
|
||||||
|
/**
|
||||||
|
* Whether the KeyUsage and ExtKeyUsage extensions should be set in the encoded CSR.
|
||||||
|
*
|
||||||
|
* This option defaults to true, and should only be disabled if the target
|
||||||
|
* issuer does not support CSRs with these X509 KeyUsage/ ExtKeyUsage extensions.
|
||||||
|
*/
|
||||||
|
encodeUsagesInRequest?: boolean;
|
||||||
|
/**
|
||||||
|
* Requested IP address subject alternative names.
|
||||||
|
*/
|
||||||
|
ipAddresses?: string[];
|
||||||
|
/**
|
||||||
|
* Requested basic constraints isCA value.
|
||||||
|
* The isCA value is used to set the `isCA` field on the created CertificateRequest
|
||||||
|
* resources. Note that the issuer may choose to ignore the requested isCA value, just
|
||||||
|
* like any other requested attribute.
|
||||||
|
*
|
||||||
|
* If true, this will automatically add the `cert sign` usage to the list
|
||||||
|
* of requested `usages`.
|
||||||
|
*/
|
||||||
|
isCA?: boolean;
|
||||||
|
/**
|
||||||
|
* Reference to the issuer responsible for issuing the certificate.
|
||||||
|
* If the issuer is namespace-scoped, it must be in the same namespace
|
||||||
|
* as the Certificate. If the issuer is cluster-scoped, it can be used
|
||||||
|
* from any namespace.
|
||||||
|
*
|
||||||
|
* The `name` field of the reference must always be specified.
|
||||||
|
*/
|
||||||
|
issuerRef: {
|
||||||
|
/**
|
||||||
|
* Group of the resource being referred to.
|
||||||
|
*/
|
||||||
|
group?: string;
|
||||||
|
/**
|
||||||
|
* Kind of the resource being referred to.
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
/**
|
||||||
|
* Name of the resource being referred to.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Additional keystore output formats to be stored in the Certificate's Secret.
|
||||||
|
*/
|
||||||
|
keystores?: {
|
||||||
|
/**
|
||||||
|
* JKS configures options for storing a JKS keystore in the
|
||||||
|
* `spec.secretName` Secret resource.
|
||||||
|
*/
|
||||||
|
jks?: {
|
||||||
|
/**
|
||||||
|
* Alias specifies the alias of the key in the keystore, required by the JKS format.
|
||||||
|
* If not provided, the default alias `certificate` will be used.
|
||||||
|
*/
|
||||||
|
alias?: string;
|
||||||
|
/**
|
||||||
|
* Create enables JKS keystore creation for the Certificate.
|
||||||
|
* If true, a file named `keystore.jks` will be created in the target
|
||||||
|
* Secret resource, encrypted using the password stored in
|
||||||
|
* `passwordSecretRef` or `password`.
|
||||||
|
* The keystore file will be updated immediately.
|
||||||
|
* If the issuer provided a CA certificate, a file named `truststore.jks`
|
||||||
|
* will also be created in the target Secret resource, encrypted using the
|
||||||
|
* password stored in `passwordSecretRef`
|
||||||
|
* containing the issuing Certificate Authority
|
||||||
|
*/
|
||||||
|
create: boolean;
|
||||||
|
/**
|
||||||
|
* Password provides a literal password used to encrypt the JKS keystore.
|
||||||
|
* Mutually exclusive with passwordSecretRef.
|
||||||
|
* One of password or passwordSecretRef must provide a password with a non-zero length.
|
||||||
|
*/
|
||||||
|
password?: string;
|
||||||
|
/**
|
||||||
|
* PasswordSecretRef is a reference to a non-empty key in a Secret resource
|
||||||
|
* containing the password used to encrypt the JKS keystore.
|
||||||
|
* Mutually exclusive with password.
|
||||||
|
* One of password or passwordSecretRef must provide a password with a non-zero length.
|
||||||
|
*/
|
||||||
|
passwordSecretRef?: {
|
||||||
|
/**
|
||||||
|
* The key of the entry in the Secret resource's `data` field to be used.
|
||||||
|
* Some instances of this field may be defaulted, in others it may be
|
||||||
|
* required.
|
||||||
|
*/
|
||||||
|
key?: string;
|
||||||
|
/**
|
||||||
|
* Name of the resource being referred to.
|
||||||
|
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* PKCS12 configures options for storing a PKCS12 keystore in the
|
||||||
|
* `spec.secretName` Secret resource.
|
||||||
|
*/
|
||||||
|
pkcs12?: {
|
||||||
|
/**
|
||||||
|
* Create enables PKCS12 keystore creation for the Certificate.
|
||||||
|
* If true, a file named `keystore.p12` will be created in the target
|
||||||
|
* Secret resource, encrypted using the password stored in
|
||||||
|
* `passwordSecretRef` or in `password`.
|
||||||
|
* The keystore file will be updated immediately.
|
||||||
|
* If the issuer provided a CA certificate, a file named `truststore.p12` will
|
||||||
|
* also be created in the target Secret resource, encrypted using the
|
||||||
|
* password stored in `passwordSecretRef` containing the issuing Certificate
|
||||||
|
* Authority
|
||||||
|
*/
|
||||||
|
create: boolean;
|
||||||
|
/**
|
||||||
|
* Password provides a literal password used to encrypt the PKCS#12 keystore.
|
||||||
|
* Mutually exclusive with passwordSecretRef.
|
||||||
|
* One of password or passwordSecretRef must provide a password with a non-zero length.
|
||||||
|
*/
|
||||||
|
password?: string;
|
||||||
|
/**
|
||||||
|
* PasswordSecretRef is a reference to a non-empty key in a Secret resource
|
||||||
|
* containing the password used to encrypt the PKCS#12 keystore.
|
||||||
|
* Mutually exclusive with password.
|
||||||
|
* One of password or passwordSecretRef must provide a password with a non-zero length.
|
||||||
|
*/
|
||||||
|
passwordSecretRef?: {
|
||||||
|
/**
|
||||||
|
* The key of the entry in the Secret resource's `data` field to be used.
|
||||||
|
* Some instances of this field may be defaulted, in others it may be
|
||||||
|
* required.
|
||||||
|
*/
|
||||||
|
key?: string;
|
||||||
|
/**
|
||||||
|
* Name of the resource being referred to.
|
||||||
|
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Profile specifies the key and certificate encryption algorithms and the HMAC algorithm
|
||||||
|
* used to create the PKCS12 keystore. Default value is `LegacyRC2` for backward compatibility.
|
||||||
|
*
|
||||||
|
* If provided, allowed values are:
|
||||||
|
* `LegacyRC2`: Deprecated. Not supported by default in OpenSSL 3 or Java 20.
|
||||||
|
* `LegacyDES`: Less secure algorithm. Use this option for maximal compatibility.
|
||||||
|
* `Modern2023`: Secure algorithm. Use this option in case you have to always use secure algorithms
|
||||||
|
* (e.g., because of company policy). Please note that the security of the algorithm is not that important
|
||||||
|
* in reality, because the unencrypted certificate and private key are also stored in the Secret.
|
||||||
|
*/
|
||||||
|
profile?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Requested X.509 certificate subject, represented using the LDAP "String
|
||||||
|
* Representation of a Distinguished Name" [1].
|
||||||
|
* Important: the LDAP string format also specifies the order of the attributes
|
||||||
|
* in the subject, this is important when issuing certs for LDAP authentication.
|
||||||
|
* Example: `CN=foo,DC=corp,DC=example,DC=com`
|
||||||
|
* More info [1]: https://datatracker.ietf.org/doc/html/rfc4514
|
||||||
|
* More info: https://github.com/cert-manager/cert-manager/issues/3203
|
||||||
|
* More info: https://github.com/cert-manager/cert-manager/issues/4424
|
||||||
|
*
|
||||||
|
* Cannot be set if the `subject` or `commonName` field is set.
|
||||||
|
*/
|
||||||
|
literalSubject?: string;
|
||||||
|
/**
|
||||||
|
* x.509 certificate NameConstraint extension which MUST NOT be used in a non-CA certificate.
|
||||||
|
* More Info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.10
|
||||||
|
*
|
||||||
|
* This is an Alpha Feature and is only enabled with the
|
||||||
|
* `--feature-gates=NameConstraints=true` option set on both
|
||||||
|
* the controller and webhook components.
|
||||||
|
*/
|
||||||
|
nameConstraints?: {
|
||||||
|
/**
|
||||||
|
* if true then the name constraints are marked critical.
|
||||||
|
*/
|
||||||
|
critical?: boolean;
|
||||||
|
/**
|
||||||
|
* Excluded contains the constraints which must be disallowed. Any name matching a
|
||||||
|
* restriction in the excluded field is invalid regardless
|
||||||
|
* of information appearing in the permitted
|
||||||
|
*/
|
||||||
|
excluded?: {
|
||||||
|
/**
|
||||||
|
* DNSDomains is a list of DNS domains that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
dnsDomains?: string[];
|
||||||
|
/**
|
||||||
|
* EmailAddresses is a list of Email Addresses that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
emailAddresses?: string[];
|
||||||
|
/**
|
||||||
|
* IPRanges is a list of IP Ranges that are permitted or excluded.
|
||||||
|
* This should be a valid CIDR notation.
|
||||||
|
*/
|
||||||
|
ipRanges?: string[];
|
||||||
|
/**
|
||||||
|
* URIDomains is a list of URI domains that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
uriDomains?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Permitted contains the constraints in which the names must be located.
|
||||||
|
*/
|
||||||
|
permitted?: {
|
||||||
|
/**
|
||||||
|
* DNSDomains is a list of DNS domains that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
dnsDomains?: string[];
|
||||||
|
/**
|
||||||
|
* EmailAddresses is a list of Email Addresses that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
emailAddresses?: string[];
|
||||||
|
/**
|
||||||
|
* IPRanges is a list of IP Ranges that are permitted or excluded.
|
||||||
|
* This should be a valid CIDR notation.
|
||||||
|
*/
|
||||||
|
ipRanges?: string[];
|
||||||
|
/**
|
||||||
|
* URIDomains is a list of URI domains that are permitted or excluded.
|
||||||
|
*/
|
||||||
|
uriDomains?: string[];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* `otherNames` is an escape hatch for SAN that allows any type. We currently restrict the support to string like otherNames, cf RFC 5280 p 37
|
||||||
|
* Any UTF8 String valued otherName can be passed with by setting the keys oid: x.x.x.x and UTF8Value: somevalue for `otherName`.
|
||||||
|
* Most commonly this would be UPN set with oid: 1.3.6.1.4.1.311.20.2.3
|
||||||
|
* You should ensure that any OID passed is valid for the UTF8String type as we do not explicitly validate this.
|
||||||
|
*/
|
||||||
|
otherNames?: {
|
||||||
|
/**
|
||||||
|
* OID is the object identifier for the otherName SAN.
|
||||||
|
* The object identifier must be expressed as a dotted string, for
|
||||||
|
* example, "1.2.840.113556.1.4.221".
|
||||||
|
*/
|
||||||
|
oid?: string;
|
||||||
|
/**
|
||||||
|
* utf8Value is the string value of the otherName SAN.
|
||||||
|
* The utf8Value accepts any valid UTF8 string to set as value for the otherName SAN.
|
||||||
|
*/
|
||||||
|
utf8Value?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Private key options. These include the key algorithm and size, the used
|
||||||
|
* encoding and the rotation policy.
|
||||||
|
*/
|
||||||
|
privateKey?: {
|
||||||
|
/**
|
||||||
|
* Algorithm is the private key algorithm of the corresponding private key
|
||||||
|
* for this certificate.
|
||||||
|
*
|
||||||
|
* If provided, allowed values are either `RSA`, `ECDSA` or `Ed25519`.
|
||||||
|
* If `algorithm` is specified and `size` is not provided,
|
||||||
|
* key size of 2048 will be used for `RSA` key algorithm and
|
||||||
|
* key size of 256 will be used for `ECDSA` key algorithm.
|
||||||
|
* key size is ignored when using the `Ed25519` key algorithm.
|
||||||
|
*/
|
||||||
|
algorithm?: string;
|
||||||
|
/**
|
||||||
|
* The private key cryptography standards (PKCS) encoding for this
|
||||||
|
* certificate's private key to be encoded in.
|
||||||
|
*
|
||||||
|
* If provided, allowed values are `PKCS1` and `PKCS8` standing for PKCS#1
|
||||||
|
* and PKCS#8, respectively.
|
||||||
|
* Defaults to `PKCS1` if not specified.
|
||||||
|
*/
|
||||||
|
encoding?: string;
|
||||||
|
/**
|
||||||
|
* RotationPolicy controls how private keys should be regenerated when a
|
||||||
|
* re-issuance is being processed.
|
||||||
|
*
|
||||||
|
* If set to `Never`, a private key will only be generated if one does not
|
||||||
|
* already exist in the target `spec.secretName`. If one does exist but it
|
||||||
|
* does not have the correct algorithm or size, a warning will be raised
|
||||||
|
* to await user intervention.
|
||||||
|
* If set to `Always`, a private key matching the specified requirements
|
||||||
|
* will be generated whenever a re-issuance occurs.
|
||||||
|
* Default is `Always`.
|
||||||
|
* The default was changed from `Never` to `Always` in cert-manager >=v1.18.0.
|
||||||
|
* The new default can be disabled by setting the
|
||||||
|
* `--feature-gates=DefaultPrivateKeyRotationPolicyAlways=false` option on
|
||||||
|
* the controller component.
|
||||||
|
*/
|
||||||
|
rotationPolicy?: string;
|
||||||
|
/**
|
||||||
|
* Size is the key bit size of the corresponding private key for this certificate.
|
||||||
|
*
|
||||||
|
* If `algorithm` is set to `RSA`, valid values are `2048`, `4096` or `8192`,
|
||||||
|
* and will default to `2048` if not specified.
|
||||||
|
* If `algorithm` is set to `ECDSA`, valid values are `256`, `384` or `521`,
|
||||||
|
* and will default to `256` if not specified.
|
||||||
|
* If `algorithm` is set to `Ed25519`, Size is ignored.
|
||||||
|
* No other values are allowed.
|
||||||
|
*/
|
||||||
|
size?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* How long before the currently issued certificate's expiry cert-manager should
|
||||||
|
* renew the certificate. For example, if a certificate is valid for 60 minutes,
|
||||||
|
* and `renewBefore=10m`, cert-manager will begin to attempt to renew the certificate
|
||||||
|
* 50 minutes after it was issued (i.e. when there are 10 minutes remaining until
|
||||||
|
* the certificate is no longer valid).
|
||||||
|
*
|
||||||
|
* NOTE: The actual lifetime of the issued certificate is used to determine the
|
||||||
|
* renewal time. If an issuer returns a certificate with a different lifetime than
|
||||||
|
* the one requested, cert-manager will use the lifetime of the issued certificate.
|
||||||
|
*
|
||||||
|
* If unset, this defaults to 1/3 of the issued certificate's lifetime.
|
||||||
|
* Minimum accepted value is 5 minutes.
|
||||||
|
* Value must be in units accepted by Go time.ParseDuration https://golang.org/pkg/time/#ParseDuration.
|
||||||
|
* Cannot be set if the `renewBeforePercentage` field is set.
|
||||||
|
*/
|
||||||
|
renewBefore?: string;
|
||||||
|
/**
|
||||||
|
* `renewBeforePercentage` is like `renewBefore`, except it is a relative percentage
|
||||||
|
* rather than an absolute duration. For example, if a certificate is valid for 60
|
||||||
|
* minutes, and `renewBeforePercentage=25`, cert-manager will begin to attempt to
|
||||||
|
* renew the certificate 45 minutes after it was issued (i.e. when there are 15
|
||||||
|
* minutes (25%) remaining until the certificate is no longer valid).
|
||||||
|
*
|
||||||
|
* NOTE: The actual lifetime of the issued certificate is used to determine the
|
||||||
|
* renewal time. If an issuer returns a certificate with a different lifetime than
|
||||||
|
* the one requested, cert-manager will use the lifetime of the issued certificate.
|
||||||
|
*
|
||||||
|
* Value must be an integer in the range (0,100). The minimum effective
|
||||||
|
* `renewBefore` derived from the `renewBeforePercentage` and `duration` fields is 5
|
||||||
|
* minutes.
|
||||||
|
* Cannot be set if the `renewBefore` field is set.
|
||||||
|
*/
|
||||||
|
renewBeforePercentage?: number;
|
||||||
|
/**
|
||||||
|
* The maximum number of CertificateRequest revisions that are maintained in
|
||||||
|
* the Certificate's history. Each revision represents a single `CertificateRequest`
|
||||||
|
* created by this Certificate, either when it was created, renewed, or Spec
|
||||||
|
* was changed. Revisions will be removed by oldest first if the number of
|
||||||
|
* revisions exceeds this number.
|
||||||
|
*
|
||||||
|
* If set, revisionHistoryLimit must be a value of `1` or greater.
|
||||||
|
* Default value is `1`.
|
||||||
|
*/
|
||||||
|
revisionHistoryLimit?: number;
|
||||||
|
/**
|
||||||
|
* Name of the Secret resource that will be automatically created and
|
||||||
|
* managed by this Certificate resource. It will be populated with a
|
||||||
|
* private key and certificate, signed by the denoted issuer. The Secret
|
||||||
|
* resource lives in the same namespace as the Certificate resource.
|
||||||
|
*/
|
||||||
|
secretName: string;
|
||||||
|
/**
|
||||||
|
* Defines annotations and labels to be copied to the Certificate's Secret.
|
||||||
|
* Labels and annotations on the Secret will be changed as they appear on the
|
||||||
|
* SecretTemplate when added or removed. SecretTemplate annotations are added
|
||||||
|
* in conjunction with, and cannot overwrite, the base set of annotations
|
||||||
|
* cert-manager sets on the Certificate's Secret.
|
||||||
|
*/
|
||||||
|
secretTemplate?: {
|
||||||
|
/**
|
||||||
|
* Annotations is a key value map to be copied to the target Kubernetes Secret.
|
||||||
|
*/
|
||||||
|
annotations?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Labels is a key value map to be copied to the target Kubernetes Secret.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Signature algorithm to use.
|
||||||
|
* Allowed values for RSA keys: SHA256WithRSA, SHA384WithRSA, SHA512WithRSA.
|
||||||
|
* Allowed values for ECDSA keys: ECDSAWithSHA256, ECDSAWithSHA384, ECDSAWithSHA512.
|
||||||
|
* Allowed values for Ed25519 keys: PureEd25519.
|
||||||
|
*/
|
||||||
|
signatureAlgorithm?: string;
|
||||||
|
/**
|
||||||
|
* Requested set of X509 certificate subject attributes.
|
||||||
|
* More info: https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6
|
||||||
|
*
|
||||||
|
* The common name attribute is specified separately in the `commonName` field.
|
||||||
|
* Cannot be set if the `literalSubject` field is set.
|
||||||
|
*/
|
||||||
|
subject?: {
|
||||||
|
/**
|
||||||
|
* Countries to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
countries?: string[];
|
||||||
|
/**
|
||||||
|
* Cities to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
localities?: string[];
|
||||||
|
/**
|
||||||
|
* Organizational Units to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
organizationalUnits?: string[];
|
||||||
|
/**
|
||||||
|
* Organizations to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
organizations?: string[];
|
||||||
|
/**
|
||||||
|
* Postal codes to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
postalCodes?: string[];
|
||||||
|
/**
|
||||||
|
* State/Provinces to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
provinces?: string[];
|
||||||
|
/**
|
||||||
|
* Serial number to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
serialNumber?: string;
|
||||||
|
/**
|
||||||
|
* Street addresses to be used on the Certificate.
|
||||||
|
*/
|
||||||
|
streetAddresses?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Requested URI subject alternative names.
|
||||||
|
*/
|
||||||
|
uris?: string[];
|
||||||
|
/**
|
||||||
|
* Requested key usages and extended key usages.
|
||||||
|
* These usages are used to set the `usages` field on the created CertificateRequest
|
||||||
|
* resources. If `encodeUsagesInRequest` is unset or set to `true`, the usages
|
||||||
|
* will additionally be encoded in the `request` field which contains the CSR blob.
|
||||||
|
*
|
||||||
|
* If unset, defaults to `digital signature` and `key encipherment`.
|
||||||
|
*/
|
||||||
|
usages?: (
|
||||||
|
| "signing"
|
||||||
|
| "digital signature"
|
||||||
|
| "content commitment"
|
||||||
|
| "key encipherment"
|
||||||
|
| "key agreement"
|
||||||
|
| "data encipherment"
|
||||||
|
| "cert sign"
|
||||||
|
| "crl sign"
|
||||||
|
| "encipher only"
|
||||||
|
| "decipher only"
|
||||||
|
| "any"
|
||||||
|
| "server auth"
|
||||||
|
| "client auth"
|
||||||
|
| "code signing"
|
||||||
|
| "email protection"
|
||||||
|
| "s/mime"
|
||||||
|
| "ipsec end system"
|
||||||
|
| "ipsec tunnel"
|
||||||
|
| "ipsec user"
|
||||||
|
| "timestamping"
|
||||||
|
| "ocsp signing"
|
||||||
|
| "microsoft sgc"
|
||||||
|
| "netscape sgc"
|
||||||
|
)[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Status of the Certificate.
|
||||||
|
* This is set and managed automatically.
|
||||||
|
* Read-only.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
|
*/
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* List of status conditions to indicate the status of certificates.
|
||||||
|
* Known condition types are `Ready` and `Issuing`.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* LastTransitionTime is the timestamp corresponding to the last status
|
||||||
|
* change of this condition.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Message is a human readable description of the details of the last
|
||||||
|
* transition, complementing reason.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* If set, this represents the .metadata.generation that the condition was
|
||||||
|
* set based upon.
|
||||||
|
* For instance, if .metadata.generation is currently 12, but the
|
||||||
|
* .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||||
|
* with respect to the current state of the Certificate.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number;
|
||||||
|
/**
|
||||||
|
* Reason is a brief machine readable explanation for the condition's last
|
||||||
|
* transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||||
|
*/
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
/**
|
||||||
|
* Type of the condition, known values are (`Ready`, `Issuing`).
|
||||||
|
*/
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The number of continuous failed issuance attempts up till now. This
|
||||||
|
* field gets removed (if set) on a successful issuance and gets set to
|
||||||
|
* 1 if unset and an issuance has failed. If an issuance has failed, the
|
||||||
|
* delay till the next issuance will be calculated using formula
|
||||||
|
* time.Hour * 2 ^ (failedIssuanceAttempts - 1).
|
||||||
|
*/
|
||||||
|
failedIssuanceAttempts?: number;
|
||||||
|
/**
|
||||||
|
* LastFailureTime is set only if the latest issuance for this
|
||||||
|
* Certificate failed and contains the time of the failure. If an
|
||||||
|
* issuance has failed, the delay till the next issuance will be
|
||||||
|
* calculated using formula time.Hour * 2 ^ (failedIssuanceAttempts -
|
||||||
|
* 1). If the latest issuance has succeeded this field will be unset.
|
||||||
|
*/
|
||||||
|
lastFailureTime?: string;
|
||||||
|
/**
|
||||||
|
* The name of the Secret resource containing the private key to be used
|
||||||
|
* for the next certificate iteration.
|
||||||
|
* The keymanager controller will automatically set this field if the
|
||||||
|
* `Issuing` condition is set to `True`.
|
||||||
|
* It will automatically unset this field when the Issuing condition is
|
||||||
|
* not set or False.
|
||||||
|
*/
|
||||||
|
nextPrivateKeySecretName?: string;
|
||||||
|
/**
|
||||||
|
* The expiration time of the certificate stored in the secret named
|
||||||
|
* by this resource in `spec.secretName`.
|
||||||
|
*/
|
||||||
|
notAfter?: string;
|
||||||
|
/**
|
||||||
|
* The time after which the certificate stored in the secret named
|
||||||
|
* by this resource in `spec.secretName` is valid.
|
||||||
|
*/
|
||||||
|
notBefore?: string;
|
||||||
|
/**
|
||||||
|
* RenewalTime is the time at which the certificate will be next
|
||||||
|
* renewed.
|
||||||
|
* If not set, no upcoming renewal is scheduled.
|
||||||
|
*/
|
||||||
|
renewalTime?: string;
|
||||||
|
/**
|
||||||
|
* The current 'revision' of the certificate as issued.
|
||||||
|
*
|
||||||
|
* When a CertificateRequest resource is created, it will have the
|
||||||
|
* `cert-manager.io/certificate-revision` set to one greater than the
|
||||||
|
* current value of this field.
|
||||||
|
*
|
||||||
|
* Upon issuance, this field will be set to the value of the annotation
|
||||||
|
* on the CertificateRequest resource used to issue the certificate.
|
||||||
|
*
|
||||||
|
* Persisting the value on the CertificateRequest resource allows the
|
||||||
|
* certificates controller to know whether a request is part of an old
|
||||||
|
* issuance or if it is part of the ongoing revision's issuance by
|
||||||
|
* checking if the revision value in the annotation is greater than this
|
||||||
|
* field.
|
||||||
|
*/
|
||||||
|
revision?: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
2614
src/__generated__/resources/K8SChallengeV1.json
generated
Normal file
2614
src/__generated__/resources/K8SChallengeV1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
2590
src/__generated__/resources/K8SChallengeV1.ts
generated
Normal file
2590
src/__generated__/resources/K8SChallengeV1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
3052
src/__generated__/resources/K8SClusterIssuerV1.json
generated
Normal file
3052
src/__generated__/resources/K8SClusterIssuerV1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
3067
src/__generated__/resources/K8SClusterIssuerV1.ts
generated
Normal file
3067
src/__generated__/resources/K8SClusterIssuerV1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
2454
src/__generated__/resources/K8SDestinationRuleV1.json
generated
Normal file
2454
src/__generated__/resources/K8SDestinationRuleV1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
852
src/__generated__/resources/K8SDestinationRuleV1.ts
generated
Normal file
852
src/__generated__/resources/K8SDestinationRuleV1.ts
generated
Normal file
@@ -0,0 +1,852 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SDestinationRuleV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this destination rule is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* One or more named sets that represent individual versions of a service.
|
||||||
|
*/
|
||||||
|
subsets?: {
|
||||||
|
/**
|
||||||
|
* Labels apply a filter over the endpoints of a service in the service registry.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Name of the subset.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* Traffic policies that apply to this subset.
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: "V1" | "V2";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `DestinationRule` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
2454
src/__generated__/resources/K8SDestinationRuleV1alpha3.json
generated
Normal file
2454
src/__generated__/resources/K8SDestinationRuleV1alpha3.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
852
src/__generated__/resources/K8SDestinationRuleV1alpha3.ts
generated
Normal file
852
src/__generated__/resources/K8SDestinationRuleV1alpha3.ts
generated
Normal file
@@ -0,0 +1,852 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SDestinationRuleV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this destination rule is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* One or more named sets that represent individual versions of a service.
|
||||||
|
*/
|
||||||
|
subsets?: {
|
||||||
|
/**
|
||||||
|
* Labels apply a filter over the endpoints of a service in the service registry.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Name of the subset.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* Traffic policies that apply to this subset.
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: "V1" | "V2";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `DestinationRule` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
2454
src/__generated__/resources/K8SDestinationRuleV1beta1.json
generated
Normal file
2454
src/__generated__/resources/K8SDestinationRuleV1beta1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
852
src/__generated__/resources/K8SDestinationRuleV1beta1.ts
generated
Normal file
852
src/__generated__/resources/K8SDestinationRuleV1beta1.ts
generated
Normal file
@@ -0,0 +1,852 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SDestinationRuleV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this destination rule is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* One or more named sets that represent individual versions of a service.
|
||||||
|
*/
|
||||||
|
subsets?: {
|
||||||
|
/**
|
||||||
|
* Labels apply a filter over the endpoints of a service in the service registry.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Name of the subset.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* Traffic policies that apply to this subset.
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: "V1" | "V2";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
|
||||||
|
*/
|
||||||
|
trafficPolicy?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Traffic policies specific to individual ports.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
portLevelSettings?: {
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings controlling the load balancer algorithms.
|
||||||
|
*/
|
||||||
|
loadBalancer?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
outlierDetection?: {
|
||||||
|
/**
|
||||||
|
* Minimum ejection duration.
|
||||||
|
*/
|
||||||
|
baseEjectionTime?: string;
|
||||||
|
/**
|
||||||
|
* Number of 5xx errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutive5xxErrors?: number;
|
||||||
|
consecutiveErrors?: number;
|
||||||
|
/**
|
||||||
|
* Number of gateway errors before a host is ejected from the connection pool.
|
||||||
|
*/
|
||||||
|
consecutiveGatewayErrors?: number;
|
||||||
|
/**
|
||||||
|
* The number of consecutive locally originated failures before ejection occurs.
|
||||||
|
*/
|
||||||
|
consecutiveLocalOriginFailures?: number;
|
||||||
|
/**
|
||||||
|
* Time interval between ejection sweep analysis.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.
|
||||||
|
*/
|
||||||
|
maxEjectionPercent?: number;
|
||||||
|
/**
|
||||||
|
* Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.
|
||||||
|
*/
|
||||||
|
minHealthPercent?: number;
|
||||||
|
/**
|
||||||
|
* Determines whether to distinguish local origin failures from external errors.
|
||||||
|
*/
|
||||||
|
splitExternalLocalOriginErrors?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the number of a port on the destination service on which this policy is being applied.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "DISABLE" | "SIMPLE" | "MUTUAL" | "ISTIO_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The upstream PROXY protocol settings.
|
||||||
|
*/
|
||||||
|
proxyProtocol?: {
|
||||||
|
/**
|
||||||
|
* The PROXY protocol version to use.
|
||||||
|
*
|
||||||
|
* Valid Options: V1, V2
|
||||||
|
*/
|
||||||
|
version?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* TLS related settings for connections to the upstream service.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
clientCertificate?: string;
|
||||||
|
/**
|
||||||
|
* The name of the secret that holds the TLS certs for the client including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* `insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.
|
||||||
|
*/
|
||||||
|
insecureSkipVerify?: boolean;
|
||||||
|
/**
|
||||||
|
* Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* SNI string to present to the server during TLS handshake.
|
||||||
|
*/
|
||||||
|
sni?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.
|
||||||
|
*/
|
||||||
|
tunnel?: {
|
||||||
|
/**
|
||||||
|
* Specifies which protocol to use for tunneling the downstream connection.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* Specifies a host to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetHost: string;
|
||||||
|
/**
|
||||||
|
* Specifies a port to which the downstream connection is tunneled.
|
||||||
|
*/
|
||||||
|
targetPort: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `DestinationRule` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
94
src/__generated__/resources/K8SDomainEndpointV1.json
generated
Normal file
94
src/__generated__/resources/K8SDomainEndpointV1.json
generated
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"destination": {
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"number"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name",
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"domain": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subdomain": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"domain",
|
||||||
|
"subdomain",
|
||||||
|
"destination"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
30
src/__generated__/resources/K8SDomainEndpointV1.ts
generated
Normal file
30
src/__generated__/resources/K8SDomainEndpointV1.ts
generated
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SDomainEndpointV1 {
|
||||||
|
spec?: {
|
||||||
|
destination: {
|
||||||
|
name: string;
|
||||||
|
namespace?: string;
|
||||||
|
port: {
|
||||||
|
number: number;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
domain: string;
|
||||||
|
subdomain: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
63
src/__generated__/resources/K8SDomainV1.json
generated
Normal file
63
src/__generated__/resources/K8SDomainV1.json
generated
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"domain": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"domain"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
22
src/__generated__/resources/K8SDomainV1.ts
generated
Normal file
22
src/__generated__/resources/K8SDomainV1.ts
generated
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SDomainV1 {
|
||||||
|
spec?: {
|
||||||
|
domain: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
93
src/__generated__/resources/K8SETCDSnapshotFileV1.json
generated
Normal file
93
src/__generated__/resources/K8SETCDSnapshotFileV1.json
generated
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"location": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"nodeName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"s3": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"bucket": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"endpoint": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"endpointCA": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"insecure": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"prefix": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"region": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"skipSSLVerify": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"snapshotName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"creationTime": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"message": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"readyToUse": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
35
src/__generated__/resources/K8SETCDSnapshotFileV1.ts
generated
Normal file
35
src/__generated__/resources/K8SETCDSnapshotFileV1.ts
generated
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SETCDSnapshotFileV1 {
|
||||||
|
spec?: {
|
||||||
|
location?: string;
|
||||||
|
metadata?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
nodeName?: string;
|
||||||
|
s3?: {
|
||||||
|
bucket?: string;
|
||||||
|
endpoint?: string;
|
||||||
|
endpointCA?: string;
|
||||||
|
insecure?: boolean;
|
||||||
|
prefix?: string;
|
||||||
|
region?: string;
|
||||||
|
skipSSLVerify?: boolean;
|
||||||
|
};
|
||||||
|
snapshotName?: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
creationTime?: string;
|
||||||
|
error?: {
|
||||||
|
message?: string;
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
readyToUse?: boolean;
|
||||||
|
size?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
463
src/__generated__/resources/K8SEnvoyFilterV1alpha3.json
generated
Normal file
463
src/__generated__/resources/K8SEnvoyFilterV1alpha3.json
generated
Normal file
@@ -0,0 +1,463 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Customizing Envoy configuration generated by Istio. See more details at: https://istio.io/docs/reference/config/networking/envoy-filter.html",
|
||||||
|
"properties": {
|
||||||
|
"configPatches": {
|
||||||
|
"description": "One or more patches with match conditions.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"applyTo": {
|
||||||
|
"description": "Specifies where in the Envoy configuration, the patch should be applied.\n\nValid Options: LISTENER, FILTER_CHAIN, NETWORK_FILTER, HTTP_FILTER, ROUTE_CONFIGURATION, VIRTUAL_HOST, HTTP_ROUTE, CLUSTER, EXTENSION_CONFIG, BOOTSTRAP, LISTENER_FILTER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"INVALID",
|
||||||
|
"LISTENER",
|
||||||
|
"FILTER_CHAIN",
|
||||||
|
"NETWORK_FILTER",
|
||||||
|
"HTTP_FILTER",
|
||||||
|
"ROUTE_CONFIGURATION",
|
||||||
|
"VIRTUAL_HOST",
|
||||||
|
"HTTP_ROUTE",
|
||||||
|
"CLUSTER",
|
||||||
|
"EXTENSION_CONFIG",
|
||||||
|
"BOOTSTRAP",
|
||||||
|
"LISTENER_FILTER"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Match on listener/route configuration/cluster.",
|
||||||
|
"type": "object",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"listener"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"routeConfiguration"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"cluster"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"listener"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"routeConfiguration"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"cluster"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"cluster": {
|
||||||
|
"description": "Match on envoy cluster attributes.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The exact name of the cluster to match.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"portNumber": {
|
||||||
|
"description": "The service port for which this cluster was generated.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"service": {
|
||||||
|
"description": "The fully qualified service name for this cluster.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subset": {
|
||||||
|
"description": "The subset associated with the service.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"description": "The specific config generation context to match on.\n\nValid Options: ANY, SIDECAR_INBOUND, SIDECAR_OUTBOUND, GATEWAY",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ANY",
|
||||||
|
"SIDECAR_INBOUND",
|
||||||
|
"SIDECAR_OUTBOUND",
|
||||||
|
"GATEWAY"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"listener": {
|
||||||
|
"description": "Match on envoy listener attributes.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"filterChain": {
|
||||||
|
"description": "Match a specific filter chain in a listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"applicationProtocols": {
|
||||||
|
"description": "Applies only to sidecars.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"destinationPort": {
|
||||||
|
"description": "The destination_port value used by a filter chain's match condition.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"description": "The name of a specific filter to apply the patch to.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The filter name to match on.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subFilter": {
|
||||||
|
"description": "The next level filter within this filter to match upon.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The filter name to match on.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The name assigned to the filter chain.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"sni": {
|
||||||
|
"description": "The SNI value used by a filter chain's match condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"transportProtocol": {
|
||||||
|
"description": "Applies only to `SIDECAR_INBOUND` context.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"listenerFilter": {
|
||||||
|
"description": "Match a specific listener filter.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Match a specific listener by its name.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"portName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"portNumber": {
|
||||||
|
"description": "The service port/gateway port to which traffic is being sent/received.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"proxy": {
|
||||||
|
"description": "Match on properties associated with a proxy.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"metadata": {
|
||||||
|
"description": "Match on the node metadata supplied by a proxy when connecting to istiod.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"proxyVersion": {
|
||||||
|
"description": "A regular expression in golang regex format (RE2) that can be used to select proxies using a specific version of istio proxy.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"routeConfiguration": {
|
||||||
|
"description": "Match on envoy HTTP route configuration attributes.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"gateway": {
|
||||||
|
"description": "The Istio gateway config's namespace/name for which this route configuration was generated.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Route configuration name to match on.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"portName": {
|
||||||
|
"description": "Applicable only for GATEWAY context.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"portNumber": {
|
||||||
|
"description": "The service port number or gateway server port number for which this route configuration was generated.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"vhost": {
|
||||||
|
"description": "Match a specific virtual host in a route configuration and apply the patch to the virtual host.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The VirtualHosts objects generated by Istio are named as host:port, where the host typically corresponds to the VirtualService's host field or the hostname of a service in the registry.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"route": {
|
||||||
|
"description": "Match a specific route within the virtual host.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"action": {
|
||||||
|
"description": "Match a route with specific action type.\n\nValid Options: ANY, ROUTE, REDIRECT, DIRECT_RESPONSE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ANY",
|
||||||
|
"ROUTE",
|
||||||
|
"REDIRECT",
|
||||||
|
"DIRECT_RESPONSE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "The Route objects generated by default are named as default.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"patch": {
|
||||||
|
"description": "The patch to apply along with the operation.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"filterClass": {
|
||||||
|
"description": "Determines the filter insertion order.\n\nValid Options: AUTHN, AUTHZ, STATS",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNSPECIFIED",
|
||||||
|
"AUTHN",
|
||||||
|
"AUTHZ",
|
||||||
|
"STATS"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"operation": {
|
||||||
|
"description": "Determines how the patch should be applied.\n\nValid Options: MERGE, ADD, REMOVE, INSERT_BEFORE, INSERT_AFTER, INSERT_FIRST, REPLACE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"INVALID",
|
||||||
|
"MERGE",
|
||||||
|
"ADD",
|
||||||
|
"REMOVE",
|
||||||
|
"INSERT_BEFORE",
|
||||||
|
"INSERT_AFTER",
|
||||||
|
"INSERT_FIRST",
|
||||||
|
"REPLACE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"description": "The JSON config of the object being patched.",
|
||||||
|
"type": "object",
|
||||||
|
"x-kubernetes-preserve-unknown-fields": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"description": "Priority defines the order in which patch sets are applied within a context.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Criteria used to select the specific set of pods/VMs on which this patch configuration should be applied.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or workloadSelector can be set",
|
||||||
|
"rule": "(has(self.workloadSelector)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2634
src/__generated__/resources/K8SEnvoyFilterV1alpha3.ts
generated
Normal file
2634
src/__generated__/resources/K8SEnvoyFilterV1alpha3.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
260
src/__generated__/resources/K8SGatewayV1.json
generated
Normal file
260
src/__generated__/resources/K8SGatewayV1.json
generated
Normal file
@@ -0,0 +1,260 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html",
|
||||||
|
"properties": {
|
||||||
|
"selector": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"description": "A list of server specifications.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port",
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The ip or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more hosts exposed by this gateway.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "An optional name of the server, when set must be unique across all servers.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The Port on which the proxy should listen for incoming connections.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"protocol",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that govern the server's behavior.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SGatewayV1.ts
generated
Normal file
179
src/__generated__/resources/K8SGatewayV1.ts
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SGatewayV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A list of server specifications.
|
||||||
|
*/
|
||||||
|
servers?: {
|
||||||
|
/**
|
||||||
|
* The ip or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* One or more hosts exposed by this gateway.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* An optional name of the server, when set must be unique across all servers.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* The Port on which the proxy should listen for incoming connections.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that govern the server's behavior.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
260
src/__generated__/resources/K8SGatewayV1alpha3.json
generated
Normal file
260
src/__generated__/resources/K8SGatewayV1alpha3.json
generated
Normal file
@@ -0,0 +1,260 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html",
|
||||||
|
"properties": {
|
||||||
|
"selector": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"description": "A list of server specifications.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port",
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The ip or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more hosts exposed by this gateway.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "An optional name of the server, when set must be unique across all servers.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The Port on which the proxy should listen for incoming connections.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"protocol",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that govern the server's behavior.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SGatewayV1alpha3.ts
generated
Normal file
179
src/__generated__/resources/K8SGatewayV1alpha3.ts
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SGatewayV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A list of server specifications.
|
||||||
|
*/
|
||||||
|
servers?: {
|
||||||
|
/**
|
||||||
|
* The ip or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* One or more hosts exposed by this gateway.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* An optional name of the server, when set must be unique across all servers.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* The Port on which the proxy should listen for incoming connections.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that govern the server's behavior.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
260
src/__generated__/resources/K8SGatewayV1beta1.json
generated
Normal file
260
src/__generated__/resources/K8SGatewayV1beta1.json
generated
Normal file
@@ -0,0 +1,260 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html",
|
||||||
|
"properties": {
|
||||||
|
"selector": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"servers": {
|
||||||
|
"description": "A list of server specifications.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port",
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The ip or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more hosts exposed by this gateway.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "An optional name of the server, when set must be unique across all servers.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The Port on which the proxy should listen for incoming connections.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"protocol",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that govern the server's behavior.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SGatewayV1beta1.ts
generated
Normal file
179
src/__generated__/resources/K8SGatewayV1beta1.ts
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SGatewayV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting edge load balancer. See more details at: https://istio.io/docs/reference/config/networking/gateway.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which this gateway configuration should be applied.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A list of server specifications.
|
||||||
|
*/
|
||||||
|
servers?: {
|
||||||
|
/**
|
||||||
|
* The ip or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* One or more hosts exposed by this gateway.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* An optional name of the server, when set must be unique across all servers.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* The Port on which the proxy should listen for incoming connections.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that govern the server's behavior.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
18
src/__generated__/resources/K8SHelmChartConfigV1.json
generated
Normal file
18
src/__generated__/resources/K8SHelmChartConfigV1.json
generated
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"failurePolicy": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"valuesContent": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
13
src/__generated__/resources/K8SHelmChartConfigV1.ts
generated
Normal file
13
src/__generated__/resources/K8SHelmChartConfigV1.ts
generated
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SHelmChartConfigV1 {
|
||||||
|
spec?: {
|
||||||
|
failurePolicy?: string;
|
||||||
|
valuesContent?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
398
src/__generated__/resources/K8SHelmChartV1.json
generated
Normal file
398
src/__generated__/resources/K8SHelmChartV1.json
generated
Normal file
@@ -0,0 +1,398 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"authPassCredentials": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"authSecret": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"backOffLimit": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"bootstrap": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"chart": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"chartContent": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"createNamespace": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"dockerRegistrySecret": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"failurePolicy": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"helmVersion": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"insecureSkipTLSVerify": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"jobImage": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"plainHTTP": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"podSecurityContext": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"appArmorProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"localhostProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"fsGroup": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"fsGroupChangePolicy": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"runAsGroup": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"runAsNonRoot": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"runAsUser": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"seLinuxOptions": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"level": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"role": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"seccompProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"localhostProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"supplementalGroups": {
|
||||||
|
"items": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"supplementalGroupsPolicy": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"sysctls": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"windowsOptions": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"gmsaCredentialSpec": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"gmsaCredentialSpecName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hostProcess": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"runAsUserName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"repo": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"repoCA": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"repoCAConfigMap": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"securityContext": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"allowPrivilegeEscalation": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"appArmorProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"localhostProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"capabilities": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"add": {
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"drop": {
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"privileged": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"procMount": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"readOnlyRootFilesystem": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"runAsGroup": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"runAsNonRoot": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"runAsUser": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"seLinuxOptions": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"level": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"role": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"seccompProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"localhostProfile": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"windowsOptions": {
|
||||||
|
"nullable": true,
|
||||||
|
"properties": {
|
||||||
|
"gmsaCredentialSpec": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"gmsaCredentialSpecName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"hostProcess": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"runAsUserName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"set": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"x-kubernetes-int-or-string": true
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetNamespace": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"timeout": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"valuesContent": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"message": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nullable": true,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"jobName": {
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
117
src/__generated__/resources/K8SHelmChartV1.ts
generated
Normal file
117
src/__generated__/resources/K8SHelmChartV1.ts
generated
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SHelmChartV1 {
|
||||||
|
spec?: {
|
||||||
|
authPassCredentials?: boolean;
|
||||||
|
authSecret?: {
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
backOffLimit?: number;
|
||||||
|
bootstrap?: boolean;
|
||||||
|
chart?: string;
|
||||||
|
chartContent?: string;
|
||||||
|
createNamespace?: boolean;
|
||||||
|
dockerRegistrySecret?: {
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
failurePolicy?: string;
|
||||||
|
helmVersion?: string;
|
||||||
|
insecureSkipTLSVerify?: boolean;
|
||||||
|
jobImage?: string;
|
||||||
|
plainHTTP?: boolean;
|
||||||
|
podSecurityContext?: {
|
||||||
|
appArmorProfile?: {
|
||||||
|
localhostProfile?: string;
|
||||||
|
type?: string;
|
||||||
|
};
|
||||||
|
fsGroup?: number;
|
||||||
|
fsGroupChangePolicy?: string;
|
||||||
|
runAsGroup?: number;
|
||||||
|
runAsNonRoot?: boolean;
|
||||||
|
runAsUser?: number;
|
||||||
|
seLinuxOptions?: {
|
||||||
|
level?: string;
|
||||||
|
role?: string;
|
||||||
|
type?: string;
|
||||||
|
user?: string;
|
||||||
|
};
|
||||||
|
seccompProfile?: {
|
||||||
|
localhostProfile?: string;
|
||||||
|
type?: string;
|
||||||
|
};
|
||||||
|
supplementalGroups?: number[];
|
||||||
|
supplementalGroupsPolicy?: string;
|
||||||
|
sysctls?: {
|
||||||
|
name?: string;
|
||||||
|
value?: string;
|
||||||
|
}[];
|
||||||
|
windowsOptions?: {
|
||||||
|
gmsaCredentialSpec?: string;
|
||||||
|
gmsaCredentialSpecName?: string;
|
||||||
|
hostProcess?: boolean;
|
||||||
|
runAsUserName?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
repo?: string;
|
||||||
|
repoCA?: string;
|
||||||
|
repoCAConfigMap?: {
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
securityContext?: {
|
||||||
|
allowPrivilegeEscalation?: boolean;
|
||||||
|
appArmorProfile?: {
|
||||||
|
localhostProfile?: string;
|
||||||
|
type?: string;
|
||||||
|
};
|
||||||
|
capabilities?: {
|
||||||
|
add?: string[];
|
||||||
|
drop?: string[];
|
||||||
|
};
|
||||||
|
privileged?: boolean;
|
||||||
|
procMount?: string;
|
||||||
|
readOnlyRootFilesystem?: boolean;
|
||||||
|
runAsGroup?: number;
|
||||||
|
runAsNonRoot?: boolean;
|
||||||
|
runAsUser?: number;
|
||||||
|
seLinuxOptions?: {
|
||||||
|
level?: string;
|
||||||
|
role?: string;
|
||||||
|
type?: string;
|
||||||
|
user?: string;
|
||||||
|
};
|
||||||
|
seccompProfile?: {
|
||||||
|
localhostProfile?: string;
|
||||||
|
type?: string;
|
||||||
|
};
|
||||||
|
windowsOptions?: {
|
||||||
|
gmsaCredentialSpec?: string;
|
||||||
|
gmsaCredentialSpecName?: string;
|
||||||
|
hostProcess?: boolean;
|
||||||
|
runAsUserName?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
set?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
targetNamespace?: string;
|
||||||
|
timeout?: string;
|
||||||
|
valuesContent?: string;
|
||||||
|
version?: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions?: {
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status?: string;
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
jobName?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
3052
src/__generated__/resources/K8SIssuerV1.json
generated
Normal file
3052
src/__generated__/resources/K8SIssuerV1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
3066
src/__generated__/resources/K8SIssuerV1.ts
generated
Normal file
3066
src/__generated__/resources/K8SIssuerV1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
187
src/__generated__/resources/K8SOrderV1.json
generated
Normal file
187
src/__generated__/resources/K8SOrderV1.json
generated
Normal file
@@ -0,0 +1,187 @@
|
|||||||
|
{
|
||||||
|
"description": "Order is a type to represent an Order with an ACME server",
|
||||||
|
"properties": {
|
||||||
|
"apiVersion": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"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",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"metadata": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"commonName": {
|
||||||
|
"description": "CommonName is the common name as specified on the DER encoded CSR.\nIf specified, this value must also be present in `dnsNames` or `ipAddresses`.\nThis field must match the corresponding field on the DER encoded CSR.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"dnsNames": {
|
||||||
|
"description": "DNSNames is a list of DNS names that should be included as part of the Order\nvalidation process.\nThis field must match the corresponding field on the DER encoded CSR.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"duration": {
|
||||||
|
"description": "Duration is the duration for the not after date for the requested certificate.\nthis is set on order creation as pe the ACME spec.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ipAddresses": {
|
||||||
|
"description": "IPAddresses is a list of IP addresses that should be included as part of the Order\nvalidation process.\nThis field must match the corresponding field on the DER encoded CSR.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"issuerRef": {
|
||||||
|
"description": "IssuerRef references a properly configured ACME-type Issuer which should\nbe used to create this Order.\nIf the Issuer does not exist, processing will be retried.\nIf the Issuer is not an 'ACME' Issuer, an error will be returned and the\nOrder will be marked as failed.",
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "Group of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "Kind of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the resource being referred to.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"profile": {
|
||||||
|
"description": "Profile allows requesting a certificate profile from the ACME server.\nSupported profiles are listed by the server's ACME directory URL.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"request": {
|
||||||
|
"description": "Certificate signing request bytes in DER encoding.\nThis will be used when finalizing the order.\nThis field must be set on the order.",
|
||||||
|
"format": "byte",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"issuerRef",
|
||||||
|
"request"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"authorizations": {
|
||||||
|
"description": "Authorizations contains data returned from the ACME server on what\nauthorizations must be completed in order to validate the DNS names\nspecified on the Order.",
|
||||||
|
"items": {
|
||||||
|
"description": "ACMEAuthorization contains data returned from the ACME server on an\nauthorization that must be completed in order validate a DNS name on an ACME\nOrder resource.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"url"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"challenges": {
|
||||||
|
"description": "Challenges specifies the challenge types offered by the ACME server.\nOne of these challenge types will be selected when validating the DNS\nname and an appropriate Challenge resource will be created to perform\nthe ACME challenge process.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"description": "Challenge specifies a challenge offered by the ACME server for an Order.\nAn appropriate Challenge resource can be created to perform the ACME\nchallenge process.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"token",
|
||||||
|
"type",
|
||||||
|
"url"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"token": {
|
||||||
|
"description": "Token is the token that must be presented for this challenge.\nThis is used to compute the 'key' that must also be presented.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of challenge being offered, e.g., 'http-01', 'dns-01',\n'tls-sni-01', etc.\nThis is the raw value retrieved from the ACME server.\nOnly 'http-01' and 'dns-01' are supported by cert-manager, other values\nwill be ignored.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "URL is the URL of this challenge. It can be used to retrieve additional\nmetadata about the Challenge from the ACME server.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"identifier": {
|
||||||
|
"description": "Identifier is the DNS name to be validated as part of this authorization",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"initialState": {
|
||||||
|
"description": "InitialState is the initial state of the ACME authorization when first\nfetched from the ACME server.\nIf an Authorization is already 'valid', the Order controller will not\ncreate a Challenge resource for the authorization. This will occur when\nworking with an ACME server that enables 'authz reuse' (such as Let's\nEncrypt's production endpoint).\nIf not set and 'identifier' is set, the state is assumed to be pending\nand a Challenge will be created.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"valid",
|
||||||
|
"ready",
|
||||||
|
"pending",
|
||||||
|
"processing",
|
||||||
|
"invalid",
|
||||||
|
"expired",
|
||||||
|
"errored"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "URL is the URL of the Authorization that must be completed",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"wildcard": {
|
||||||
|
"description": "Wildcard will be true if this authorization is for a wildcard DNS name.\nIf this is true, the identifier will be the *non-wildcard* version of\nthe DNS name.\nFor example, if '*.example.com' is the DNS name being validated, this\nfield will be 'true' and the 'identifier' field will be 'example.com'.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"certificate": {
|
||||||
|
"description": "Certificate is a copy of the PEM encoded certificate for this Order.\nThis field will be populated after the order has been successfully\nfinalized with the ACME server, and the order has transitioned to the\n'valid' state.",
|
||||||
|
"format": "byte",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"failureTime": {
|
||||||
|
"description": "FailureTime stores the time that this order failed.\nThis is used to influence garbage collection and back-off.",
|
||||||
|
"format": "date-time",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"finalizeURL": {
|
||||||
|
"description": "FinalizeURL of the Order.\nThis is used to obtain certificates for this order once it has been completed.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Reason optionally provides more information about a why the order is in\nthe current state.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"description": "State contains the current state of this Order resource.\nStates 'success' and 'expired' are 'final'",
|
||||||
|
"_enum": [
|
||||||
|
"valid",
|
||||||
|
"ready",
|
||||||
|
"pending",
|
||||||
|
"processing",
|
||||||
|
"invalid",
|
||||||
|
"expired",
|
||||||
|
"errored"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "URL of the Order.\nThis will initially be empty when the resource is first created.\nThe Order controller will populate this field when the Order is first processed.\nThis field will be immutable after it is initially set.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"metadata",
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
181
src/__generated__/resources/K8SOrderV1.ts
generated
Normal file
181
src/__generated__/resources/K8SOrderV1.ts
generated
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Order is a type to represent an Order with an ACME server
|
||||||
|
*/
|
||||||
|
export interface K8SOrderV1 {
|
||||||
|
/**
|
||||||
|
* APIVersion defines the versioned schema of this representation of an object.
|
||||||
|
* Servers should convert recognized schemas to the latest internal value, and
|
||||||
|
* may reject unrecognized values.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
||||||
|
*/
|
||||||
|
apiVersion?: string;
|
||||||
|
/**
|
||||||
|
* Kind is a string value representing the REST resource this object represents.
|
||||||
|
* Servers may infer this from the endpoint the client submits requests to.
|
||||||
|
* Cannot be updated.
|
||||||
|
* In CamelCase.
|
||||||
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
metadata: {};
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* CommonName is the common name as specified on the DER encoded CSR.
|
||||||
|
* If specified, this value must also be present in `dnsNames` or `ipAddresses`.
|
||||||
|
* This field must match the corresponding field on the DER encoded CSR.
|
||||||
|
*/
|
||||||
|
commonName?: string;
|
||||||
|
/**
|
||||||
|
* DNSNames is a list of DNS names that should be included as part of the Order
|
||||||
|
* validation process.
|
||||||
|
* This field must match the corresponding field on the DER encoded CSR.
|
||||||
|
*/
|
||||||
|
dnsNames?: string[];
|
||||||
|
/**
|
||||||
|
* Duration is the duration for the not after date for the requested certificate.
|
||||||
|
* this is set on order creation as pe the ACME spec.
|
||||||
|
*/
|
||||||
|
duration?: string;
|
||||||
|
/**
|
||||||
|
* IPAddresses is a list of IP addresses that should be included as part of the Order
|
||||||
|
* validation process.
|
||||||
|
* This field must match the corresponding field on the DER encoded CSR.
|
||||||
|
*/
|
||||||
|
ipAddresses?: string[];
|
||||||
|
/**
|
||||||
|
* IssuerRef references a properly configured ACME-type Issuer which should
|
||||||
|
* be used to create this Order.
|
||||||
|
* If the Issuer does not exist, processing will be retried.
|
||||||
|
* If the Issuer is not an 'ACME' Issuer, an error will be returned and the
|
||||||
|
* Order will be marked as failed.
|
||||||
|
*/
|
||||||
|
issuerRef: {
|
||||||
|
/**
|
||||||
|
* Group of the resource being referred to.
|
||||||
|
*/
|
||||||
|
group?: string;
|
||||||
|
/**
|
||||||
|
* Kind of the resource being referred to.
|
||||||
|
*/
|
||||||
|
kind?: string;
|
||||||
|
/**
|
||||||
|
* Name of the resource being referred to.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Profile allows requesting a certificate profile from the ACME server.
|
||||||
|
* Supported profiles are listed by the server's ACME directory URL.
|
||||||
|
*/
|
||||||
|
profile?: string;
|
||||||
|
/**
|
||||||
|
* Certificate signing request bytes in DER encoding.
|
||||||
|
* This will be used when finalizing the order.
|
||||||
|
* This field must be set on the order.
|
||||||
|
*/
|
||||||
|
request: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Authorizations contains data returned from the ACME server on what
|
||||||
|
* authorizations must be completed in order to validate the DNS names
|
||||||
|
* specified on the Order.
|
||||||
|
*/
|
||||||
|
authorizations?: {
|
||||||
|
/**
|
||||||
|
* Challenges specifies the challenge types offered by the ACME server.
|
||||||
|
* One of these challenge types will be selected when validating the DNS
|
||||||
|
* name and an appropriate Challenge resource will be created to perform
|
||||||
|
* the ACME challenge process.
|
||||||
|
*/
|
||||||
|
challenges?: {
|
||||||
|
/**
|
||||||
|
* Token is the token that must be presented for this challenge.
|
||||||
|
* This is used to compute the 'key' that must also be presented.
|
||||||
|
*/
|
||||||
|
token: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of challenge being offered, e.g., 'http-01', 'dns-01',
|
||||||
|
* 'tls-sni-01', etc.
|
||||||
|
* This is the raw value retrieved from the ACME server.
|
||||||
|
* Only 'http-01' and 'dns-01' are supported by cert-manager, other values
|
||||||
|
* will be ignored.
|
||||||
|
*/
|
||||||
|
type: string;
|
||||||
|
/**
|
||||||
|
* URL is the URL of this challenge. It can be used to retrieve additional
|
||||||
|
* metadata about the Challenge from the ACME server.
|
||||||
|
*/
|
||||||
|
url: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Identifier is the DNS name to be validated as part of this authorization
|
||||||
|
*/
|
||||||
|
identifier?: string;
|
||||||
|
/**
|
||||||
|
* InitialState is the initial state of the ACME authorization when first
|
||||||
|
* fetched from the ACME server.
|
||||||
|
* If an Authorization is already 'valid', the Order controller will not
|
||||||
|
* create a Challenge resource for the authorization. This will occur when
|
||||||
|
* working with an ACME server that enables 'authz reuse' (such as Let's
|
||||||
|
* Encrypt's production endpoint).
|
||||||
|
* If not set and 'identifier' is set, the state is assumed to be pending
|
||||||
|
* and a Challenge will be created.
|
||||||
|
*/
|
||||||
|
initialState?: "valid" | "ready" | "pending" | "processing" | "invalid" | "expired" | "errored";
|
||||||
|
/**
|
||||||
|
* URL is the URL of the Authorization that must be completed
|
||||||
|
*/
|
||||||
|
url: string;
|
||||||
|
/**
|
||||||
|
* Wildcard will be true if this authorization is for a wildcard DNS name.
|
||||||
|
* If this is true, the identifier will be the *non-wildcard* version of
|
||||||
|
* the DNS name.
|
||||||
|
* For example, if '*.example.com' is the DNS name being validated, this
|
||||||
|
* field will be 'true' and the 'identifier' field will be 'example.com'.
|
||||||
|
*/
|
||||||
|
wildcard?: boolean;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Certificate is a copy of the PEM encoded certificate for this Order.
|
||||||
|
* This field will be populated after the order has been successfully
|
||||||
|
* finalized with the ACME server, and the order has transitioned to the
|
||||||
|
* 'valid' state.
|
||||||
|
*/
|
||||||
|
certificate?: string;
|
||||||
|
/**
|
||||||
|
* FailureTime stores the time that this order failed.
|
||||||
|
* This is used to influence garbage collection and back-off.
|
||||||
|
*/
|
||||||
|
failureTime?: string;
|
||||||
|
/**
|
||||||
|
* FinalizeURL of the Order.
|
||||||
|
* This is used to obtain certificates for this order once it has been completed.
|
||||||
|
*/
|
||||||
|
finalizeURL?: string;
|
||||||
|
/**
|
||||||
|
* Reason optionally provides more information about a why the order is in
|
||||||
|
* the current state.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* State contains the current state of this Order resource.
|
||||||
|
* States 'success' and 'expired' are 'final'
|
||||||
|
*/
|
||||||
|
state?: string;
|
||||||
|
/**
|
||||||
|
* URL of the Order.
|
||||||
|
* This will initially be empty when the resource is first created.
|
||||||
|
* The Order controller will populate this field when the Order is first processed.
|
||||||
|
* This field will be immutable after it is initially set.
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SPeerAuthenticationV1.json
generated
Normal file
179
src/__generated__/resources/K8SPeerAuthenticationV1.json
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Peer authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/peer_authentication.html",
|
||||||
|
"properties": {
|
||||||
|
"mtls": {
|
||||||
|
"description": "Mutual TLS settings for workload.",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Defines the mTLS mode used for peer authentication.\n\nValid Options: DISABLE, PERMISSIVE, STRICT",
|
||||||
|
"_enum": [
|
||||||
|
"UNSET",
|
||||||
|
"DISABLE",
|
||||||
|
"PERMISSIVE",
|
||||||
|
"STRICT"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"portLevelMtls": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Defines the mTLS mode used for peer authentication.\n\nValid Options: DISABLE, PERMISSIVE, STRICT",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNSET",
|
||||||
|
"DISABLE",
|
||||||
|
"PERMISSIVE",
|
||||||
|
"STRICT"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Port specific mutual TLS settings.",
|
||||||
|
"minProperties": 1,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port must be between 1-65535",
|
||||||
|
"rule": "self.all(key, 0 < int(key) && int(key) <= 65535)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "The selector determines the workloads to apply the PeerAuthentication on.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "portLevelMtls requires selector",
|
||||||
|
"rule": "(has(self.selector) && has(self.selector.matchLabels) && self.selector.matchLabels.size() > 0) || !has(self.portLevelMtls)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
109
src/__generated__/resources/K8SPeerAuthenticationV1.ts
generated
Normal file
109
src/__generated__/resources/K8SPeerAuthenticationV1.ts
generated
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SPeerAuthenticationV1 {
|
||||||
|
/**
|
||||||
|
* Peer authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/peer_authentication.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Mutual TLS settings for workload.
|
||||||
|
*/
|
||||||
|
mtls?: {
|
||||||
|
/**
|
||||||
|
* Defines the mTLS mode used for peer authentication.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, PERMISSIVE, STRICT
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Port specific mutual TLS settings.
|
||||||
|
*/
|
||||||
|
portLevelMtls?: {
|
||||||
|
[k: string]: {
|
||||||
|
/**
|
||||||
|
* Defines the mTLS mode used for peer authentication.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, PERMISSIVE, STRICT
|
||||||
|
*/
|
||||||
|
mode?: "UNSET" | "DISABLE" | "PERMISSIVE" | "STRICT";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The selector determines the workloads to apply the PeerAuthentication on.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SPeerAuthenticationV1beta1.json
generated
Normal file
179
src/__generated__/resources/K8SPeerAuthenticationV1beta1.json
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Peer authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/peer_authentication.html",
|
||||||
|
"properties": {
|
||||||
|
"mtls": {
|
||||||
|
"description": "Mutual TLS settings for workload.",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Defines the mTLS mode used for peer authentication.\n\nValid Options: DISABLE, PERMISSIVE, STRICT",
|
||||||
|
"_enum": [
|
||||||
|
"UNSET",
|
||||||
|
"DISABLE",
|
||||||
|
"PERMISSIVE",
|
||||||
|
"STRICT"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"portLevelMtls": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Defines the mTLS mode used for peer authentication.\n\nValid Options: DISABLE, PERMISSIVE, STRICT",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNSET",
|
||||||
|
"DISABLE",
|
||||||
|
"PERMISSIVE",
|
||||||
|
"STRICT"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Port specific mutual TLS settings.",
|
||||||
|
"minProperties": 1,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port must be between 1-65535",
|
||||||
|
"rule": "self.all(key, 0 < int(key) && int(key) <= 65535)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "The selector determines the workloads to apply the PeerAuthentication on.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "portLevelMtls requires selector",
|
||||||
|
"rule": "(has(self.selector) && has(self.selector.matchLabels) && self.selector.matchLabels.size() > 0) || !has(self.portLevelMtls)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
109
src/__generated__/resources/K8SPeerAuthenticationV1beta1.ts
generated
Normal file
109
src/__generated__/resources/K8SPeerAuthenticationV1beta1.ts
generated
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SPeerAuthenticationV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Peer authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/peer_authentication.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Mutual TLS settings for workload.
|
||||||
|
*/
|
||||||
|
mtls?: {
|
||||||
|
/**
|
||||||
|
* Defines the mTLS mode used for peer authentication.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, PERMISSIVE, STRICT
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Port specific mutual TLS settings.
|
||||||
|
*/
|
||||||
|
portLevelMtls?: {
|
||||||
|
[k: string]: {
|
||||||
|
/**
|
||||||
|
* Defines the mTLS mode used for peer authentication.
|
||||||
|
*
|
||||||
|
* Valid Options: DISABLE, PERMISSIVE, STRICT
|
||||||
|
*/
|
||||||
|
mode?: "UNSET" | "DISABLE" | "PERMISSIVE" | "STRICT";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The selector determines the workloads to apply the PeerAuthentication on.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
55
src/__generated__/resources/K8SPostgresDatabaseV1.json
generated
Normal file
55
src/__generated__/resources/K8SPostgresDatabaseV1.json
generated
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
20
src/__generated__/resources/K8SPostgresDatabaseV1.ts
generated
Normal file
20
src/__generated__/resources/K8SPostgresDatabaseV1.ts
generated
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SPostgresDatabaseV1 {
|
||||||
|
spec?: {};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
156
src/__generated__/resources/K8SProxyConfigV1beta1.json
generated
Normal file
156
src/__generated__/resources/K8SProxyConfigV1beta1.json
generated
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Provides configuration for individual workloads. See more details at: https://istio.io/docs/reference/config/networking/proxy-config.html",
|
||||||
|
"properties": {
|
||||||
|
"concurrency": {
|
||||||
|
"description": "The number of worker threads to run.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"environmentVariables": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"description": "Additional environment variables for the proxy.",
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"description": "Specifies the details of the proxy image.",
|
||||||
|
"properties": {
|
||||||
|
"imageType": {
|
||||||
|
"description": "The image type of the image.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
104
src/__generated__/resources/K8SProxyConfigV1beta1.ts
generated
Normal file
104
src/__generated__/resources/K8SProxyConfigV1beta1.ts
generated
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SProxyConfigV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Provides configuration for individual workloads. See more details at: https://istio.io/docs/reference/config/networking/proxy-config.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* The number of worker threads to run.
|
||||||
|
*/
|
||||||
|
concurrency?: number;
|
||||||
|
/**
|
||||||
|
* Additional environment variables for the proxy.
|
||||||
|
*/
|
||||||
|
environmentVariables?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the details of the proxy image.
|
||||||
|
*/
|
||||||
|
image?: {
|
||||||
|
/**
|
||||||
|
* The image type of the image.
|
||||||
|
*/
|
||||||
|
imageType?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Optional.
|
||||||
|
*/
|
||||||
|
selector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.
|
||||||
|
*/
|
||||||
|
matchLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
369
src/__generated__/resources/K8SRequestAuthenticationV1.json
generated
Normal file
369
src/__generated__/resources/K8SRequestAuthenticationV1.json
generated
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Request authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/request_authentication.html",
|
||||||
|
"properties": {
|
||||||
|
"jwtRules": {
|
||||||
|
"description": "Define the list of JWTs that can be validated at the selected workloads' proxy.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"issuer"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"audiences": {
|
||||||
|
"description": "The list of JWT [audiences](https://tools.ietf.org/html/rfc7519#section-4.1.3) that are allowed to access.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"forwardOriginalToken": {
|
||||||
|
"description": "If set to true, the original token will be kept for the upstream request.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"fromCookies": {
|
||||||
|
"description": "List of cookie names from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fromHeaders": {
|
||||||
|
"description": "List of header locations from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The HTTP header name.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"prefix": {
|
||||||
|
"description": "The prefix that should be stripped before decoding the token.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fromParams": {
|
||||||
|
"description": "List of query parameters from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"issuer": {
|
||||||
|
"description": "Identifies the issuer that issued the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"jwks": {
|
||||||
|
"description": "JSON Web Key Set of public keys to validate signature of the JWT.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"jwksUri": {
|
||||||
|
"description": "URL of the provider's public key set to validate signature of the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"minLength": 1,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "url(self).getScheme() in ['http', 'https']",
|
||||||
|
"message": "url must have scheme http:// or https://"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"jwks_uri": {
|
||||||
|
"description": "URL of the provider's public key set to validate signature of the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"minLength": 1,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "url(self).getScheme() in ['http', 'https']",
|
||||||
|
"message": "url must have scheme http:// or https://"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"outputClaimToHeaders": {
|
||||||
|
"description": "This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"header",
|
||||||
|
"claim"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"claim": {
|
||||||
|
"description": "The name of the claim to be copied from.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"description": "The name of the header to be created.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[-_A-Za-z0-9]+$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"outputPayloadToHeader": {
|
||||||
|
"description": "This field specifies the header name to output a successfully verified JWT payload to the backend.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"timeout": {
|
||||||
|
"description": "The maximum amount of time that the resolver, determined by the PILOT_JWT_ENABLE_REMOTE_JWKS environment variable, will spend waiting for the JWKS to be fetched.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "(has(self.jwksUri)?1:0)+(has(self.jwks_uri)?1:0)+(has(self.jwks)?1:0)<=1",
|
||||||
|
"message": "only one of jwks or jwksUri can be set"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 4096,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2663
src/__generated__/resources/K8SRequestAuthenticationV1.ts
generated
Normal file
2663
src/__generated__/resources/K8SRequestAuthenticationV1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
369
src/__generated__/resources/K8SRequestAuthenticationV1beta1.json
generated
Normal file
369
src/__generated__/resources/K8SRequestAuthenticationV1beta1.json
generated
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Request authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/request_authentication.html",
|
||||||
|
"properties": {
|
||||||
|
"jwtRules": {
|
||||||
|
"description": "Define the list of JWTs that can be validated at the selected workloads' proxy.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"issuer"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"audiences": {
|
||||||
|
"description": "The list of JWT [audiences](https://tools.ietf.org/html/rfc7519#section-4.1.3) that are allowed to access.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"forwardOriginalToken": {
|
||||||
|
"description": "If set to true, the original token will be kept for the upstream request.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"fromCookies": {
|
||||||
|
"description": "List of cookie names from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fromHeaders": {
|
||||||
|
"description": "List of header locations from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "The HTTP header name.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"prefix": {
|
||||||
|
"description": "The prefix that should be stripped before decoding the token.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fromParams": {
|
||||||
|
"description": "List of query parameters from which JWT is expected.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"issuer": {
|
||||||
|
"description": "Identifies the issuer that issued the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"jwks": {
|
||||||
|
"description": "JSON Web Key Set of public keys to validate signature of the JWT.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"jwksUri": {
|
||||||
|
"description": "URL of the provider's public key set to validate signature of the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"minLength": 1,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "url(self).getScheme() in ['http', 'https']",
|
||||||
|
"message": "url must have scheme http:// or https://"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"jwks_uri": {
|
||||||
|
"description": "URL of the provider's public key set to validate signature of the JWT.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"minLength": 1,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "url(self).getScheme() in ['http', 'https']",
|
||||||
|
"message": "url must have scheme http:// or https://"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"outputClaimToHeaders": {
|
||||||
|
"description": "This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"header",
|
||||||
|
"claim"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"claim": {
|
||||||
|
"description": "The name of the claim to be copied from.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"description": "The name of the header to be created.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[-_A-Za-z0-9]+$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"outputPayloadToHeader": {
|
||||||
|
"description": "This field specifies the header name to output a successfully verified JWT payload to the backend.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"timeout": {
|
||||||
|
"description": "The maximum amount of time that the resolver, determined by the PILOT_JWT_ENABLE_REMOTE_JWKS environment variable, will spend waiting for the JWKS to be fetched.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "(has(self.jwksUri)?1:0)+(has(self.jwks_uri)?1:0)+(has(self.jwks)?1:0)<=1",
|
||||||
|
"message": "only one of jwks or jwksUri can be set"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 4096,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2663
src/__generated__/resources/K8SRequestAuthenticationV1beta1.ts
generated
Normal file
2663
src/__generated__/resources/K8SRequestAuthenticationV1beta1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
95
src/__generated__/resources/K8SSecretRequestV1.json
generated
Normal file
95
src/__generated__/resources/K8SSecretRequestV1.json
generated
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"properties": {
|
||||||
|
"data": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"key"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"chars": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"encoding": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"utf-8",
|
||||||
|
"base64",
|
||||||
|
"base64url",
|
||||||
|
"hex"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"key": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"length": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"secretName": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"data"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"status",
|
||||||
|
"lastTransitionTime"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"True",
|
||||||
|
"False",
|
||||||
|
"Unknown"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"observedGeneration",
|
||||||
|
"conditions"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
29
src/__generated__/resources/K8SSecretRequestV1.ts
generated
Normal file
29
src/__generated__/resources/K8SSecretRequestV1.ts
generated
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SSecretRequestV1 {
|
||||||
|
spec?: {
|
||||||
|
data: {
|
||||||
|
chars?: string;
|
||||||
|
encoding?: "utf-8" | "base64" | "base64url" | "hex";
|
||||||
|
key: string;
|
||||||
|
length?: number;
|
||||||
|
value?: string;
|
||||||
|
}[];
|
||||||
|
secretName?: string;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
conditions: {
|
||||||
|
lastTransitionTime: string;
|
||||||
|
message?: string;
|
||||||
|
reason?: string;
|
||||||
|
status: "True" | "False" | "Unknown";
|
||||||
|
type: string;
|
||||||
|
}[];
|
||||||
|
observedGeneration: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
345
src/__generated__/resources/K8SServiceEntryV1.json
generated
Normal file
345
src/__generated__/resources/K8SServiceEntryV1.json
generated
Normal file
@@ -0,0 +1,345 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"addresses": {
|
||||||
|
"description": "The virtual IP addresses associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"endpoints": {
|
||||||
|
"description": "One or more endpoints associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true",
|
||||||
|
"message": "UDS must be an absolute path or abstract socket"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true",
|
||||||
|
"message": "UDS may not be a dir"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))",
|
||||||
|
"message": "port name must be valid"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "has(self.address) || has(self.network)",
|
||||||
|
"message": "Address is required"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true",
|
||||||
|
"message": "UDS may not include ports"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 4096,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"exportTo": {
|
||||||
|
"description": "A list of namespaces to which this service is exported.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "The hosts associated with the ServiceEntry.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self != '*'",
|
||||||
|
"message": "hostname cannot be wildcard"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"minItems": 1,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"description": "Specify whether the service should be considered external to the mesh or part of the mesh.\n\nValid Options: MESH_EXTERNAL, MESH_INTERNAL",
|
||||||
|
"_enum": [
|
||||||
|
"MESH_EXTERNAL",
|
||||||
|
"MESH_INTERNAL"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "The ports associated with the external service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"description": "The port number on the endpoint where the traffic will be received.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port number cannot be duplicated",
|
||||||
|
"rule": "self.all(l1, self.exists_one(l2, l1.number == l2.number))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"resolution": {
|
||||||
|
"description": "Service resolution mode for the hosts.\n\nValid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN",
|
||||||
|
"_enum": [
|
||||||
|
"NONE",
|
||||||
|
"STATIC",
|
||||||
|
"DNS",
|
||||||
|
"DNS_ROUND_ROBIN"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Applicable only for MESH_INTERNAL services.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of WorkloadSelector or Endpoints can be set",
|
||||||
|
"rule": "(has(self.workloadSelector)?1:0)+(has(self.endpoints)?1:0)<=1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "CIDR addresses are allowed only for NONE/STATIC resolution types",
|
||||||
|
"rule": "!(has(self.addresses) && self.addresses.exists(k, k.contains('/')) && (has(self.resolution) && self.resolution != 'STATIC' && self.resolution != 'NONE'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "NONE mode cannot set endpoints",
|
||||||
|
"rule": "(!has(self.resolution) || self.resolution == 'NONE') ? !has(self.endpoints) : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "DNS_ROUND_ROBIN mode cannot have multiple endpoints",
|
||||||
|
"rule": "(has(self.resolution) && self.resolution == 'DNS_ROUND_ROBIN') ? (!has(self.endpoints) || size(self.endpoints) == 1) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
180
src/__generated__/resources/K8SServiceEntryV1.ts
generated
Normal file
180
src/__generated__/resources/K8SServiceEntryV1.ts
generated
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SServiceEntryV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* The virtual IP addresses associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
addresses?: string[];
|
||||||
|
/**
|
||||||
|
* One or more endpoints associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
endpoints?: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The hosts associated with the ServiceEntry.
|
||||||
|
*
|
||||||
|
* @minItems 1
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
hosts: [string, ...string[]];
|
||||||
|
/**
|
||||||
|
* Specify whether the service should be considered external to the mesh or part of the mesh.
|
||||||
|
*
|
||||||
|
* Valid Options: MESH_EXTERNAL, MESH_INTERNAL
|
||||||
|
*/
|
||||||
|
location?: string;
|
||||||
|
/**
|
||||||
|
* The ports associated with the external service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* The port number on the endpoint where the traffic will be received.
|
||||||
|
*/
|
||||||
|
targetPort?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Service resolution mode for the hosts.
|
||||||
|
*
|
||||||
|
* Valid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN
|
||||||
|
*/
|
||||||
|
resolution?: string;
|
||||||
|
/**
|
||||||
|
* If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* Applicable only for MESH_INTERNAL services.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
345
src/__generated__/resources/K8SServiceEntryV1alpha3.json
generated
Normal file
345
src/__generated__/resources/K8SServiceEntryV1alpha3.json
generated
Normal file
@@ -0,0 +1,345 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"addresses": {
|
||||||
|
"description": "The virtual IP addresses associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"endpoints": {
|
||||||
|
"description": "One or more endpoints associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true",
|
||||||
|
"message": "UDS must be an absolute path or abstract socket"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true",
|
||||||
|
"message": "UDS may not be a dir"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))",
|
||||||
|
"message": "port name must be valid"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "has(self.address) || has(self.network)",
|
||||||
|
"message": "Address is required"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true",
|
||||||
|
"message": "UDS may not include ports"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 4096,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"exportTo": {
|
||||||
|
"description": "A list of namespaces to which this service is exported.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "The hosts associated with the ServiceEntry.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self != '*'",
|
||||||
|
"message": "hostname cannot be wildcard"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"minItems": 1,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"description": "Specify whether the service should be considered external to the mesh or part of the mesh.\n\nValid Options: MESH_EXTERNAL, MESH_INTERNAL",
|
||||||
|
"_enum": [
|
||||||
|
"MESH_EXTERNAL",
|
||||||
|
"MESH_INTERNAL"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "The ports associated with the external service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"description": "The port number on the endpoint where the traffic will be received.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port number cannot be duplicated",
|
||||||
|
"rule": "self.all(l1, self.exists_one(l2, l1.number == l2.number))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"resolution": {
|
||||||
|
"description": "Service resolution mode for the hosts.\n\nValid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN",
|
||||||
|
"_enum": [
|
||||||
|
"NONE",
|
||||||
|
"STATIC",
|
||||||
|
"DNS",
|
||||||
|
"DNS_ROUND_ROBIN"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Applicable only for MESH_INTERNAL services.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of WorkloadSelector or Endpoints can be set",
|
||||||
|
"rule": "(has(self.workloadSelector)?1:0)+(has(self.endpoints)?1:0)<=1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "CIDR addresses are allowed only for NONE/STATIC resolution types",
|
||||||
|
"rule": "!(has(self.addresses) && self.addresses.exists(k, k.contains('/')) && (has(self.resolution) && self.resolution != 'STATIC' && self.resolution != 'NONE'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "NONE mode cannot set endpoints",
|
||||||
|
"rule": "(!has(self.resolution) || self.resolution == 'NONE') ? !has(self.endpoints) : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "DNS_ROUND_ROBIN mode cannot have multiple endpoints",
|
||||||
|
"rule": "(has(self.resolution) && self.resolution == 'DNS_ROUND_ROBIN') ? (!has(self.endpoints) || size(self.endpoints) == 1) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
180
src/__generated__/resources/K8SServiceEntryV1alpha3.ts
generated
Normal file
180
src/__generated__/resources/K8SServiceEntryV1alpha3.ts
generated
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SServiceEntryV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* The virtual IP addresses associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
addresses?: string[];
|
||||||
|
/**
|
||||||
|
* One or more endpoints associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
endpoints?: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The hosts associated with the ServiceEntry.
|
||||||
|
*
|
||||||
|
* @minItems 1
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
hosts: [string, ...string[]];
|
||||||
|
/**
|
||||||
|
* Specify whether the service should be considered external to the mesh or part of the mesh.
|
||||||
|
*
|
||||||
|
* Valid Options: MESH_EXTERNAL, MESH_INTERNAL
|
||||||
|
*/
|
||||||
|
location?: string;
|
||||||
|
/**
|
||||||
|
* The ports associated with the external service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* The port number on the endpoint where the traffic will be received.
|
||||||
|
*/
|
||||||
|
targetPort?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Service resolution mode for the hosts.
|
||||||
|
*
|
||||||
|
* Valid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN
|
||||||
|
*/
|
||||||
|
resolution?: string;
|
||||||
|
/**
|
||||||
|
* If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* Applicable only for MESH_INTERNAL services.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
345
src/__generated__/resources/K8SServiceEntryV1beta1.json
generated
Normal file
345
src/__generated__/resources/K8SServiceEntryV1beta1.json
generated
Normal file
@@ -0,0 +1,345 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"addresses": {
|
||||||
|
"description": "The virtual IP addresses associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 64
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"endpoints": {
|
||||||
|
"description": "One or more endpoints associated with the service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true",
|
||||||
|
"message": "UDS must be an absolute path or abstract socket"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true",
|
||||||
|
"message": "UDS may not be a dir"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"type": "object",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))",
|
||||||
|
"message": "port name must be valid"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "has(self.address) || has(self.network)",
|
||||||
|
"message": "Address is required"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true",
|
||||||
|
"message": "UDS may not include ports"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 4096,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"exportTo": {
|
||||||
|
"description": "A list of namespaces to which this service is exported.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "The hosts associated with the ServiceEntry.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self != '*'",
|
||||||
|
"message": "hostname cannot be wildcard"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"minItems": 1,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"description": "Specify whether the service should be considered external to the mesh or part of the mesh.\n\nValid Options: MESH_EXTERNAL, MESH_INTERNAL",
|
||||||
|
"_enum": [
|
||||||
|
"MESH_EXTERNAL",
|
||||||
|
"MESH_INTERNAL"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "The ports associated with the external service.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"description": "The port number on the endpoint where the traffic will be received.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port number cannot be duplicated",
|
||||||
|
"rule": "self.all(l1, self.exists_one(l2, l1.number == l2.number))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"resolution": {
|
||||||
|
"description": "Service resolution mode for the hosts.\n\nValid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN",
|
||||||
|
"_enum": [
|
||||||
|
"NONE",
|
||||||
|
"STATIC",
|
||||||
|
"DNS",
|
||||||
|
"DNS_ROUND_ROBIN"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Applicable only for MESH_INTERNAL services.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of WorkloadSelector or Endpoints can be set",
|
||||||
|
"rule": "(has(self.workloadSelector)?1:0)+(has(self.endpoints)?1:0)<=1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "CIDR addresses are allowed only for NONE/STATIC resolution types",
|
||||||
|
"rule": "!(has(self.addresses) && self.addresses.exists(k, k.contains('/')) && (has(self.resolution) && self.resolution != 'STATIC' && self.resolution != 'NONE'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "NONE mode cannot set endpoints",
|
||||||
|
"rule": "(!has(self.resolution) || self.resolution == 'NONE') ? !has(self.endpoints) : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "DNS_ROUND_ROBIN mode cannot have multiple endpoints",
|
||||||
|
"rule": "(has(self.resolution) && self.resolution == 'DNS_ROUND_ROBIN') ? (!has(self.endpoints) || size(self.endpoints) == 1) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
180
src/__generated__/resources/K8SServiceEntryV1beta1.ts
generated
Normal file
180
src/__generated__/resources/K8SServiceEntryV1beta1.ts
generated
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SServiceEntryV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting service registry. See more details at: https://istio.io/docs/reference/config/networking/service-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* The virtual IP addresses associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
addresses?: string[];
|
||||||
|
/**
|
||||||
|
* One or more endpoints associated with the service.
|
||||||
|
*
|
||||||
|
* @maxItems 4096
|
||||||
|
*/
|
||||||
|
endpoints?: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The hosts associated with the ServiceEntry.
|
||||||
|
*
|
||||||
|
* @minItems 1
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
hosts: [string, ...string[]];
|
||||||
|
/**
|
||||||
|
* Specify whether the service should be considered external to the mesh or part of the mesh.
|
||||||
|
*
|
||||||
|
* Valid Options: MESH_EXTERNAL, MESH_INTERNAL
|
||||||
|
*/
|
||||||
|
location?: string;
|
||||||
|
/**
|
||||||
|
* The ports associated with the external service.
|
||||||
|
*
|
||||||
|
* @maxItems 256
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
/**
|
||||||
|
* The port number on the endpoint where the traffic will be received.
|
||||||
|
*/
|
||||||
|
targetPort?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Service resolution mode for the hosts.
|
||||||
|
*
|
||||||
|
* Valid Options: NONE, STATIC, DNS, DNS_ROUND_ROBIN
|
||||||
|
*/
|
||||||
|
resolution?: string;
|
||||||
|
/**
|
||||||
|
* If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* Applicable only for MESH_INTERNAL services.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
631
src/__generated__/resources/K8SSidecarV1.json
generated
Normal file
631
src/__generated__/resources/K8SSidecarV1.json
generated
Normal file
@@ -0,0 +1,631 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html",
|
||||||
|
"properties": {
|
||||||
|
"egress": {
|
||||||
|
"description": "Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more service hosts exposed by the listener in `namespace/dnsName` format.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"inboundConnectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"_enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ingress": {
|
||||||
|
"description": "Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) to which the listener should be bound.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "The captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"connectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"description": "The IP endpoint or Unix domain socket to which traffic should be forwarded to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"outboundTrafficPolicy": {
|
||||||
|
"description": "Set the default behavior of the sidecar for handling outbound traffic from the application.",
|
||||||
|
"properties": {
|
||||||
|
"egressProxy": {
|
||||||
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "The name of a service from the service registry.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "Specifies the port on the host that is being addressed.",
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"subset": {
|
||||||
|
"description": "The name of a subset within the service.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"host"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "\n\nValid Options: REGISTRY_ONLY, ALLOW_ANY",
|
||||||
|
"_enum": [
|
||||||
|
"REGISTRY_ONLY",
|
||||||
|
"ALLOW_ANY"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
413
src/__generated__/resources/K8SSidecarV1.ts
generated
Normal file
413
src/__generated__/resources/K8SSidecarV1.ts
generated
Normal file
@@ -0,0 +1,413 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SSidecarV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.
|
||||||
|
*/
|
||||||
|
egress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* One or more service hosts exposed by the listener in `namespace/dnsName` format.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
inboundConnectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.
|
||||||
|
*/
|
||||||
|
ingress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) to which the listener should be bound.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* The captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The IP endpoint or Unix domain socket to which traffic should be forwarded to.
|
||||||
|
*/
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Set the default behavior of the sidecar for handling outbound traffic from the application.
|
||||||
|
*/
|
||||||
|
outboundTrafficPolicy?: {
|
||||||
|
egressProxy?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Valid Options: REGISTRY_ONLY, ALLOW_ANY
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
631
src/__generated__/resources/K8SSidecarV1alpha3.json
generated
Normal file
631
src/__generated__/resources/K8SSidecarV1alpha3.json
generated
Normal file
@@ -0,0 +1,631 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html",
|
||||||
|
"properties": {
|
||||||
|
"egress": {
|
||||||
|
"description": "Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more service hosts exposed by the listener in `namespace/dnsName` format.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"inboundConnectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"_enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ingress": {
|
||||||
|
"description": "Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) to which the listener should be bound.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "The captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"connectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"description": "The IP endpoint or Unix domain socket to which traffic should be forwarded to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"outboundTrafficPolicy": {
|
||||||
|
"description": "Set the default behavior of the sidecar for handling outbound traffic from the application.",
|
||||||
|
"properties": {
|
||||||
|
"egressProxy": {
|
||||||
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "The name of a service from the service registry.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "Specifies the port on the host that is being addressed.",
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"subset": {
|
||||||
|
"description": "The name of a subset within the service.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"host"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "\n\nValid Options: REGISTRY_ONLY, ALLOW_ANY",
|
||||||
|
"_enum": [
|
||||||
|
"REGISTRY_ONLY",
|
||||||
|
"ALLOW_ANY"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
413
src/__generated__/resources/K8SSidecarV1alpha3.ts
generated
Normal file
413
src/__generated__/resources/K8SSidecarV1alpha3.ts
generated
Normal file
@@ -0,0 +1,413 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SSidecarV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.
|
||||||
|
*/
|
||||||
|
egress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* One or more service hosts exposed by the listener in `namespace/dnsName` format.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
inboundConnectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.
|
||||||
|
*/
|
||||||
|
ingress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) to which the listener should be bound.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* The captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The IP endpoint or Unix domain socket to which traffic should be forwarded to.
|
||||||
|
*/
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Set the default behavior of the sidecar for handling outbound traffic from the application.
|
||||||
|
*/
|
||||||
|
outboundTrafficPolicy?: {
|
||||||
|
egressProxy?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Valid Options: REGISTRY_ONLY, ALLOW_ANY
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
631
src/__generated__/resources/K8SSidecarV1beta1.json
generated
Normal file
631
src/__generated__/resources/K8SSidecarV1beta1.json
generated
Normal file
@@ -0,0 +1,631 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html",
|
||||||
|
"properties": {
|
||||||
|
"egress": {
|
||||||
|
"description": "Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"hosts"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hosts": {
|
||||||
|
"description": "One or more service hosts exposed by the listener in `namespace/dnsName` format.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"inboundConnectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"_enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"format": "int32",
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "must be a valid duration greater than 1ms",
|
||||||
|
"rule": "duration(self) >= duration('1ms')"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ingress": {
|
||||||
|
"description": "Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"bind": {
|
||||||
|
"description": "The IP(IPv4 or IPv6) to which the listener should be bound.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"captureMode": {
|
||||||
|
"description": "The captureMode option dictates how traffic to the listener is expected to be captured (or not).\n\nValid Options: DEFAULT, IPTABLES, NONE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"IPTABLES",
|
||||||
|
"NONE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"connectionPool": {
|
||||||
|
"description": "Settings controlling the volume of connections Envoy will accept from the network.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"http": {
|
||||||
|
"description": "HTTP connection pool settings.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"h2UpgradePolicy": {
|
||||||
|
"description": "Specify if http1.1 connection should be upgraded to http2 for the associated destination.\n\nValid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"DEFAULT",
|
||||||
|
"DO_NOT_UPGRADE",
|
||||||
|
"UPGRADE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"http1MaxPendingRequests": {
|
||||||
|
"description": "Maximum number of requests that will be queued while waiting for a ready connection pool connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"http2MaxRequests": {
|
||||||
|
"description": "Maximum number of active requests to a destination.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for upstream connection pool connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConcurrentStreams": {
|
||||||
|
"description": "The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRequestsPerConnection": {
|
||||||
|
"description": "Maximum number of requests per connection to a backend.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"maxRetries": {
|
||||||
|
"description": "Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"useClientProtocol": {
|
||||||
|
"description": "If set to true, client protocol will be preserved while initiating connection to backend.",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tcp": {
|
||||||
|
"description": "Settings common to both HTTP and TCP upstream connections.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"connectTimeout": {
|
||||||
|
"description": "TCP connection timeout.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"idleTimeout": {
|
||||||
|
"description": "The idle timeout for TCP connections.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnectionDuration": {
|
||||||
|
"description": "The maximum duration of a connection.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxConnections": {
|
||||||
|
"description": "Maximum number of HTTP1 /TCP connections to a destination host.",
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"tcpKeepalive": {
|
||||||
|
"description": "If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"interval": {
|
||||||
|
"description": "The time duration between keep-alive probes.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"probes": {
|
||||||
|
"description": "Maximum number of keepalive probes to send without response before deciding the connection is dead.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"description": "The time duration a connection needs to be idle before keep-alive probes start being sent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultEndpoint": {
|
||||||
|
"description": "The IP endpoint or Unix domain socket to which traffic should be forwarded to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "The port associated with the listener.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Label assigned to the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"number": {
|
||||||
|
"description": "A valid non-negative integer port number.",
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"protocol": {
|
||||||
|
"description": "The protocol exposed on the port.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetPort": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tls": {
|
||||||
|
"description": "Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"caCertificates": {
|
||||||
|
"description": "REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"caCrl": {
|
||||||
|
"description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cipherSuites": {
|
||||||
|
"description": "Optional: If specified, only support the specified cipher list.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"credentialName": {
|
||||||
|
"description": "For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpsRedirect": {
|
||||||
|
"description": "If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.",
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"maxProtocolVersion": {
|
||||||
|
"description": "Optional: Maximum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"minProtocolVersion": {
|
||||||
|
"description": "Optional: Minimum TLS protocol version.\n\nValid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"TLS_AUTO",
|
||||||
|
"TLSV1_0",
|
||||||
|
"TLSV1_1",
|
||||||
|
"TLSV1_2",
|
||||||
|
"TLSV1_3"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Optional: Indicates whether connections to this port should be secured using TLS.\n\nValid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"PASSTHROUGH",
|
||||||
|
"SIMPLE",
|
||||||
|
"MUTUAL",
|
||||||
|
"AUTO_PASSTHROUGH",
|
||||||
|
"ISTIO_MUTUAL",
|
||||||
|
"OPTIONAL_MUTUAL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"privateKey": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"serverCertificate": {
|
||||||
|
"description": "REQUIRED if mode is `SIMPLE` or `MUTUAL`.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"subjectAltNames": {
|
||||||
|
"description": "A list of alternate names to verify the subject identity in the certificate presented by the client.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateHash": {
|
||||||
|
"description": "An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"verifyCertificateSpki": {
|
||||||
|
"description": "An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"outboundTrafficPolicy": {
|
||||||
|
"description": "Set the default behavior of the sidecar for handling outbound traffic from the application.",
|
||||||
|
"properties": {
|
||||||
|
"egressProxy": {
|
||||||
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "The name of a service from the service registry.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "Specifies the port on the host that is being addressed.",
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"subset": {
|
||||||
|
"description": "The name of a subset within the service.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"host"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "\n\nValid Options: REGISTRY_ONLY, ALLOW_ANY",
|
||||||
|
"_enum": [
|
||||||
|
"REGISTRY_ONLY",
|
||||||
|
"ALLOW_ANY"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"workloadSelector": {
|
||||||
|
"description": "Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.",
|
||||||
|
"properties": {
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard is not supported in selector"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
413
src/__generated__/resources/K8SSidecarV1beta1.ts
generated
Normal file
413
src/__generated__/resources/K8SSidecarV1beta1.ts
generated
Normal file
@@ -0,0 +1,413 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SSidecarV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting network reachability of a sidecar. See more details at: https://istio.io/docs/reference/config/networking/sidecar.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* Egress specifies the configuration of the sidecar for processing outbound traffic from the attached workload instance to other services in the mesh.
|
||||||
|
*/
|
||||||
|
egress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) or the Unix domain socket to which the listener should be bound to.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* When the bind address is an IP, the captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* One or more service hosts exposed by the listener in `namespace/dnsName` format.
|
||||||
|
*/
|
||||||
|
hosts: string[];
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
inboundConnectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Ingress specifies the configuration of the sidecar for processing inbound traffic to the attached workload instance.
|
||||||
|
*/
|
||||||
|
ingress?: {
|
||||||
|
/**
|
||||||
|
* The IP(IPv4 or IPv6) to which the listener should be bound.
|
||||||
|
*/
|
||||||
|
bind?: string;
|
||||||
|
/**
|
||||||
|
* The captureMode option dictates how traffic to the listener is expected to be captured (or not).
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, IPTABLES, NONE
|
||||||
|
*/
|
||||||
|
captureMode?: "DEFAULT" | "IPTABLES" | "NONE";
|
||||||
|
/**
|
||||||
|
* Settings controlling the volume of connections Envoy will accept from the network.
|
||||||
|
*/
|
||||||
|
connectionPool?: {
|
||||||
|
/**
|
||||||
|
* HTTP connection pool settings.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Specify if http1.1 connection should be upgraded to http2 for the associated destination.
|
||||||
|
*
|
||||||
|
* Valid Options: DEFAULT, DO_NOT_UPGRADE, UPGRADE
|
||||||
|
*/
|
||||||
|
h2UpgradePolicy?: "DEFAULT" | "DO_NOT_UPGRADE" | "UPGRADE";
|
||||||
|
/**
|
||||||
|
* Maximum number of requests that will be queued while waiting for a ready connection pool connection.
|
||||||
|
*/
|
||||||
|
http1MaxPendingRequests?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of active requests to a destination.
|
||||||
|
*/
|
||||||
|
http2MaxRequests?: number;
|
||||||
|
/**
|
||||||
|
* The idle timeout for upstream connection pool connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum number of concurrent streams allowed for a peer on one HTTP/2 connection.
|
||||||
|
*/
|
||||||
|
maxConcurrentStreams?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of requests per connection to a backend.
|
||||||
|
*/
|
||||||
|
maxRequestsPerConnection?: number;
|
||||||
|
/**
|
||||||
|
* Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
|
||||||
|
*/
|
||||||
|
maxRetries?: number;
|
||||||
|
/**
|
||||||
|
* If set to true, client protocol will be preserved while initiating connection to backend.
|
||||||
|
*/
|
||||||
|
useClientProtocol?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Settings common to both HTTP and TCP upstream connections.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* TCP connection timeout.
|
||||||
|
*/
|
||||||
|
connectTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The idle timeout for TCP connections.
|
||||||
|
*/
|
||||||
|
idleTimeout?: string;
|
||||||
|
/**
|
||||||
|
* The maximum duration of a connection.
|
||||||
|
*/
|
||||||
|
maxConnectionDuration?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of HTTP1 /TCP connections to a destination host.
|
||||||
|
*/
|
||||||
|
maxConnections?: number;
|
||||||
|
/**
|
||||||
|
* If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
||||||
|
*/
|
||||||
|
tcpKeepalive?: {
|
||||||
|
/**
|
||||||
|
* The time duration between keep-alive probes.
|
||||||
|
*/
|
||||||
|
interval?: string;
|
||||||
|
/**
|
||||||
|
* Maximum number of keepalive probes to send without response before deciding the connection is dead.
|
||||||
|
*/
|
||||||
|
probes?: number;
|
||||||
|
/**
|
||||||
|
* The time duration a connection needs to be idle before keep-alive probes start being sent.
|
||||||
|
*/
|
||||||
|
time?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The IP endpoint or Unix domain socket to which traffic should be forwarded to.
|
||||||
|
*/
|
||||||
|
defaultEndpoint?: string;
|
||||||
|
/**
|
||||||
|
* The port associated with the listener.
|
||||||
|
*/
|
||||||
|
port: {
|
||||||
|
/**
|
||||||
|
* Label assigned to the port.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A valid non-negative integer port number.
|
||||||
|
*/
|
||||||
|
number?: number;
|
||||||
|
/**
|
||||||
|
* The protocol exposed on the port.
|
||||||
|
*/
|
||||||
|
protocol?: string;
|
||||||
|
targetPort?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Set of TLS related options that will enable TLS termination on the sidecar for requests originating from outside the mesh.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `MUTUAL` or `OPTIONAL_MUTUAL`.
|
||||||
|
*/
|
||||||
|
caCertificates?: string;
|
||||||
|
/**
|
||||||
|
* OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented client side certificate.
|
||||||
|
*/
|
||||||
|
caCrl?: string;
|
||||||
|
/**
|
||||||
|
* Optional: If specified, only support the specified cipher list.
|
||||||
|
*/
|
||||||
|
cipherSuites?: string[];
|
||||||
|
/**
|
||||||
|
* For gateways running on Kubernetes, the name of the secret that holds the TLS certs including the CA certificates.
|
||||||
|
*/
|
||||||
|
credentialName?: string;
|
||||||
|
/**
|
||||||
|
* If set to true, the load balancer will send a 301 redirect for all http connections, asking the clients to use HTTPS.
|
||||||
|
*/
|
||||||
|
httpsRedirect?: boolean;
|
||||||
|
/**
|
||||||
|
* Optional: Maximum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
maxProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Minimum TLS protocol version.
|
||||||
|
*
|
||||||
|
* Valid Options: TLS_AUTO, TLSV1_0, TLSV1_1, TLSV1_2, TLSV1_3
|
||||||
|
*/
|
||||||
|
minProtocolVersion?: "TLS_AUTO" | "TLSV1_0" | "TLSV1_1" | "TLSV1_2" | "TLSV1_3";
|
||||||
|
/**
|
||||||
|
* Optional: Indicates whether connections to this port should be secured using TLS.
|
||||||
|
*
|
||||||
|
* Valid Options: PASSTHROUGH, SIMPLE, MUTUAL, AUTO_PASSTHROUGH, ISTIO_MUTUAL, OPTIONAL_MUTUAL
|
||||||
|
*/
|
||||||
|
mode?: "PASSTHROUGH" | "SIMPLE" | "MUTUAL" | "AUTO_PASSTHROUGH" | "ISTIO_MUTUAL" | "OPTIONAL_MUTUAL";
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
privateKey?: string;
|
||||||
|
/**
|
||||||
|
* REQUIRED if mode is `SIMPLE` or `MUTUAL`.
|
||||||
|
*/
|
||||||
|
serverCertificate?: string;
|
||||||
|
/**
|
||||||
|
* A list of alternate names to verify the subject identity in the certificate presented by the client.
|
||||||
|
*/
|
||||||
|
subjectAltNames?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of hex-encoded SHA-256 hashes of the authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateHash?: string[];
|
||||||
|
/**
|
||||||
|
* An optional list of base64-encoded SHA-256 hashes of the SPKIs of authorized client certificates.
|
||||||
|
*/
|
||||||
|
verifyCertificateSpki?: string[];
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Set the default behavior of the sidecar for handling outbound traffic from the application.
|
||||||
|
*/
|
||||||
|
outboundTrafficPolicy?: {
|
||||||
|
egressProxy?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Valid Options: REGISTRY_ONLY, ALLOW_ANY
|
||||||
|
*/
|
||||||
|
mode?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Criteria used to select the specific set of pods/VMs on which this `Sidecar` configuration should be applied.
|
||||||
|
*/
|
||||||
|
workloadSelector?: {
|
||||||
|
/**
|
||||||
|
* One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
587
src/__generated__/resources/K8STelemetryV1.json
generated
Normal file
587
src/__generated__/resources/K8STelemetryV1.json
generated
Normal file
@@ -0,0 +1,587 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Telemetry configuration for workloads. See more details at: https://istio.io/docs/reference/config/telemetry.html",
|
||||||
|
"properties": {
|
||||||
|
"accessLogging": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"disabled": {
|
||||||
|
"description": "Controls logging.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"expression": {
|
||||||
|
"description": "CEL expression for selecting when requests/connections should be logged.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Allows tailoring of logging behavior to specific conditions.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "This determines whether or not to apply the access logging configuration based on the direction of traffic relative to the proxied workload.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"overrides": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"disabled": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Match allows providing the scope of the override.",
|
||||||
|
"type": "object",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"metric"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"customMetric"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"metric"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"customMetric"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"customMetric": {
|
||||||
|
"description": "Allows free-form specification of a metric.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"metric": {
|
||||||
|
"description": "One of the well-known [Istio Standard Metrics](https://istio.io/latest/docs/reference/config/metrics/).\n\nValid Options: ALL_METRICS, REQUEST_COUNT, REQUEST_DURATION, REQUEST_SIZE, RESPONSE_SIZE, TCP_OPENED_CONNECTIONS, TCP_CLOSED_CONNECTIONS, TCP_SENT_BYTES, TCP_RECEIVED_BYTES, GRPC_REQUEST_MESSAGES, GRPC_RESPONSE_MESSAGES",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ALL_METRICS",
|
||||||
|
"REQUEST_COUNT",
|
||||||
|
"REQUEST_DURATION",
|
||||||
|
"REQUEST_SIZE",
|
||||||
|
"RESPONSE_SIZE",
|
||||||
|
"TCP_OPENED_CONNECTIONS",
|
||||||
|
"TCP_CLOSED_CONNECTIONS",
|
||||||
|
"TCP_SENT_BYTES",
|
||||||
|
"TCP_RECEIVED_BYTES",
|
||||||
|
"GRPC_REQUEST_MESSAGES",
|
||||||
|
"GRPC_RESPONSE_MESSAGES"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Controls which mode of metrics generation is selected: `CLIENT`, `SERVER`, or `CLIENT_AND_SERVER`.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tagOverrides": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"operation": {
|
||||||
|
"description": "Operation controls whether or not to update/add a tag, or to remove it.\n\nValid Options: UPSERT, REMOVE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UPSERT",
|
||||||
|
"REMOVE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"description": "Value is only considered if the operation is `UPSERT`.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "((has(self.operation) ? self.operation : '') == 'UPSERT') ? self.value != '' : true",
|
||||||
|
"message": "value must be set when operation is UPSERT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "((has(self.operation) ? self.operation : '') == 'REMOVE') ? !has(self.value) : true",
|
||||||
|
"message": "value must not be set when operation is REMOVE"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reportingInterval": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"tracing": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"customTags": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"literal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"environment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"header"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"literal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"environment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"header"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"environment": {
|
||||||
|
"description": "Environment adds the value of an environment variable to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"defaultValue": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the environment variable from which to extract the tag value.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"description": "RequestHeader adds the value of an header from the request to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"defaultValue": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the header from which to extract the tag value.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"literal": {
|
||||||
|
"description": "Literal adds the same, hard-coded value to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"value"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"description": "The tag value to use.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disableSpanReporting": {
|
||||||
|
"description": "Controls span reporting.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Allows tailoring of behavior to specific conditions.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "This determines whether or not to apply the tracing configuration based on the direction of traffic relative to the proxied workload.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"randomSamplingPercentage": {
|
||||||
|
"description": "Controls the rate at which traffic will be selected for tracing if no prior sampling decision has been made.",
|
||||||
|
"type": "number",
|
||||||
|
"format": "double",
|
||||||
|
"maximum": 100,
|
||||||
|
"minimum": 0,
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"useRequestIdForTraceSampling": {
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2720
src/__generated__/resources/K8STelemetryV1.ts
generated
Normal file
2720
src/__generated__/resources/K8STelemetryV1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
587
src/__generated__/resources/K8STelemetryV1alpha1.json
generated
Normal file
587
src/__generated__/resources/K8STelemetryV1alpha1.json
generated
Normal file
@@ -0,0 +1,587 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Telemetry configuration for workloads. See more details at: https://istio.io/docs/reference/config/telemetry.html",
|
||||||
|
"properties": {
|
||||||
|
"accessLogging": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"disabled": {
|
||||||
|
"description": "Controls logging.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"expression": {
|
||||||
|
"description": "CEL expression for selecting when requests/connections should be logged.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Allows tailoring of logging behavior to specific conditions.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "This determines whether or not to apply the access logging configuration based on the direction of traffic relative to the proxied workload.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"metrics": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"overrides": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"disabled": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Match allows providing the scope of the override.",
|
||||||
|
"type": "object",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"metric"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"customMetric"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"metric"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"customMetric"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"customMetric": {
|
||||||
|
"description": "Allows free-form specification of a metric.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"metric": {
|
||||||
|
"description": "One of the well-known [Istio Standard Metrics](https://istio.io/latest/docs/reference/config/metrics/).\n\nValid Options: ALL_METRICS, REQUEST_COUNT, REQUEST_DURATION, REQUEST_SIZE, RESPONSE_SIZE, TCP_OPENED_CONNECTIONS, TCP_CLOSED_CONNECTIONS, TCP_SENT_BYTES, TCP_RECEIVED_BYTES, GRPC_REQUEST_MESSAGES, GRPC_RESPONSE_MESSAGES",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ALL_METRICS",
|
||||||
|
"REQUEST_COUNT",
|
||||||
|
"REQUEST_DURATION",
|
||||||
|
"REQUEST_SIZE",
|
||||||
|
"RESPONSE_SIZE",
|
||||||
|
"TCP_OPENED_CONNECTIONS",
|
||||||
|
"TCP_CLOSED_CONNECTIONS",
|
||||||
|
"TCP_SENT_BYTES",
|
||||||
|
"TCP_RECEIVED_BYTES",
|
||||||
|
"GRPC_REQUEST_MESSAGES",
|
||||||
|
"GRPC_RESPONSE_MESSAGES"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mode": {
|
||||||
|
"description": "Controls which mode of metrics generation is selected: `CLIENT`, `SERVER`, or `CLIENT_AND_SERVER`.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tagOverrides": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"operation": {
|
||||||
|
"description": "Operation controls whether or not to update/add a tag, or to remove it.\n\nValid Options: UPSERT, REMOVE",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UPSERT",
|
||||||
|
"REMOVE"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"description": "Value is only considered if the operation is `UPSERT`.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "((has(self.operation) ? self.operation : '') == 'UPSERT') ? self.value != '' : true",
|
||||||
|
"message": "value must be set when operation is UPSERT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rule": "((has(self.operation) ? self.operation : '') == 'REMOVE') ? !has(self.value) : true",
|
||||||
|
"message": "value must not be set when operation is REMOVE"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"reportingInterval": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "duration(self) >= duration('1ms')",
|
||||||
|
"message": "must be a valid duration greater than 1ms"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"tracing": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"customTags": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"literal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"environment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"header"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"literal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"environment"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"header"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"environment": {
|
||||||
|
"description": "Environment adds the value of an environment variable to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"defaultValue": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the environment variable from which to extract the tag value.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"description": "RequestHeader adds the value of an header from the request to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"defaultValue": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the header from which to extract the tag value.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"literal": {
|
||||||
|
"description": "Literal adds the same, hard-coded value to each span.",
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"value"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"value": {
|
||||||
|
"description": "The tag value to use.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disableSpanReporting": {
|
||||||
|
"description": "Controls span reporting.",
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Allows tailoring of behavior to specific conditions.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "This determines whether or not to apply the tracing configuration based on the direction of traffic relative to the proxied workload.\n\nValid Options: CLIENT_AND_SERVER, CLIENT, SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"CLIENT_AND_SERVER",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Required.",
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"randomSamplingPercentage": {
|
||||||
|
"description": "Controls the rate at which traffic will be selected for tracing if no prior sampling decision has been made.",
|
||||||
|
"type": "number",
|
||||||
|
"format": "double",
|
||||||
|
"maximum": 100,
|
||||||
|
"minimum": 0,
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"useRequestIdForTraceSampling": {
|
||||||
|
"type": "boolean",
|
||||||
|
"nullable": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2720
src/__generated__/resources/K8STelemetryV1alpha1.ts
generated
Normal file
2720
src/__generated__/resources/K8STelemetryV1alpha1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
1476
src/__generated__/resources/K8SVirtualServiceV1.json
generated
Normal file
1476
src/__generated__/resources/K8SVirtualServiceV1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
568
src/__generated__/resources/K8SVirtualServiceV1.ts
generated
Normal file
568
src/__generated__/resources/K8SVirtualServiceV1.ts
generated
Normal file
@@ -0,0 +1,568 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SVirtualServiceV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this virtual service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The names of gateways and sidecars that should apply these routes.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The destination hosts to which traffic is being sent.
|
||||||
|
*/
|
||||||
|
hosts?: string[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for HTTP traffic.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Cross-Origin Resource Sharing policy (CORS).
|
||||||
|
*/
|
||||||
|
corsPolicy?: {
|
||||||
|
/**
|
||||||
|
* Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.
|
||||||
|
*/
|
||||||
|
allowCredentials?: boolean;
|
||||||
|
/**
|
||||||
|
* List of HTTP headers that can be used when requesting the resource.
|
||||||
|
*/
|
||||||
|
allowHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* List of HTTP methods allowed to access the resource.
|
||||||
|
*/
|
||||||
|
allowMethods?: string[];
|
||||||
|
allowOrigin?: string[];
|
||||||
|
/**
|
||||||
|
* String patterns that match allowed origins.
|
||||||
|
*/
|
||||||
|
allowOrigins?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of HTTP headers that the browsers are allowed to access.
|
||||||
|
*/
|
||||||
|
exposeHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies how long the results of a preflight request can be cached.
|
||||||
|
*/
|
||||||
|
maxAge?: string;
|
||||||
|
/**
|
||||||
|
* Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.
|
||||||
|
*
|
||||||
|
* Valid Options: FORWARD, IGNORE
|
||||||
|
*/
|
||||||
|
unmatchedPreflights?: "UNSPECIFIED" | "FORWARD" | "IGNORE";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.
|
||||||
|
*/
|
||||||
|
delegate?: {
|
||||||
|
/**
|
||||||
|
* Name specifies the name of the delegate VirtualService.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Namespace specifies the namespace where the delegate VirtualService resides.
|
||||||
|
*/
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
directResponse?: {
|
||||||
|
/**
|
||||||
|
* Specifies the content of the response body.
|
||||||
|
*/
|
||||||
|
body?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the HTTP response status to be returned.
|
||||||
|
*/
|
||||||
|
status: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Fault injection policy to apply on HTTP traffic at the client side.
|
||||||
|
*/
|
||||||
|
fault?: {
|
||||||
|
/**
|
||||||
|
* Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.
|
||||||
|
*/
|
||||||
|
abort?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.
|
||||||
|
*/
|
||||||
|
delay?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
authority?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The header keys must be lowercase and use hyphen as the separator, e.g.
|
||||||
|
*/
|
||||||
|
headers?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the URI matching should be case-insensitive.
|
||||||
|
*/
|
||||||
|
ignoreUriCase?: boolean;
|
||||||
|
/**
|
||||||
|
* HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
method?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name assigned to a match.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the ports on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* Query parameters for matching.
|
||||||
|
*/
|
||||||
|
queryParams?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
scheme?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
/**
|
||||||
|
* The human readable prefix to use when emitting statistics for this route.
|
||||||
|
*/
|
||||||
|
statPrefix?: string;
|
||||||
|
/**
|
||||||
|
* URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
uri?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* withoutHeader has the same syntax with the header, but has opposite meaning.
|
||||||
|
*/
|
||||||
|
withoutHeaders?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.
|
||||||
|
*/
|
||||||
|
mirror?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
mirrorPercent?: number;
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `mirror` field.
|
||||||
|
*/
|
||||||
|
mirrorPercentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
mirror_percent?: number;
|
||||||
|
/**
|
||||||
|
* Specifies the destinations to mirror HTTP traffic in addition to the original destination.
|
||||||
|
*/
|
||||||
|
mirrors?: {
|
||||||
|
/**
|
||||||
|
* Destination specifies the target of the mirror operation.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `destination` field.
|
||||||
|
*/
|
||||||
|
percentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The name assigned to the route for debugging purposes.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
redirect?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Retry policy for HTTP requests.
|
||||||
|
*/
|
||||||
|
retries?: {
|
||||||
|
/**
|
||||||
|
* Number of retries to be allowed for a given request.
|
||||||
|
*/
|
||||||
|
attempts?: number;
|
||||||
|
/**
|
||||||
|
* Timeout per attempt for a given request, including the initial call and any retries.
|
||||||
|
*/
|
||||||
|
perTryTimeout?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the conditions under which retry takes place.
|
||||||
|
*/
|
||||||
|
retryOn?: string;
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the retries should retry to other localities.
|
||||||
|
*/
|
||||||
|
retryRemoteLocalities?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Rewrite HTTP URIs and Authority headers.
|
||||||
|
*/
|
||||||
|
rewrite?: {
|
||||||
|
/**
|
||||||
|
* rewrite the Authority/Host header with this value.
|
||||||
|
*/
|
||||||
|
authority?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path (or the prefix) portion of the URI with this value.
|
||||||
|
*/
|
||||||
|
uri?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path portion of the URI with the specified regex.
|
||||||
|
*/
|
||||||
|
uriRegexRewrite?: {
|
||||||
|
/**
|
||||||
|
* [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
match?: string;
|
||||||
|
/**
|
||||||
|
* The string that should replace into matching portions of original URI.
|
||||||
|
*/
|
||||||
|
rewrite?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Timeout for HTTP requests, default is disabled.
|
||||||
|
*/
|
||||||
|
timeout?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for opaque TCP traffic.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
sourceSubnet?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rule for non-terminated TLS & HTTPS traffic.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* SNI (server name indicator) to match on.
|
||||||
|
*/
|
||||||
|
sniHosts: string[];
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
1476
src/__generated__/resources/K8SVirtualServiceV1alpha3.json
generated
Normal file
1476
src/__generated__/resources/K8SVirtualServiceV1alpha3.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
568
src/__generated__/resources/K8SVirtualServiceV1alpha3.ts
generated
Normal file
568
src/__generated__/resources/K8SVirtualServiceV1alpha3.ts
generated
Normal file
@@ -0,0 +1,568 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SVirtualServiceV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this virtual service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The names of gateways and sidecars that should apply these routes.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The destination hosts to which traffic is being sent.
|
||||||
|
*/
|
||||||
|
hosts?: string[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for HTTP traffic.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Cross-Origin Resource Sharing policy (CORS).
|
||||||
|
*/
|
||||||
|
corsPolicy?: {
|
||||||
|
/**
|
||||||
|
* Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.
|
||||||
|
*/
|
||||||
|
allowCredentials?: boolean;
|
||||||
|
/**
|
||||||
|
* List of HTTP headers that can be used when requesting the resource.
|
||||||
|
*/
|
||||||
|
allowHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* List of HTTP methods allowed to access the resource.
|
||||||
|
*/
|
||||||
|
allowMethods?: string[];
|
||||||
|
allowOrigin?: string[];
|
||||||
|
/**
|
||||||
|
* String patterns that match allowed origins.
|
||||||
|
*/
|
||||||
|
allowOrigins?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of HTTP headers that the browsers are allowed to access.
|
||||||
|
*/
|
||||||
|
exposeHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies how long the results of a preflight request can be cached.
|
||||||
|
*/
|
||||||
|
maxAge?: string;
|
||||||
|
/**
|
||||||
|
* Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.
|
||||||
|
*
|
||||||
|
* Valid Options: FORWARD, IGNORE
|
||||||
|
*/
|
||||||
|
unmatchedPreflights?: "UNSPECIFIED" | "FORWARD" | "IGNORE";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.
|
||||||
|
*/
|
||||||
|
delegate?: {
|
||||||
|
/**
|
||||||
|
* Name specifies the name of the delegate VirtualService.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Namespace specifies the namespace where the delegate VirtualService resides.
|
||||||
|
*/
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
directResponse?: {
|
||||||
|
/**
|
||||||
|
* Specifies the content of the response body.
|
||||||
|
*/
|
||||||
|
body?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the HTTP response status to be returned.
|
||||||
|
*/
|
||||||
|
status: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Fault injection policy to apply on HTTP traffic at the client side.
|
||||||
|
*/
|
||||||
|
fault?: {
|
||||||
|
/**
|
||||||
|
* Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.
|
||||||
|
*/
|
||||||
|
abort?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.
|
||||||
|
*/
|
||||||
|
delay?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
authority?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The header keys must be lowercase and use hyphen as the separator, e.g.
|
||||||
|
*/
|
||||||
|
headers?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the URI matching should be case-insensitive.
|
||||||
|
*/
|
||||||
|
ignoreUriCase?: boolean;
|
||||||
|
/**
|
||||||
|
* HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
method?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name assigned to a match.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the ports on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* Query parameters for matching.
|
||||||
|
*/
|
||||||
|
queryParams?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
scheme?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
/**
|
||||||
|
* The human readable prefix to use when emitting statistics for this route.
|
||||||
|
*/
|
||||||
|
statPrefix?: string;
|
||||||
|
/**
|
||||||
|
* URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
uri?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* withoutHeader has the same syntax with the header, but has opposite meaning.
|
||||||
|
*/
|
||||||
|
withoutHeaders?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.
|
||||||
|
*/
|
||||||
|
mirror?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
mirrorPercent?: number;
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `mirror` field.
|
||||||
|
*/
|
||||||
|
mirrorPercentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
mirror_percent?: number;
|
||||||
|
/**
|
||||||
|
* Specifies the destinations to mirror HTTP traffic in addition to the original destination.
|
||||||
|
*/
|
||||||
|
mirrors?: {
|
||||||
|
/**
|
||||||
|
* Destination specifies the target of the mirror operation.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `destination` field.
|
||||||
|
*/
|
||||||
|
percentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The name assigned to the route for debugging purposes.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
redirect?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Retry policy for HTTP requests.
|
||||||
|
*/
|
||||||
|
retries?: {
|
||||||
|
/**
|
||||||
|
* Number of retries to be allowed for a given request.
|
||||||
|
*/
|
||||||
|
attempts?: number;
|
||||||
|
/**
|
||||||
|
* Timeout per attempt for a given request, including the initial call and any retries.
|
||||||
|
*/
|
||||||
|
perTryTimeout?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the conditions under which retry takes place.
|
||||||
|
*/
|
||||||
|
retryOn?: string;
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the retries should retry to other localities.
|
||||||
|
*/
|
||||||
|
retryRemoteLocalities?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Rewrite HTTP URIs and Authority headers.
|
||||||
|
*/
|
||||||
|
rewrite?: {
|
||||||
|
/**
|
||||||
|
* rewrite the Authority/Host header with this value.
|
||||||
|
*/
|
||||||
|
authority?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path (or the prefix) portion of the URI with this value.
|
||||||
|
*/
|
||||||
|
uri?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path portion of the URI with the specified regex.
|
||||||
|
*/
|
||||||
|
uriRegexRewrite?: {
|
||||||
|
/**
|
||||||
|
* [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
match?: string;
|
||||||
|
/**
|
||||||
|
* The string that should replace into matching portions of original URI.
|
||||||
|
*/
|
||||||
|
rewrite?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Timeout for HTTP requests, default is disabled.
|
||||||
|
*/
|
||||||
|
timeout?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for opaque TCP traffic.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
sourceSubnet?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rule for non-terminated TLS & HTTPS traffic.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* SNI (server name indicator) to match on.
|
||||||
|
*/
|
||||||
|
sniHosts: string[];
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
1476
src/__generated__/resources/K8SVirtualServiceV1beta1.json
generated
Normal file
1476
src/__generated__/resources/K8SVirtualServiceV1beta1.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
568
src/__generated__/resources/K8SVirtualServiceV1beta1.ts
generated
Normal file
568
src/__generated__/resources/K8SVirtualServiceV1beta1.ts
generated
Normal file
@@ -0,0 +1,568 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SVirtualServiceV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html
|
||||||
|
*/
|
||||||
|
spec?: {
|
||||||
|
/**
|
||||||
|
* A list of namespaces to which this virtual service is exported.
|
||||||
|
*/
|
||||||
|
exportTo?: string[];
|
||||||
|
/**
|
||||||
|
* The names of gateways and sidecars that should apply these routes.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The destination hosts to which traffic is being sent.
|
||||||
|
*/
|
||||||
|
hosts?: string[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for HTTP traffic.
|
||||||
|
*/
|
||||||
|
http?: {
|
||||||
|
/**
|
||||||
|
* Cross-Origin Resource Sharing policy (CORS).
|
||||||
|
*/
|
||||||
|
corsPolicy?: {
|
||||||
|
/**
|
||||||
|
* Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.
|
||||||
|
*/
|
||||||
|
allowCredentials?: boolean;
|
||||||
|
/**
|
||||||
|
* List of HTTP headers that can be used when requesting the resource.
|
||||||
|
*/
|
||||||
|
allowHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* List of HTTP methods allowed to access the resource.
|
||||||
|
*/
|
||||||
|
allowMethods?: string[];
|
||||||
|
allowOrigin?: string[];
|
||||||
|
/**
|
||||||
|
* String patterns that match allowed origins.
|
||||||
|
*/
|
||||||
|
allowOrigins?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* A list of HTTP headers that the browsers are allowed to access.
|
||||||
|
*/
|
||||||
|
exposeHeaders?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies how long the results of a preflight request can be cached.
|
||||||
|
*/
|
||||||
|
maxAge?: string;
|
||||||
|
/**
|
||||||
|
* Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.
|
||||||
|
*
|
||||||
|
* Valid Options: FORWARD, IGNORE
|
||||||
|
*/
|
||||||
|
unmatchedPreflights?: "UNSPECIFIED" | "FORWARD" | "IGNORE";
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.
|
||||||
|
*/
|
||||||
|
delegate?: {
|
||||||
|
/**
|
||||||
|
* Name specifies the name of the delegate VirtualService.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Namespace specifies the namespace where the delegate VirtualService resides.
|
||||||
|
*/
|
||||||
|
namespace?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
directResponse?: {
|
||||||
|
/**
|
||||||
|
* Specifies the content of the response body.
|
||||||
|
*/
|
||||||
|
body?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Specifies the HTTP response status to be returned.
|
||||||
|
*/
|
||||||
|
status: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Fault injection policy to apply on HTTP traffic at the client side.
|
||||||
|
*/
|
||||||
|
fault?: {
|
||||||
|
/**
|
||||||
|
* Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.
|
||||||
|
*/
|
||||||
|
abort?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.
|
||||||
|
*/
|
||||||
|
delay?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* HTTP Authority values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
authority?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* The header keys must be lowercase and use hyphen as the separator, e.g.
|
||||||
|
*/
|
||||||
|
headers?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the URI matching should be case-insensitive.
|
||||||
|
*/
|
||||||
|
ignoreUriCase?: boolean;
|
||||||
|
/**
|
||||||
|
* HTTP Method values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
method?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name assigned to a match.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the ports on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* Query parameters for matching.
|
||||||
|
*/
|
||||||
|
queryParams?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* URI Scheme values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
scheme?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
/**
|
||||||
|
* The human readable prefix to use when emitting statistics for this route.
|
||||||
|
*/
|
||||||
|
statPrefix?: string;
|
||||||
|
/**
|
||||||
|
* URI to match values are case-sensitive and formatted as follows: - `exact: "value"` for exact string match - `prefix: "value"` for prefix-based match - `regex: "value"` for [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
uri?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* withoutHeader has the same syntax with the header, but has opposite meaning.
|
||||||
|
*/
|
||||||
|
withoutHeaders?: {
|
||||||
|
[k: string]: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.
|
||||||
|
*/
|
||||||
|
mirror?: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
mirrorPercent?: number;
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `mirror` field.
|
||||||
|
*/
|
||||||
|
mirrorPercentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
mirror_percent?: number;
|
||||||
|
/**
|
||||||
|
* Specifies the destinations to mirror HTTP traffic in addition to the original destination.
|
||||||
|
*/
|
||||||
|
mirrors?: {
|
||||||
|
/**
|
||||||
|
* Destination specifies the target of the mirror operation.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Percentage of the traffic to be mirrored by the `destination` field.
|
||||||
|
*/
|
||||||
|
percentage?: {
|
||||||
|
value?: number;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The name assigned to the route for debugging purposes.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
redirect?: {
|
||||||
|
[k: string]: unknown;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Retry policy for HTTP requests.
|
||||||
|
*/
|
||||||
|
retries?: {
|
||||||
|
/**
|
||||||
|
* Number of retries to be allowed for a given request.
|
||||||
|
*/
|
||||||
|
attempts?: number;
|
||||||
|
/**
|
||||||
|
* Timeout per attempt for a given request, including the initial call and any retries.
|
||||||
|
*/
|
||||||
|
perTryTimeout?: string;
|
||||||
|
/**
|
||||||
|
* Specifies the conditions under which retry takes place.
|
||||||
|
*/
|
||||||
|
retryOn?: string;
|
||||||
|
/**
|
||||||
|
* Flag to specify whether the retries should retry to other localities.
|
||||||
|
*/
|
||||||
|
retryRemoteLocalities?: boolean;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Rewrite HTTP URIs and Authority headers.
|
||||||
|
*/
|
||||||
|
rewrite?: {
|
||||||
|
/**
|
||||||
|
* rewrite the Authority/Host header with this value.
|
||||||
|
*/
|
||||||
|
authority?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path (or the prefix) portion of the URI with this value.
|
||||||
|
*/
|
||||||
|
uri?: string;
|
||||||
|
/**
|
||||||
|
* rewrite the path portion of the URI with the specified regex.
|
||||||
|
*/
|
||||||
|
uriRegexRewrite?: {
|
||||||
|
/**
|
||||||
|
* [RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).
|
||||||
|
*/
|
||||||
|
match?: string;
|
||||||
|
/**
|
||||||
|
* The string that should replace into matching portions of original URI.
|
||||||
|
*/
|
||||||
|
rewrite?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
headers?: {
|
||||||
|
request?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
response?: {
|
||||||
|
add?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
remove?: string[];
|
||||||
|
set?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Timeout for HTTP requests, default is disabled.
|
||||||
|
*/
|
||||||
|
timeout?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rules for opaque TCP traffic.
|
||||||
|
*/
|
||||||
|
tcp?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match?: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
sourceSubnet?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* An ordered list of route rule for non-terminated TLS & HTTPS traffic.
|
||||||
|
*/
|
||||||
|
tls?: {
|
||||||
|
/**
|
||||||
|
* Match conditions to be satisfied for the rule to be activated.
|
||||||
|
*/
|
||||||
|
match: {
|
||||||
|
/**
|
||||||
|
* IPv4 or IPv6 ip addresses of destination with optional subnet.
|
||||||
|
*/
|
||||||
|
destinationSubnets?: string[];
|
||||||
|
/**
|
||||||
|
* Names of gateways where the rule should be applied.
|
||||||
|
*/
|
||||||
|
gateways?: string[];
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: number;
|
||||||
|
/**
|
||||||
|
* SNI (server name indicator) to match on.
|
||||||
|
*/
|
||||||
|
sniHosts: string[];
|
||||||
|
/**
|
||||||
|
* One or more labels that constrain the applicability of a rule to workloads with the given labels.
|
||||||
|
*/
|
||||||
|
sourceLabels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Source namespace constraining the applicability of a rule to workloads in that namespace.
|
||||||
|
*/
|
||||||
|
sourceNamespace?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* The destination to which the connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
route?: {
|
||||||
|
/**
|
||||||
|
* Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
|
||||||
|
*/
|
||||||
|
destination: {
|
||||||
|
/**
|
||||||
|
* The name of a service from the service registry.
|
||||||
|
*/
|
||||||
|
host: string;
|
||||||
|
/**
|
||||||
|
* Specifies the port on the host that is being addressed.
|
||||||
|
*/
|
||||||
|
port?: {
|
||||||
|
number?: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The name of a subset within the service.
|
||||||
|
*/
|
||||||
|
subset?: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Weight specifies the relative proportion of traffic to be forwarded to the destination.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
}[];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
402
src/__generated__/resources/K8SWasmPluginV1alpha1.json
generated
Normal file
402
src/__generated__/resources/K8SWasmPluginV1alpha1.json
generated
Normal file
@@ -0,0 +1,402 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Extend the functionality provided by the Istio proxy through WebAssembly filters. See more details at: https://istio.io/docs/reference/config/proxy_extensions/wasm-plugin.html",
|
||||||
|
"properties": {
|
||||||
|
"failStrategy": {
|
||||||
|
"description": "Specifies the failure behavior for the plugin due to fatal errors.\n\nValid Options: FAIL_CLOSE, FAIL_OPEN",
|
||||||
|
"_enum": [
|
||||||
|
"FAIL_CLOSE",
|
||||||
|
"FAIL_OPEN"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"imagePullPolicy": {
|
||||||
|
"description": "The pull behaviour to be applied when fetching Wasm module by either OCI image or `http/https`.\n\nValid Options: IfNotPresent, Always",
|
||||||
|
"_enum": [
|
||||||
|
"UNSPECIFIED_POLICY",
|
||||||
|
"IfNotPresent",
|
||||||
|
"Always"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"imagePullSecret": {
|
||||||
|
"description": "Credentials to use for OCI image pulling.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"match": {
|
||||||
|
"description": "Specifies the criteria to determine which traffic is passed to WasmPlugin.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Criteria for selecting traffic by their direction.\n\nValid Options: CLIENT, SERVER, CLIENT_AND_SERVER",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNDEFINED",
|
||||||
|
"CLIENT",
|
||||||
|
"SERVER",
|
||||||
|
"CLIENT_AND_SERVER"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"description": "Criteria for selecting traffic by their destination port.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"number"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"number": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 65535,
|
||||||
|
"minimum": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-list-map-keys": [
|
||||||
|
"number"
|
||||||
|
],
|
||||||
|
"x-kubernetes-list-type": "map"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"phase": {
|
||||||
|
"description": "Determines where in the filter chain this `WasmPlugin` is to be injected.\n\nValid Options: AUTHN, AUTHZ, STATS",
|
||||||
|
"_enum": [
|
||||||
|
"UNSPECIFIED_PHASE",
|
||||||
|
"AUTHN",
|
||||||
|
"AUTHZ",
|
||||||
|
"STATS"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"pluginConfig": {
|
||||||
|
"description": "The configuration that will be passed on to the plugin.",
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
},
|
||||||
|
"pluginName": {
|
||||||
|
"description": "The plugin name to be used in the Envoy configuration (used to be called `rootID`).",
|
||||||
|
"maxLength": 256,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"description": "Determines ordering of `WasmPlugins` in the same `phase`.",
|
||||||
|
"format": "int32",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"selector": {
|
||||||
|
"description": "Criteria used to select the specific set of pods/VMs on which this plugin configuration should be applied.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "!self.contains('*')",
|
||||||
|
"message": "wildcard not allowed in label value match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "One or more labels that indicate a specific set of pods/VMs on which a policy should be applied.",
|
||||||
|
"maxProperties": 4096,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "wildcard not allowed in label key match",
|
||||||
|
"rule": "self.all(key, !key.contains('*'))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "key must not be empty",
|
||||||
|
"rule": "self.all(key, key.size() != 0)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"sha256": {
|
||||||
|
"description": "SHA256 checksum that will be used to verify Wasm module or OCI container.",
|
||||||
|
"pattern": "(^$|^[a-f0-9]{64}$)",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"targetRef": {
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "cross namespace referencing is not currently supported",
|
||||||
|
"rule": "self.size() == 0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway",
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"targetRefs": {
|
||||||
|
"description": "Optional.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"kind",
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"group": {
|
||||||
|
"description": "group is the group of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
|
||||||
|
},
|
||||||
|
"kind": {
|
||||||
|
"description": "kind is kind of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 63,
|
||||||
|
"minLength": 1,
|
||||||
|
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "name is the name of the target resource.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 253,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"description": "namespace is the namespace of the referent.",
|
||||||
|
"type": "string",
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "self.size() == 0",
|
||||||
|
"message": "cross namespace referencing is not currently supported"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "[self.group, self.kind] in [['core','Service'], ['','Service'], ['gateway.networking.k8s.io','Gateway'], ['networking.istio.io','ServiceEntry']]",
|
||||||
|
"message": "Support kinds are core/Service, networking.istio.io/ServiceEntry, gateway.networking.k8s.io/Gateway"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 16,
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Specifies the type of Wasm Extension to be used.\n\nValid Options: HTTP, NETWORK",
|
||||||
|
"_enum": [
|
||||||
|
"UNSPECIFIED_PLUGIN_TYPE",
|
||||||
|
"HTTP",
|
||||||
|
"NETWORK"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"description": "URL of a Wasm module or OCI container.",
|
||||||
|
"minLength": 1,
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "url must have schema one of [http, https, file, oci]",
|
||||||
|
"rule": "isURL(self) ? (url(self).getScheme() in ['', 'http', 'https', 'oci', 'file']) : (isURL('http://' + self) && url('http://' +self).getScheme() in ['', 'http', 'https', 'oci', 'file'])"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"verificationKey": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"vmConfig": {
|
||||||
|
"description": "Configuration for a Wasm VM.",
|
||||||
|
"properties": {
|
||||||
|
"env": {
|
||||||
|
"description": "Specifies environment variables to be injected to this VM.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"description": "Name of the environment variable.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 256,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"description": "Value for the environment variable.",
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 2048
|
||||||
|
},
|
||||||
|
"valueFrom": {
|
||||||
|
"description": "Source for the environment variable's value.\n\nValid Options: INLINE, HOST",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"INLINE",
|
||||||
|
"HOST"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "(has(self.valueFrom) ? self.valueFrom : '') != 'HOST' || !has(self.value)",
|
||||||
|
"message": "value may only be set when valueFrom is INLINE"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxItems": 256,
|
||||||
|
"type": "array",
|
||||||
|
"x_kubernetes_list_map_keys": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"x_kubernetes_list_type": "map"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"url"
|
||||||
|
],
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "only one of targetRefs or selector can be set",
|
||||||
|
"rule": "(has(self.selector)?1:0)+(has(self.targetRef)?1:0)+(has(self.targetRefs)?1:0)<=1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
2682
src/__generated__/resources/K8SWasmPluginV1alpha1.ts
generated
Normal file
2682
src/__generated__/resources/K8SWasmPluginV1alpha1.ts
generated
Normal file
File diff suppressed because it is too large
Load Diff
179
src/__generated__/resources/K8SWorkloadEntryV1.json
generated
Normal file
179
src/__generated__/resources/K8SWorkloadEntryV1.json
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"maxLength": 256,
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "UDS must be an absolute path or abstract socket",
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not be a dir",
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port name must be valid",
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Address is required",
|
||||||
|
"rule": "has(self.address) || has(self.network)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not include ports",
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
106
src/__generated__/resources/K8SWorkloadEntryV1.ts
generated
Normal file
106
src/__generated__/resources/K8SWorkloadEntryV1.ts
generated
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SWorkloadEntryV1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SWorkloadEntryV1alpha3.json
generated
Normal file
179
src/__generated__/resources/K8SWorkloadEntryV1alpha3.json
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"maxLength": 256,
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "UDS must be an absolute path or abstract socket",
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not be a dir",
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port name must be valid",
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Address is required",
|
||||||
|
"rule": "has(self.address) || has(self.network)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not include ports",
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
106
src/__generated__/resources/K8SWorkloadEntryV1alpha3.ts
generated
Normal file
106
src/__generated__/resources/K8SWorkloadEntryV1alpha3.ts
generated
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SWorkloadEntryV1Alpha3 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
179
src/__generated__/resources/K8SWorkloadEntryV1beta1.json
generated
Normal file
179
src/__generated__/resources/K8SWorkloadEntryV1beta1.json
generated
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"maxLength": 256,
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "UDS must be an absolute path or abstract socket",
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not be a dir",
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port name must be valid",
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "Address is required",
|
||||||
|
"rule": "has(self.address) || has(self.network)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not include ports",
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
106
src/__generated__/resources/K8SWorkloadEntryV1beta1.ts
generated
Normal file
106
src/__generated__/resources/K8SWorkloadEntryV1beta1.ts
generated
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/**
|
||||||
|
* This file was automatically generated by json-schema-to-typescript.
|
||||||
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
||||||
|
* and run json-schema-to-typescript to regenerate this file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface K8SWorkloadEntryV1Beta1 {
|
||||||
|
/**
|
||||||
|
* Configuration affecting VMs onboarded into the mesh. See more details at: https://istio.io/docs/reference/config/networking/workload-entry.html
|
||||||
|
*/
|
||||||
|
spec: {
|
||||||
|
/**
|
||||||
|
* Address associated with the network endpoint without the port.
|
||||||
|
*/
|
||||||
|
address?: string;
|
||||||
|
/**
|
||||||
|
* One or more labels associated with the endpoint.
|
||||||
|
*/
|
||||||
|
labels?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The locality associated with the endpoint.
|
||||||
|
*/
|
||||||
|
locality?: string;
|
||||||
|
/**
|
||||||
|
* Network enables Istio to group endpoints resident in the same L3 domain/network.
|
||||||
|
*/
|
||||||
|
network?: string;
|
||||||
|
/**
|
||||||
|
* Set of ports associated with the endpoint.
|
||||||
|
*/
|
||||||
|
ports?: {
|
||||||
|
[k: string]: number;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* The service account associated with the workload if a sidecar is present in the workload.
|
||||||
|
*/
|
||||||
|
serviceAccount?: string;
|
||||||
|
/**
|
||||||
|
* The load balancing weight associated with the endpoint.
|
||||||
|
*/
|
||||||
|
weight?: number;
|
||||||
|
};
|
||||||
|
status?: {
|
||||||
|
/**
|
||||||
|
* Current service state of the resource.
|
||||||
|
*/
|
||||||
|
conditions?: {
|
||||||
|
/**
|
||||||
|
* Last time we probed the condition.
|
||||||
|
*/
|
||||||
|
lastProbeTime?: string;
|
||||||
|
/**
|
||||||
|
* Last time the condition transitioned from one status to another.
|
||||||
|
*/
|
||||||
|
lastTransitionTime?: string;
|
||||||
|
/**
|
||||||
|
* Human-readable message indicating details about last transition.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* Unique, one-word, CamelCase reason for the condition's last transition.
|
||||||
|
*/
|
||||||
|
reason?: string;
|
||||||
|
/**
|
||||||
|
* Status is the status of the condition.
|
||||||
|
*/
|
||||||
|
status?: string;
|
||||||
|
/**
|
||||||
|
* Type is the type of the condition.
|
||||||
|
*/
|
||||||
|
type?: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Resource Generation to which the Reconciled Condition refers.
|
||||||
|
*/
|
||||||
|
observedGeneration?: number | string;
|
||||||
|
/**
|
||||||
|
* Includes any errors or warnings detected by Istio's analyzers.
|
||||||
|
*/
|
||||||
|
validationMessages?: {
|
||||||
|
/**
|
||||||
|
* A url pointing to the Istio documentation for this specific error type.
|
||||||
|
*/
|
||||||
|
documentationUrl?: string;
|
||||||
|
/**
|
||||||
|
* Represents how severe a message is.
|
||||||
|
*
|
||||||
|
* Valid Options: UNKNOWN, ERROR, WARNING, INFO
|
||||||
|
*/
|
||||||
|
level?: "UNKNOWN" | "ERROR" | "WARNING" | "INFO";
|
||||||
|
type?: {
|
||||||
|
/**
|
||||||
|
* A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.
|
||||||
|
*/
|
||||||
|
code?: string;
|
||||||
|
/**
|
||||||
|
* A human-readable name for the message type.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
}
|
||||||
372
src/__generated__/resources/K8SWorkloadGroupV1.json
generated
Normal file
372
src/__generated__/resources/K8SWorkloadGroupV1.json
generated
Normal file
@@ -0,0 +1,372 @@
|
|||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"spec": {
|
||||||
|
"description": "Describes a collection of workload instances. See more details at: https://istio.io/docs/reference/config/networking/workload-group.html",
|
||||||
|
"properties": {
|
||||||
|
"metadata": {
|
||||||
|
"description": "Metadata that will be used for all corresponding `WorkloadEntries`.",
|
||||||
|
"properties": {
|
||||||
|
"annotations": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"probe": {
|
||||||
|
"description": "`ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload.",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"not": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"httpGet"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"tcpSocket"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"exec"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"httpGet"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"tcpSocket"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"exec"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"exec": {
|
||||||
|
"description": "Health is determined by how the command that is executed exited.",
|
||||||
|
"properties": {
|
||||||
|
"command": {
|
||||||
|
"description": "Command to run.",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"command"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"failureThreshold": {
|
||||||
|
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"httpGet": {
|
||||||
|
"description": "`httpGet` is performed to a given endpoint and the status/able to connect determines health.",
|
||||||
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "Host name to connect to, defaults to the pod IP.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"httpHeaders": {
|
||||||
|
"description": "Headers the proxy will pass on to make the request.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^[-_A-Za-z0-9]+$"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"path": {
|
||||||
|
"description": "Path to access on the HTTP server.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"description": "Port on which the endpoint lives.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port must be between 1-65535",
|
||||||
|
"rule": "0 < self && self <= 65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scheme": {
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "scheme must be one of [HTTP, HTTPS]",
|
||||||
|
"rule": "self in ['', 'HTTP', 'HTTPS']"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"initialDelaySeconds": {
|
||||||
|
"description": "Number of seconds after the container has started before readiness probes are initiated.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"periodSeconds": {
|
||||||
|
"description": "How often (in seconds) to perform the probe.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"successThreshold": {
|
||||||
|
"description": "Minimum consecutive successes for the probe to be considered successful after having failed.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"tcpSocket": {
|
||||||
|
"description": "Health is determined by if the proxy is able to connect.",
|
||||||
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port must be between 1-65535",
|
||||||
|
"rule": "0 < self && self <= 65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"port"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"timeoutSeconds": {
|
||||||
|
"description": "Number of seconds after which the probe times out.",
|
||||||
|
"format": "int32",
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"template": {
|
||||||
|
"description": "Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`.",
|
||||||
|
"properties": {
|
||||||
|
"address": {
|
||||||
|
"description": "Address associated with the network endpoint without the port.",
|
||||||
|
"maxLength": 256,
|
||||||
|
"type": "string",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "UDS must be an absolute path or abstract socket",
|
||||||
|
"rule": "self.startsWith('unix://') ? (self.substring(7,8) == '/' || self.substring(7,8) == '@') : true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"message": "UDS may not be a dir",
|
||||||
|
"rule": "self.startsWith('unix://') ? !self.endsWith('/') : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "One or more labels associated with the endpoint.",
|
||||||
|
"maxProperties": 256,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"locality": {
|
||||||
|
"description": "The locality associated with the endpoint.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"description": "Network enables Istio to group endpoints resident in the same L3 domain/network.",
|
||||||
|
"maxLength": 2048,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "integer",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"x-kubernetes-validations": [
|
||||||
|
{
|
||||||
|
"rule": "0 < self && self <= 65535",
|
||||||
|
"message": "port must be between 1-65535"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "Set of ports associated with the endpoint.",
|
||||||
|
"maxProperties": 128,
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "port name must be valid",
|
||||||
|
"rule": "self.all(key, size(key) < 63 && key.matches('^[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?$'))"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"serviceAccount": {
|
||||||
|
"description": "The service account associated with the workload if a sidecar is present in the workload.",
|
||||||
|
"maxLength": 253,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"weight": {
|
||||||
|
"description": "The load balancing weight associated with the endpoint.",
|
||||||
|
"maximum": 4294967295,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_validations": [
|
||||||
|
{
|
||||||
|
"message": "UDS may not include ports",
|
||||||
|
"rule": "(has(self.address) && self.address.startsWith('unix://')) ? !has(self.ports) : true"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"template"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"properties": {
|
||||||
|
"conditions": {
|
||||||
|
"description": "Current service state of the resource.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"lastProbeTime": {
|
||||||
|
"description": "Last time we probed the condition.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"lastTransitionTime": {
|
||||||
|
"description": "Last time the condition transitioned from one status to another.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"description": "Human-readable message indicating details about last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Status is the status of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"description": "Type is the type of the condition.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"observedGeneration": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Resource Generation to which the Reconciled Condition refers.",
|
||||||
|
"x_kubernetes_int_or_string": true
|
||||||
|
},
|
||||||
|
"validationMessages": {
|
||||||
|
"description": "Includes any errors or warnings detected by Istio's analyzers.",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"documentationUrl": {
|
||||||
|
"description": "A url pointing to the Istio documentation for this specific error type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"level": {
|
||||||
|
"description": "Represents how severe a message is.\n\nValid Options: UNKNOWN, ERROR, WARNING, INFO",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"UNKNOWN",
|
||||||
|
"ERROR",
|
||||||
|
"WARNING",
|
||||||
|
"INFO"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"code": {
|
||||||
|
"description": "A 7 character code matching `^IST[0-9]{4}$` intended to uniquely identify the message type.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"description": "A human-readable name for the message type.",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"x_kubernetes_preserve_unknown_fields": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user