diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..43ed48f --- /dev/null +++ b/TODO.md @@ -0,0 +1 @@ +- Fix issue with incompatible spec breaking the server diff --git a/package.json b/package.json index 869de94..e92dc4d 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,12 @@ "devDependencies": { "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.32.0", + "@types/deep-equal": "^1.0.4", "eslint": "9.32.0", "eslint-config-prettier": "10.1.8", "eslint-plugin-import": "2.32.0", "eslint-plugin-prettier": "5.5.3", + "json-schema-to-typescript": "^15.0.4", "prettier": "3.6.2", "typescript": "5.8.3", "typescript-eslint": "8.38.0" @@ -20,8 +22,13 @@ "dependencies": { "@goauthentik/api": "2025.6.3-1751754396", "@kubernetes/client-node": "^1.3.0", + "debounce": "^2.2.0", + "deep-equal": "^2.2.3", "dotenv": "^17.2.1", + "eventemitter3": "^5.0.1", "knex": "^3.1.0", + "p-queue": "^8.1.0", + "p-retry": "^6.2.1", "pg": "^8.16.3", "sqlite3": "^5.1.7", "yaml": "^2.8.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ed818e1..334df72 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,12 +14,27 @@ importers: '@kubernetes/client-node': specifier: ^1.3.0 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: specifier: ^17.2.1 version: 17.2.1 + eventemitter3: + specifier: ^5.0.1 + version: 5.0.1 knex: specifier: ^3.1.0 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: specifier: ^8.16.3 version: 8.16.3 @@ -39,6 +54,9 @@ importers: '@eslint/js': specifier: 9.32.0 version: 9.32.0 + '@types/deep-equal': + specifier: ^1.0.4 + version: 1.0.4 eslint: specifier: 9.32.0 version: 9.32.0 @@ -51,6 +69,9 @@ importers: eslint-plugin-prettier: 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) + json-schema-to-typescript: + specifier: ^15.0.4 + version: 15.0.4 prettier: specifier: 3.6.2 version: 3.6.2 @@ -63,6 +84,10 @@ importers: 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': resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -127,6 +152,9 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} + '@jsdevtools/ono@7.1.3': + resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} + '@jsep-plugin/assignment@1.3.0': resolution: {integrity: sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==} engines: {node: '>= 10.16.0'} @@ -173,6 +201,9 @@ packages: resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} engines: {node: '>= 6'} + '@types/deep-equal@1.0.4': + resolution: {integrity: sha512-tqdiS4otQP4KmY0PR3u6KbZ5EWvhNdUoS/jc93UuK23C220lOZ/9TvjfxdPcKvqwwDVtmtSCrnr0p/2dirAxkA==} + '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} @@ -185,12 +216,18 @@ packages: '@types/json5@0.0.29': resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} + '@types/lodash@4.17.20': + resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==} + '@types/node-fetch@2.6.12': resolution: {integrity: sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==} '@types/node@22.16.5': resolution: {integrity: sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==} + '@types/retry@0.12.2': + resolution: {integrity: sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==} + '@types/stream-buffers@3.0.7': resolution: {integrity: sha512-azOCy05sXVXrO+qklf0c/B07H/oHaIuDDAiHPVwlk3A9Ek+ksHyTeMajLZl3r76FxpPpxem//4Te61G1iW3Giw==} @@ -476,6 +513,10 @@ packages: resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==} engines: {node: '>= 0.4'} + debounce@2.2.0: + resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==} + engines: {node: '>=18'} + debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} peerDependencies: @@ -506,6 +547,10 @@ packages: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} engines: {node: '>=10'} + deep-equal@2.2.3: + resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==} + engines: {node: '>= 0.4'} + deep-extend@0.6.0: resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} engines: {node: '>=4.0.0'} @@ -572,6 +617,9 @@ packages: resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} engines: {node: '>= 0.4'} + es-get-iterator@1.1.3: + resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} + es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} @@ -696,6 +744,9 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + expand-template@2.0.3: resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} engines: {node: '>=6'} @@ -722,6 +773,14 @@ packages: fastq@1.19.1: 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: resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} engines: {node: '>=16.0.0'} @@ -929,6 +988,10 @@ packages: resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} 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: resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==} engines: {node: '>= 0.4'} @@ -992,6 +1055,10 @@ packages: resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==} 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: resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==} engines: {node: '>= 0.4'} @@ -1064,6 +1131,11 @@ packages: json-buffer@3.0.1: 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: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} @@ -1260,6 +1332,10 @@ packages: resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} 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: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} @@ -1306,6 +1382,18 @@ packages: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} 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: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -1366,6 +1454,10 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + possible-typed-array-names@1.1.0: resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} engines: {node: '>= 0.4'} @@ -1463,6 +1555,10 @@ packages: resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} engines: {node: '>= 4'} + retry@0.13.1: + resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} + engines: {node: '>= 4'} + reusify@1.1.0: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -1669,6 +1765,10 @@ packages: resolution: {integrity: sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==} 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: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -1809,6 +1909,12 @@ packages: 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)': dependencies: eslint: 9.32.0 @@ -1871,6 +1977,8 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} + '@jsdevtools/ono@7.1.3': {} + '@jsep-plugin/assignment@1.3.0(jsep@1.4.0)': dependencies: jsep: 1.4.0 @@ -1935,6 +2043,8 @@ snapshots: '@tootallnate/once@1.1.2': optional: true + '@types/deep-equal@1.0.4': {} + '@types/estree@1.0.8': {} '@types/js-yaml@4.0.9': {} @@ -1943,6 +2053,8 @@ snapshots: '@types/json5@0.0.29': {} + '@types/lodash@4.17.20': {} + '@types/node-fetch@2.6.12': dependencies: '@types/node': 22.16.5 @@ -1952,6 +2064,8 @@ snapshots: dependencies: undici-types: 6.21.0 + '@types/retry@0.12.2': {} + '@types/stream-buffers@3.0.7': dependencies: '@types/node': 22.16.5 @@ -2321,6 +2435,8 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.2 + debounce@2.2.0: {} + debug@3.2.7: dependencies: ms: 2.1.3 @@ -2337,6 +2453,27 @@ snapshots: dependencies: 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-is@0.1.4: {} @@ -2451,6 +2588,18 @@ snapshots: 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: dependencies: es-errors: 1.3.0 @@ -2605,6 +2754,8 @@ snapshots: esutils@2.0.3: {} + eventemitter3@5.0.1: {} + expand-template@2.0.3: {} fast-deep-equal@3.1.3: {} @@ -2629,6 +2780,10 @@ snapshots: dependencies: reusify: 1.1.0 + fdir@6.4.6(picomatch@4.0.3): + optionalDependencies: + picomatch: 4.0.3 + file-entry-cache@8.0.0: dependencies: flat-cache: 4.0.1 @@ -2858,6 +3013,11 @@ snapshots: jsbn: 1.1.0 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: dependencies: call-bind: 1.0.8 @@ -2925,6 +3085,8 @@ snapshots: is-negative-zero@2.0.3: {} + is-network-error@1.1.0: {} + is-number-object@1.1.1: dependencies: call-bound: 1.0.4 @@ -2991,6 +3153,18 @@ snapshots: 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-stable-stringify-without-jsonify@1.0.1: {} @@ -3200,6 +3374,11 @@ snapshots: 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.assign@4.1.7: @@ -3268,6 +3447,19 @@ snapshots: aggregate-error: 3.1.0 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: dependencies: callsites: 3.1.0 @@ -3320,6 +3512,8 @@ snapshots: picomatch@2.3.1: {} + picomatch@4.0.3: {} + possible-typed-array-names@1.1.0: {} postgres-array@2.0.0: {} @@ -3423,6 +3617,8 @@ snapshots: retry@0.12.0: optional: true + retry@0.13.1: {} + reusify@1.1.0: {} rfc4648@1.5.4: {} @@ -3696,6 +3892,11 @@ snapshots: 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: dependencies: is-number: 7.0.0 diff --git a/src/__generated__/resources/K8SAddonV1.json b/src/__generated__/resources/K8SAddonV1.json new file mode 100644 index 0000000..b154f9e --- /dev/null +++ b/src/__generated__/resources/K8SAddonV1.json @@ -0,0 +1,18 @@ +{ + "properties": { + "spec": { + "properties": { + "checksum": { + "nullable": true, + "type": "string" + }, + "source": { + "nullable": true, + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAddonV1.ts b/src/__generated__/resources/K8SAddonV1.ts new file mode 100644 index 0000000..25de232 --- /dev/null +++ b/src/__generated__/resources/K8SAddonV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SAppProjectV1alpha1.json b/src/__generated__/resources/K8SAppProjectV1alpha1.json new file mode 100644 index 0000000..d1b7866 --- /dev/null +++ b/src/__generated__/resources/K8SAppProjectV1alpha1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAppProjectV1alpha1.ts b/src/__generated__/resources/K8SAppProjectV1alpha1.ts new file mode 100644 index 0000000..0c3d21d --- /dev/null +++ b/src/__generated__/resources/K8SAppProjectV1alpha1.ts @@ -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; + }[]; + }; + }; + }; +} diff --git a/src/__generated__/resources/K8SApplicationSetV1alpha1.json b/src/__generated__/resources/K8SApplicationSetV1alpha1.json new file mode 100644 index 0000000..3084641 --- /dev/null +++ b/src/__generated__/resources/K8SApplicationSetV1alpha1.json @@ -0,0 +1,26928 @@ +{ + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "spec": { + "properties": { + "applyNestedSelectors": { + "type": "boolean" + }, + "generators": { + "items": { + "type": "object", + "properties": { + "clusterDecisionResource": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "string" + }, + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "name": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "clusters": { + "type": "object", + "properties": { + "flatList": { + "type": "boolean" + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "git": { + "type": "object", + "required": [ + "repoURL", + "revision" + ], + "properties": { + "directories": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "exclude": { + "type": "boolean" + }, + "path": { + "type": "string" + } + } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string" + } + } + } + }, + "pathParamPrefix": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "revision": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "list": { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "x-kubernetes-preserve-unknown-fields": true + } + }, + "elementsYaml": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "matrix": { + "type": "object", + "required": [ + "generators" + ], + "properties": { + "generators": { + "type": "array", + "items": { + "type": "object", + "properties": { + "clusterDecisionResource": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "string" + }, + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "name": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "clusters": { + "type": "object", + "properties": { + "flatList": { + "type": "boolean" + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "git": { + "type": "object", + "required": [ + "repoURL", + "revision" + ], + "properties": { + "directories": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "exclude": { + "type": "boolean" + }, + "path": { + "type": "string" + } + } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string" + } + } + } + }, + "pathParamPrefix": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "revision": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "list": { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "x-kubernetes-preserve-unknown-fields": true + } + }, + "elementsYaml": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "matrix": { + "x-kubernetes-preserve-unknown-fields": true + }, + "merge": { + "x-kubernetes-preserve-unknown-fields": true + }, + "plugin": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "input": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "x-kubernetes-preserve-unknown-fields": true + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "pullRequest": { + "type": "object", + "properties": { + "azuredevops": { + "type": "object", + "required": [ + "organization", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "organization": { + "type": "string" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "targetBranchMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "project" + ], + "properties": { + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "project": { + "type": "string" + }, + "pullRequestState": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "scmProvider": { + "type": "object", + "properties": { + "awsCodeCommit": { + "type": "object", + "properties": { + "allBranches": { + "type": "boolean" + }, + "region": { + "type": "string" + }, + "role": { + "type": "string" + }, + "tagFilters": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "azureDevOps": { + "type": "object", + "required": [ + "accessTokenRef", + "organization", + "teamProject" + ], + "properties": { + "accessTokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "teamProject": { + "type": "string" + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "appPasswordRef", + "owner", + "user" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "appPasswordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "owner": { + "type": "string" + }, + "user": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + } + } + }, + "cloneProtocol": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "labelMatch": { + "type": "string" + }, + "pathsDoNotExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "pathsExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "repositoryMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "organization" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "group" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "group": { + "type": "string" + }, + "includeSharedProjects": { + "type": "boolean" + }, + "includeSubgroups": { + "type": "boolean" + }, + "insecure": { + "type": "boolean" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "topic": { + "type": "string" + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + } + } + } + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "merge": { + "type": "object", + "required": [ + "generators", + "mergeKeys" + ], + "properties": { + "generators": { + "type": "array", + "items": { + "type": "object", + "properties": { + "clusterDecisionResource": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "string" + }, + "labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "name": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "clusters": { + "type": "object", + "properties": { + "flatList": { + "type": "boolean" + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "git": { + "type": "object", + "required": [ + "repoURL", + "revision" + ], + "properties": { + "directories": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "exclude": { + "type": "boolean" + }, + "path": { + "type": "string" + } + } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string" + } + } + } + }, + "pathParamPrefix": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "revision": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "list": { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "x-kubernetes-preserve-unknown-fields": true + } + }, + "elementsYaml": { + "type": "string" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "matrix": { + "x-kubernetes-preserve-unknown-fields": true + }, + "merge": { + "x-kubernetes-preserve-unknown-fields": true + }, + "plugin": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "input": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "x-kubernetes-preserve-unknown-fields": true + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "pullRequest": { + "type": "object", + "properties": { + "azuredevops": { + "type": "object", + "required": [ + "organization", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "organization": { + "type": "string" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "targetBranchMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "project" + ], + "properties": { + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "project": { + "type": "string" + }, + "pullRequestState": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "scmProvider": { + "type": "object", + "properties": { + "awsCodeCommit": { + "type": "object", + "properties": { + "allBranches": { + "type": "boolean" + }, + "region": { + "type": "string" + }, + "role": { + "type": "string" + }, + "tagFilters": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "azureDevOps": { + "type": "object", + "required": [ + "accessTokenRef", + "organization", + "teamProject" + ], + "properties": { + "accessTokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "teamProject": { + "type": "string" + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "appPasswordRef", + "owner", + "user" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "appPasswordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "owner": { + "type": "string" + }, + "user": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + } + } + }, + "cloneProtocol": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "labelMatch": { + "type": "string" + }, + "pathsDoNotExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "pathsExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "repositoryMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "organization" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "group" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "group": { + "type": "string" + }, + "includeSharedProjects": { + "type": "boolean" + }, + "includeSubgroups": { + "type": "boolean" + }, + "insecure": { + "type": "boolean" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "topic": { + "type": "string" + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + } + } + } + }, + "mergeKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "plugin": { + "type": "object", + "required": [ + "configMapRef" + ], + "properties": { + "configMapRef": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "input": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "x-kubernetes-preserve-unknown-fields": true + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "pullRequest": { + "type": "object", + "properties": { + "azuredevops": { + "type": "object", + "required": [ + "organization", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "organization": { + "type": "string" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + }, + "repo": { + "type": "string" + } + } + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "targetBranchMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "owner", + "repo" + ], + "properties": { + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "owner": { + "type": "string" + }, + "repo": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "project" + ], + "properties": { + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "labels": { + "type": "array", + "items": { + "type": "string" + } + }, + "project": { + "type": "string" + }, + "pullRequestState": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "scmProvider": { + "type": "object", + "properties": { + "awsCodeCommit": { + "type": "object", + "properties": { + "allBranches": { + "type": "boolean" + }, + "region": { + "type": "string" + }, + "role": { + "type": "string" + }, + "tagFilters": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "azureDevOps": { + "type": "object", + "required": [ + "accessTokenRef", + "organization", + "teamProject" + ], + "properties": { + "accessTokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "teamProject": { + "type": "string" + } + } + }, + "bitbucket": { + "type": "object", + "required": [ + "appPasswordRef", + "owner", + "user" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "appPasswordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "owner": { + "type": "string" + }, + "user": { + "type": "string" + } + } + }, + "bitbucketServer": { + "type": "object", + "required": [ + "api", + "project" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordRef", + "username" + ], + "properties": { + "passwordRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "username": { + "type": "string" + } + } + }, + "bearerToken": { + "type": "object", + "required": [ + "tokenRef" + ], + "properties": { + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "insecure": { + "type": "boolean" + }, + "project": { + "type": "string" + } + } + }, + "cloneProtocol": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "branchMatch": { + "type": "string" + }, + "labelMatch": { + "type": "string" + }, + "pathsDoNotExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "pathsExist": { + "type": "array", + "items": { + "type": "string" + } + }, + "repositoryMatch": { + "type": "string" + } + } + } + }, + "gitea": { + "type": "object", + "required": [ + "api", + "owner" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "insecure": { + "type": "boolean" + }, + "owner": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "github": { + "type": "object", + "required": [ + "organization" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "appSecretName": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + } + } + }, + "gitlab": { + "type": "object", + "required": [ + "group" + ], + "properties": { + "allBranches": { + "type": "boolean" + }, + "api": { + "type": "string" + }, + "caRef": { + "type": "object", + "required": [ + "configMapName", + "key" + ], + "properties": { + "configMapName": { + "type": "string" + }, + "key": { + "type": "string" + } + } + }, + "group": { + "type": "string" + }, + "includeSharedProjects": { + "type": "boolean" + }, + "includeSubgroups": { + "type": "boolean" + }, + "insecure": { + "type": "boolean" + }, + "tokenRef": { + "type": "object", + "required": [ + "key", + "secretName" + ], + "properties": { + "key": { + "type": "string" + }, + "secretName": { + "type": "string" + } + } + }, + "topic": { + "type": "string" + } + } + }, + "requeueAfterSeconds": { + "type": "integer", + "format": "int64" + }, + "template": { + "type": "object", + "required": [ + "metadata", + "spec" + ], + "properties": { + "metadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "spec": { + "type": "object", + "required": [ + "destination", + "project" + ], + "properties": { + "destination": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + } + }, + "ignoreDifferences": { + "type": "array", + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + } + }, + "info": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "type": "integer", + "format": "int64" + }, + "source": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "sourceHydrator": { + "type": "object", + "required": [ + "drySource", + "syncSource" + ], + "properties": { + "drySource": { + "type": "object", + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "hydrateTo": { + "type": "object", + "required": [ + "targetBranch" + ], + "properties": { + "targetBranch": { + "type": "string" + } + } + }, + "syncSource": { + "type": "object", + "required": [ + "path", + "targetBranch" + ], + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + } + } + } + }, + "sources": { + "type": "array", + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + } + }, + "syncPolicy": { + "type": "object", + "properties": { + "automated": { + "type": "object", + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + } + }, + "managedNamespaceMetadata": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "retry": { + "type": "object", + "properties": { + "backoff": { + "type": "object", + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "type": "integer", + "format": "int64" + }, + "maxDuration": { + "type": "string" + } + } + }, + "limit": { + "type": "integer", + "format": "int64" + } + } + }, + "syncOptions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "selector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + } + } + }, + "type": "array" + }, + "goTemplate": { + "type": "boolean" + }, + "goTemplateOptions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoreApplicationDifferences": { + "items": { + "type": "object", + "properties": { + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + } + } + }, + "type": "array" + }, + "preservedFields": { + "properties": { + "annotations": { + "items": { + "type": "string" + }, + "type": "array" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "strategy": { + "properties": { + "rollingSync": { + "properties": { + "steps": { + "items": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "maxUpdate": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "syncPolicy": { + "properties": { + "applicationsSync": { + "_enum": [ + "create-only", + "create-update", + "create-delete", + "sync" + ], + "type": "string" + }, + "preserveResourcesOnDeletion": { + "type": "boolean" + } + }, + "type": "object" + }, + "template": { + "properties": { + "metadata": { + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "finalizers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "type": "object" + }, + "spec": { + "properties": { + "destination": { + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "server": { + "type": "string" + } + }, + "type": "object" + }, + "ignoreDifferences": { + "items": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "type": "array" + }, + "info": { + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "project": { + "type": "string" + }, + "revisionHistoryLimit": { + "format": "int64", + "type": "integer" + }, + "source": { + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "properties": { + "extVars": { + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "properties": { + "apiVersions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "properties": { + "apiVersions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "components": { + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "items": { + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "properties": { + "env": { + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sourceHydrator": { + "properties": { + "drySource": { + "properties": { + "path": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + }, + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "type": "object" + }, + "hydrateTo": { + "properties": { + "targetBranch": { + "type": "string" + } + }, + "required": [ + "targetBranch" + ], + "type": "object" + }, + "syncSource": { + "properties": { + "path": { + "type": "string" + }, + "targetBranch": { + "type": "string" + } + }, + "required": [ + "path", + "targetBranch" + ], + "type": "object" + } + }, + "required": [ + "drySource", + "syncSource" + ], + "type": "object" + }, + "sources": { + "items": { + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "type": "string" + }, + "directory": { + "type": "object", + "properties": { + "exclude": { + "type": "string" + }, + "include": { + "type": "string" + }, + "jsonnet": { + "type": "object", + "properties": { + "extVars": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "type": "boolean" + } + } + }, + "helm": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "path": { + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "type": "boolean" + }, + "kubeVersion": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "forceString": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "passCredentials": { + "type": "boolean" + }, + "releaseName": { + "type": "string" + }, + "skipCrds": { + "type": "boolean" + }, + "skipSchemaValidation": { + "type": "boolean" + }, + "skipTests": { + "type": "boolean" + }, + "valueFiles": { + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "type": "string" + }, + "valuesObject": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "type": "string" + } + } + }, + "kustomize": { + "type": "object", + "properties": { + "apiVersions": { + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "type": "boolean" + }, + "commonLabels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "type": "boolean" + }, + "forceCommonLabels": { + "type": "boolean" + }, + "ignoreMissingComponents": { + "type": "boolean" + }, + "images": { + "type": "array", + "items": { + "type": "string" + } + }, + "kubeVersion": { + "type": "string" + }, + "labelIncludeTemplates": { + "type": "boolean" + }, + "labelWithoutSelector": { + "type": "boolean" + }, + "namePrefix": { + "type": "string" + }, + "nameSuffix": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "patches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "type": "string" + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "plugin": { + "type": "object", + "properties": { + "env": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "string": { + "type": "string" + } + } + } + } + } + }, + "ref": { + "type": "string" + }, + "repoURL": { + "type": "string" + }, + "targetRevision": { + "type": "string" + } + } + }, + "type": "array" + }, + "syncPolicy": { + "properties": { + "automated": { + "properties": { + "allowEmpty": { + "type": "boolean" + }, + "prune": { + "type": "boolean" + }, + "selfHeal": { + "type": "boolean" + } + }, + "type": "object" + }, + "managedNamespaceMetadata": { + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "retry": { + "properties": { + "backoff": { + "properties": { + "duration": { + "type": "string" + }, + "factor": { + "format": "int64", + "type": "integer" + }, + "maxDuration": { + "type": "string" + } + }, + "type": "object" + }, + "limit": { + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "syncOptions": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "required": [ + "destination", + "project" + ], + "type": "object" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object" + }, + "templatePatch": { + "type": "string" + } + }, + "required": [ + "generators", + "template" + ], + "type": "object" + }, + "status": { + "properties": { + "applicationStatus": { + "items": { + "type": "object", + "required": [ + "application", + "message", + "status", + "step", + "targetRevisions" + ], + "properties": { + "application": { + "type": "string" + }, + "lastTransitionTime": { + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + }, + "step": { + "type": "string" + }, + "targetRevisions": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "type": "array" + }, + "conditions": { + "items": { + "type": "object", + "required": [ + "message", + "reason", + "status", + "type" + ], + "properties": { + "lastTransitionTime": { + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "type": "array" + }, + "resources": { + "items": { + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "health": { + "type": "object", + "properties": { + "lastTransitionTime": { + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "hook": { + "type": "boolean" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "requiresDeletionConfirmation": { + "type": "boolean" + }, + "requiresPruning": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "syncWave": { + "type": "integer", + "format": "int64" + }, + "version": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SApplicationSetV1alpha1.ts b/src/__generated__/resources/K8SApplicationSetV1alpha1.ts new file mode 100644 index 0000000..41dfbd4 --- /dev/null +++ b/src/__generated__/resources/K8SApplicationSetV1alpha1.ts @@ -0,0 +1,7835 @@ +/* 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 K8SApplicationSetV1Alpha1 { + apiVersion?: string; + kind?: string; + metadata: {}; + spec: { + applyNestedSelectors?: boolean; + generators: { + clusterDecisionResource?: { + configMapRef: string; + labelSelector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + name?: string; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + clusters?: { + flatList?: boolean; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + git?: { + directories?: { + exclude?: boolean; + path: string; + }[]; + files?: { + path: string; + }[]; + pathParamPrefix?: string; + repoURL: string; + requeueAfterSeconds?: number; + revision: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + list?: { + elements?: { + [k: string]: unknown; + }[]; + elementsYaml?: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + }; + matrix?: { + generators: { + clusterDecisionResource?: { + configMapRef: string; + labelSelector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + name?: string; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + clusters?: { + flatList?: boolean; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + git?: { + directories?: { + exclude?: boolean; + path: string; + }[]; + files?: { + path: string; + }[]; + pathParamPrefix?: string; + repoURL: string; + requeueAfterSeconds?: number; + revision: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + list?: { + elements?: { + [k: string]: unknown; + }[]; + elementsYaml?: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + }; + matrix?: { + [k: string]: unknown; + }; + merge?: { + [k: string]: unknown; + }; + plugin?: { + configMapRef: { + name: string; + }; + input?: { + parameters?: { + [k: string]: { + [k: string]: unknown; + }; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + pullRequest?: { + azuredevops?: { + api?: string; + labels?: string[]; + organization: string; + project: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + bitbucket?: { + api?: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + owner: string; + repo: string; + }; + bitbucketServer?: { + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + repo: string; + }; + filters?: { + branchMatch?: string; + targetBranchMatch?: string; + }[]; + gitea?: { + api: string; + insecure?: boolean; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + api?: string; + appSecretName?: string; + labels?: string[]; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + labels?: string[]; + project: string; + pullRequestState?: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + scmProvider?: { + awsCodeCommit?: { + allBranches?: boolean; + region?: string; + role?: string; + tagFilters?: { + key: string; + value?: string; + }[]; + }; + azureDevOps?: { + accessTokenRef: { + key: string; + secretName: string; + }; + allBranches?: boolean; + api?: string; + organization: string; + teamProject: string; + }; + bitbucket?: { + allBranches?: boolean; + appPasswordRef: { + key: string; + secretName: string; + }; + owner: string; + user: string; + }; + bitbucketServer?: { + allBranches?: boolean; + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + }; + cloneProtocol?: string; + filters?: { + branchMatch?: string; + labelMatch?: string; + pathsDoNotExist?: string[]; + pathsExist?: string[]; + repositoryMatch?: string; + }[]; + gitea?: { + allBranches?: boolean; + api: string; + insecure?: boolean; + owner: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + allBranches?: boolean; + api?: string; + appSecretName?: string; + organization: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + allBranches?: boolean; + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + group: string; + includeSharedProjects?: boolean; + includeSubgroups?: boolean; + insecure?: boolean; + tokenRef?: { + key: string; + secretName: string; + }; + topic?: string; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + }[]; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + }; + merge?: { + generators: { + clusterDecisionResource?: { + configMapRef: string; + labelSelector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + name?: string; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + clusters?: { + flatList?: boolean; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + git?: { + directories?: { + exclude?: boolean; + path: string; + }[]; + files?: { + path: string; + }[]; + pathParamPrefix?: string; + repoURL: string; + requeueAfterSeconds?: number; + revision: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + list?: { + elements?: { + [k: string]: unknown; + }[]; + elementsYaml?: string; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + }; + matrix?: { + [k: string]: unknown; + }; + merge?: { + [k: string]: unknown; + }; + plugin?: { + configMapRef: { + name: string; + }; + input?: { + parameters?: { + [k: string]: { + [k: string]: unknown; + }; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + pullRequest?: { + azuredevops?: { + api?: string; + labels?: string[]; + organization: string; + project: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + bitbucket?: { + api?: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + owner: string; + repo: string; + }; + bitbucketServer?: { + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + repo: string; + }; + filters?: { + branchMatch?: string; + targetBranchMatch?: string; + }[]; + gitea?: { + api: string; + insecure?: boolean; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + api?: string; + appSecretName?: string; + labels?: string[]; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + labels?: string[]; + project: string; + pullRequestState?: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + scmProvider?: { + awsCodeCommit?: { + allBranches?: boolean; + region?: string; + role?: string; + tagFilters?: { + key: string; + value?: string; + }[]; + }; + azureDevOps?: { + accessTokenRef: { + key: string; + secretName: string; + }; + allBranches?: boolean; + api?: string; + organization: string; + teamProject: string; + }; + bitbucket?: { + allBranches?: boolean; + appPasswordRef: { + key: string; + secretName: string; + }; + owner: string; + user: string; + }; + bitbucketServer?: { + allBranches?: boolean; + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + }; + cloneProtocol?: string; + filters?: { + branchMatch?: string; + labelMatch?: string; + pathsDoNotExist?: string[]; + pathsExist?: string[]; + repositoryMatch?: string; + }[]; + gitea?: { + allBranches?: boolean; + api: string; + insecure?: boolean; + owner: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + allBranches?: boolean; + api?: string; + appSecretName?: string; + organization: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + allBranches?: boolean; + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + group: string; + includeSharedProjects?: boolean; + includeSubgroups?: boolean; + insecure?: boolean; + tokenRef?: { + key: string; + secretName: string; + }; + topic?: string; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + }[]; + mergeKeys: string[]; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + }; + plugin?: { + configMapRef: { + name: string; + }; + input?: { + parameters?: { + [k: string]: { + [k: string]: unknown; + }; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + pullRequest?: { + azuredevops?: { + api?: string; + labels?: string[]; + organization: string; + project: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + bitbucket?: { + api?: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + owner: string; + repo: string; + }; + bitbucketServer?: { + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + repo: string; + }; + filters?: { + branchMatch?: string; + targetBranchMatch?: string; + }[]; + gitea?: { + api: string; + insecure?: boolean; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + api?: string; + appSecretName?: string; + labels?: string[]; + owner: string; + repo: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + labels?: string[]; + project: string; + pullRequestState?: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + scmProvider?: { + awsCodeCommit?: { + allBranches?: boolean; + region?: string; + role?: string; + tagFilters?: { + key: string; + value?: string; + }[]; + }; + azureDevOps?: { + accessTokenRef: { + key: string; + secretName: string; + }; + allBranches?: boolean; + api?: string; + organization: string; + teamProject: string; + }; + bitbucket?: { + allBranches?: boolean; + appPasswordRef: { + key: string; + secretName: string; + }; + owner: string; + user: string; + }; + bitbucketServer?: { + allBranches?: boolean; + api: string; + basicAuth?: { + passwordRef: { + key: string; + secretName: string; + }; + username: string; + }; + bearerToken?: { + tokenRef: { + key: string; + secretName: string; + }; + }; + caRef?: { + configMapName: string; + key: string; + }; + insecure?: boolean; + project: string; + }; + cloneProtocol?: string; + filters?: { + branchMatch?: string; + labelMatch?: string; + pathsDoNotExist?: string[]; + pathsExist?: string[]; + repositoryMatch?: string; + }[]; + gitea?: { + allBranches?: boolean; + api: string; + insecure?: boolean; + owner: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + github?: { + allBranches?: boolean; + api?: string; + appSecretName?: string; + organization: string; + tokenRef?: { + key: string; + secretName: string; + }; + }; + gitlab?: { + allBranches?: boolean; + api?: string; + caRef?: { + configMapName: string; + key: string; + }; + group: string; + includeSharedProjects?: boolean; + includeSubgroups?: boolean; + insecure?: boolean; + tokenRef?: { + key: string; + secretName: string; + }; + topic?: string; + }; + requeueAfterSeconds?: number; + template?: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + values?: { + [k: string]: string; + }; + }; + selector?: { + matchExpressions?: { + key: string; + operator: string; + values?: string[]; + }[]; + matchLabels?: { + [k: string]: string; + }; + }; + }[]; + goTemplate?: boolean; + goTemplateOptions?: string[]; + ignoreApplicationDifferences?: { + jqPathExpressions?: string[]; + jsonPointers?: string[]; + name?: string; + }[]; + preservedFields?: { + annotations?: string[]; + labels?: string[]; + }; + strategy?: { + rollingSync?: { + steps?: { + matchExpressions?: { + key?: string; + operator?: string; + values?: string[]; + }[]; + maxUpdate?: number | string; + }[]; + }; + type?: string; + }; + syncPolicy?: { + applicationsSync?: string; + preserveResourcesOnDeletion?: boolean; + }; + template: { + metadata: { + annotations?: { + [k: string]: string; + }; + finalizers?: string[]; + labels?: { + [k: string]: string; + }; + name?: string; + namespace?: string; + }; + spec: { + destination: { + name?: string; + namespace?: string; + server?: string; + }; + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + info?: { + name: string; + value: string; + }[]; + project: string; + revisionHistoryLimit?: number; + source?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }; + sourceHydrator?: { + drySource: { + path: string; + repoURL: string; + targetRevision: string; + }; + hydrateTo?: { + targetBranch: string; + }; + syncSource: { + path: string; + targetBranch: string; + }; + }; + sources?: { + chart?: string; + directory?: { + exclude?: string; + include?: string; + jsonnet?: { + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + libs?: string[]; + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + recurse?: boolean; + }; + helm?: { + apiVersions?: string[]; + fileParameters?: { + name?: string; + path?: string; + }[]; + ignoreMissingValueFiles?: boolean; + kubeVersion?: string; + namespace?: string; + parameters?: { + forceString?: boolean; + name?: string; + value?: string; + }[]; + passCredentials?: boolean; + releaseName?: string; + skipCrds?: boolean; + skipSchemaValidation?: boolean; + skipTests?: boolean; + valueFiles?: string[]; + values?: string; + valuesObject?: {}; + version?: string; + }; + kustomize?: { + apiVersions?: string[]; + commonAnnotations?: { + [k: string]: string; + }; + commonAnnotationsEnvsubst?: boolean; + commonLabels?: { + [k: string]: string; + }; + components?: string[]; + forceCommonAnnotations?: boolean; + forceCommonLabels?: boolean; + ignoreMissingComponents?: boolean; + images?: string[]; + kubeVersion?: string; + labelIncludeTemplates?: boolean; + labelWithoutSelector?: boolean; + namePrefix?: string; + nameSuffix?: string; + namespace?: string; + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + replicas?: { + count: number | string; + name: string; + }[]; + version?: string; + }; + name?: string; + path?: string; + plugin?: { + env?: { + name: string; + value: string; + }[]; + name?: string; + parameters?: { + array?: string[]; + map?: { + [k: string]: string; + }; + name?: string; + string?: string; + }[]; + }; + ref?: string; + repoURL: string; + targetRevision?: string; + }[]; + syncPolicy?: { + automated?: { + allowEmpty?: boolean; + prune?: boolean; + selfHeal?: boolean; + }; + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + retry?: { + backoff?: { + duration?: string; + factor?: number; + maxDuration?: string; + }; + limit?: number; + }; + syncOptions?: string[]; + }; + }; + }; + templatePatch?: string; + }; + status?: { + applicationStatus?: { + application: string; + lastTransitionTime?: string; + message: string; + status: string; + step: string; + targetRevisions: string[]; + }[]; + conditions?: { + lastTransitionTime?: string; + message: string; + reason: string; + status: string; + type: string; + }[]; + resources?: { + group?: string; + health?: { + lastTransitionTime?: string; + message?: string; + status?: string; + }; + hook?: boolean; + kind?: string; + name?: string; + namespace?: string; + requiresDeletionConfirmation?: boolean; + requiresPruning?: boolean; + status?: string; + syncWave?: number; + version?: string; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SApplicationV1alpha1.json b/src/__generated__/resources/K8SApplicationV1alpha1.json new file mode 100644 index 0000000..a79084c --- /dev/null +++ b/src/__generated__/resources/K8SApplicationV1alpha1.json @@ -0,0 +1,6513 @@ +{ + "description": "Application is a definition of Application resource.", + "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" + }, + "operation": { + "description": "Operation contains information about a requested or running operation", + "properties": { + "info": { + "description": "Info is a list of informational items for this operation", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "initiatedBy": { + "description": "InitiatedBy contains information about who initiated the operations", + "properties": { + "automated": { + "description": "Automated is set to true if operation was initiated automatically by the application controller.", + "type": "boolean" + }, + "username": { + "description": "Username contains the name of a user who started operation", + "type": "string" + } + }, + "type": "object" + }, + "retry": { + "description": "Retry controls the strategy to apply if a sync fails", + "properties": { + "backoff": { + "description": "Backoff controls how to backoff on subsequent retries of failed syncs", + "properties": { + "duration": { + "description": "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")", + "type": "string" + }, + "factor": { + "description": "Factor is a factor to multiply the base duration after each failed retry", + "format": "int64", + "type": "integer" + }, + "maxDuration": { + "description": "MaxDuration is the maximum amount of time allowed for the backoff strategy", + "type": "string" + } + }, + "type": "object" + }, + "limit": { + "description": "Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "sync": { + "description": "Sync contains parameters for the operation", + "properties": { + "autoHealAttemptsCount": { + "description": "SelfHealAttemptsCount contains the number of auto-heal attempts", + "format": "int64", + "type": "integer" + }, + "dryRun": { + "description": "DryRun specifies to perform a `kubectl apply --dry-run` without actually performing the sync", + "type": "boolean" + }, + "manifests": { + "description": "Manifests is an optional field that overrides sync source with a local directory for development", + "items": { + "type": "string" + }, + "type": "array" + }, + "prune": { + "description": "Prune specifies to delete resources from the cluster that are no longer tracked in git", + "type": "boolean" + }, + "resources": { + "description": "Resources describes which resources shall be part of the sync", + "items": { + "description": "SyncOperationResource contains resources to sync.", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "type": "array" + }, + "revision": { + "description": "Revision is the revision (Git) or chart version (Helm) which to sync the application to\nIf omitted, will use the revision specified in app spec.", + "type": "string" + }, + "revisions": { + "description": "Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to\nIf omitted, will use the revision specified in app spec.", + "items": { + "type": "string" + }, + "type": "array" + }, + "source": { + "description": "Source overrides the source definition set in the application.\nThis is typically set in a Rollback operation and is nil during a Sync operation", + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "description": "Additional library search dirs", + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "description": "Helm holds helm specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object" + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + }, + "type": "object" + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sources": { + "description": "Sources overrides the source definition set in the application.\nThis is typically set in a Rollback operation and is nil during a Sync operation", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "type": "array" + }, + "syncOptions": { + "description": "SyncOptions provide per-sync sync-options, e.g. Validate=false", + "items": { + "type": "string" + }, + "type": "array" + }, + "syncStrategy": { + "description": "SyncStrategy describes how to perform the sync", + "properties": { + "apply": { + "description": "Apply will perform a `kubectl apply` to perform the sync.", + "properties": { + "force": { + "description": "Force indicates whether or not to supply the --force flag to `kubectl apply`.\nThe --force flag deletes and re-create the resource, when PATCH encounters conflict and has\nretried for 5 times.", + "type": "boolean" + } + }, + "type": "object" + }, + "hook": { + "description": "Hook will submit any referenced resources to perform the sync. This is the default strategy", + "properties": { + "force": { + "description": "Force indicates whether or not to supply the --force flag to `kubectl apply`.\nThe --force flag deletes and re-create the resource, when PATCH encounters conflict and has\nretried for 5 times.", + "type": "boolean" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "spec": { + "description": "ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision.", + "properties": { + "destination": { + "description": "Destination is a reference to the target Kubernetes server and namespace", + "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": "object" + }, + "ignoreDifferences": { + "description": "IgnoreDifferences is a list of resources and their fields which should be ignored during comparison", + "items": { + "description": "ResourceIgnoreDifferences contains resource filter and list of json paths which should be ignored during comparison with live state.", + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "description": "ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the\ndesired state defined in the SCM and won't be displayed in diffs", + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "type": "array" + }, + "info": { + "description": "Info contains a list of information (URLs, email addresses, and plain text) that relates to the application", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "project": { + "description": "Project is a reference to the project this application belongs to.\nThe empty string means that application belongs to the 'default' project.", + "type": "string" + }, + "revisionHistoryLimit": { + "description": "RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for informational purposes as well as for rollbacks to previous versions.\nThis should only be changed in exceptional circumstances.\nSetting to zero will store no history. This will reduce storage used.\nIncreasing will increase the space used to store the history, so we do not recommend increasing it.\nDefault is 10.", + "format": "int64", + "type": "integer" + }, + "source": { + "description": "Source is a reference to the location of the application's manifests or chart", + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "description": "Additional library search dirs", + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "description": "Helm holds helm specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object" + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + }, + "type": "object" + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sourceHydrator": { + "description": "SourceHydrator provides a way to push hydrated manifests back to git before syncing them to the cluster.", + "properties": { + "drySource": { + "description": "DrySource specifies where the dry \"don't repeat yourself\" manifest source lives.", + "properties": { + "path": { + "description": "Path is a directory path within the Git repository where the manifests are located", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the git repository that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to hydrate", + "type": "string" + } + }, + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "type": "object" + }, + "hydrateTo": { + "description": "HydrateTo specifies an optional \"staging\" location to push hydrated manifests to. An external system would then\nhave to move manifests to the SyncSource, e.g. by pull request.", + "properties": { + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "targetBranch" + ], + "type": "object" + }, + "syncSource": { + "description": "SyncSource specifies where to sync hydrated manifests from.", + "properties": { + "path": { + "description": "Path is a directory path within the git repository where hydrated manifests should be committed to and synced\nfrom. If hydrateTo is set, this is just the path from which hydrated manifests will be synced.", + "type": "string" + }, + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "path", + "targetBranch" + ], + "type": "object" + } + }, + "required": [ + "drySource", + "syncSource" + ], + "type": "object" + }, + "sources": { + "description": "Sources is a reference to the location of the application's manifests or chart", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "type": "array" + }, + "syncPolicy": { + "description": "SyncPolicy controls when and how a sync will be performed", + "properties": { + "automated": { + "description": "Automated will keep an application synced to the target revision", + "properties": { + "allowEmpty": { + "description": "AllowEmpty allows apps have zero live resources (default: false)", + "type": "boolean" + }, + "prune": { + "description": "Prune specifies whether to delete resources from the cluster that are not found in the sources anymore as part of automated sync (default: false)", + "type": "boolean" + }, + "selfHeal": { + "description": "SelfHeal specifies whether to revert resources back to their desired state upon modification in the cluster (default: false)", + "type": "boolean" + } + }, + "type": "object" + }, + "managedNamespaceMetadata": { + "description": "ManagedNamespaceMetadata controls metadata in the given namespace (if CreateNamespace=true)", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "retry": { + "description": "Retry controls failed sync retry behavior", + "properties": { + "backoff": { + "description": "Backoff controls how to backoff on subsequent retries of failed syncs", + "properties": { + "duration": { + "description": "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")", + "type": "string" + }, + "factor": { + "description": "Factor is a factor to multiply the base duration after each failed retry", + "format": "int64", + "type": "integer" + }, + "maxDuration": { + "description": "MaxDuration is the maximum amount of time allowed for the backoff strategy", + "type": "string" + } + }, + "type": "object" + }, + "limit": { + "description": "Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "syncOptions": { + "description": "Options allow you to specify whole app sync-options", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "required": [ + "destination", + "project" + ], + "type": "object" + }, + "status": { + "description": "ApplicationStatus contains status information for the application", + "properties": { + "conditions": { + "description": "Conditions is a list of currently observed application conditions", + "items": { + "description": "ApplicationCondition contains details about an application condition, which is usually an error or warning", + "type": "object", + "required": [ + "message", + "type" + ], + "properties": { + "lastTransitionTime": { + "description": "LastTransitionTime is the time the condition was last observed", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Message contains human-readable message indicating details about condition", + "type": "string" + }, + "type": { + "description": "Type is an application condition type", + "type": "string" + } + } + }, + "type": "array" + }, + "controllerNamespace": { + "description": "ControllerNamespace indicates the namespace in which the application controller is located", + "type": "string" + }, + "health": { + "description": "Health contains information about the application's current health status", + "properties": { + "lastTransitionTime": { + "description": "LastTransitionTime is the time the HealthStatus was set or updated", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "Message is a human-readable informational message describing the health status", + "type": "string" + }, + "status": { + "description": "Status holds the status code of the application or resource", + "type": "string" + } + }, + "type": "object" + }, + "history": { + "description": "History contains information about the application's sync history", + "items": { + "description": "RevisionHistory contains history information about a previous sync", + "type": "object", + "required": [ + "deployedAt", + "id" + ], + "properties": { + "deployStartedAt": { + "description": "DeployStartedAt holds the time the sync operation started", + "type": "string", + "format": "date-time" + }, + "deployedAt": { + "description": "DeployedAt holds the time the sync operation completed", + "type": "string", + "format": "date-time" + }, + "id": { + "description": "ID is an auto incrementing identifier of the RevisionHistory", + "type": "integer", + "format": "int64" + }, + "initiatedBy": { + "description": "InitiatedBy contains information about who initiated the operations", + "type": "object", + "properties": { + "automated": { + "description": "Automated is set to true if operation was initiated automatically by the application controller.", + "type": "boolean" + }, + "username": { + "description": "Username contains the name of a user who started operation", + "type": "string" + } + } + }, + "revision": { + "description": "Revision holds the revision the sync was performed against", + "type": "string" + }, + "revisions": { + "description": "Revisions holds the revision of each source in sources field the sync was performed against", + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "description": "Source is a reference to the application source used for the sync operation", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "sources": { + "description": "Sources is a reference to the application sources used for the sync operation", + "type": "array", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + } + } + } + }, + "type": "array" + }, + "observedAt": { + "description": "ObservedAt indicates when the application state was updated without querying latest git state\nDeprecated: controller no longer updates ObservedAt field", + "format": "date-time", + "type": "string" + }, + "operationState": { + "description": "OperationState contains information about any ongoing operations, such as a sync", + "properties": { + "finishedAt": { + "description": "FinishedAt contains time of operation completion", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "Message holds any pertinent messages when attempting to perform operation (typically errors).", + "type": "string" + }, + "operation": { + "description": "Operation is the original requested operation", + "properties": { + "info": { + "description": "Info is a list of informational items for this operation", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "initiatedBy": { + "description": "InitiatedBy contains information about who initiated the operations", + "properties": { + "automated": { + "description": "Automated is set to true if operation was initiated automatically by the application controller.", + "type": "boolean" + }, + "username": { + "description": "Username contains the name of a user who started operation", + "type": "string" + } + }, + "type": "object" + }, + "retry": { + "description": "Retry controls the strategy to apply if a sync fails", + "properties": { + "backoff": { + "description": "Backoff controls how to backoff on subsequent retries of failed syncs", + "properties": { + "duration": { + "description": "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")", + "type": "string" + }, + "factor": { + "description": "Factor is a factor to multiply the base duration after each failed retry", + "format": "int64", + "type": "integer" + }, + "maxDuration": { + "description": "MaxDuration is the maximum amount of time allowed for the backoff strategy", + "type": "string" + } + }, + "type": "object" + }, + "limit": { + "description": "Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed.", + "format": "int64", + "type": "integer" + } + }, + "type": "object" + }, + "sync": { + "description": "Sync contains parameters for the operation", + "properties": { + "autoHealAttemptsCount": { + "description": "SelfHealAttemptsCount contains the number of auto-heal attempts", + "format": "int64", + "type": "integer" + }, + "dryRun": { + "description": "DryRun specifies to perform a `kubectl apply --dry-run` without actually performing the sync", + "type": "boolean" + }, + "manifests": { + "description": "Manifests is an optional field that overrides sync source with a local directory for development", + "items": { + "type": "string" + }, + "type": "array" + }, + "prune": { + "description": "Prune specifies to delete resources from the cluster that are no longer tracked in git", + "type": "boolean" + }, + "resources": { + "description": "Resources describes which resources shall be part of the sync", + "items": { + "description": "SyncOperationResource contains resources to sync.", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "type": "array" + }, + "revision": { + "description": "Revision is the revision (Git) or chart version (Helm) which to sync the application to\nIf omitted, will use the revision specified in app spec.", + "type": "string" + }, + "revisions": { + "description": "Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to\nIf omitted, will use the revision specified in app spec.", + "items": { + "type": "string" + }, + "type": "array" + }, + "source": { + "description": "Source overrides the source definition set in the application.\nThis is typically set in a Rollback operation and is nil during a Sync operation", + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "description": "Additional library search dirs", + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "description": "Helm holds helm specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object" + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + }, + "type": "object" + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sources": { + "description": "Sources overrides the source definition set in the application.\nThis is typically set in a Rollback operation and is nil during a Sync operation", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "type": "array" + }, + "syncOptions": { + "description": "SyncOptions provide per-sync sync-options, e.g. Validate=false", + "items": { + "type": "string" + }, + "type": "array" + }, + "syncStrategy": { + "description": "SyncStrategy describes how to perform the sync", + "properties": { + "apply": { + "description": "Apply will perform a `kubectl apply` to perform the sync.", + "properties": { + "force": { + "description": "Force indicates whether or not to supply the --force flag to `kubectl apply`.\nThe --force flag deletes and re-create the resource, when PATCH encounters conflict and has\nretried for 5 times.", + "type": "boolean" + } + }, + "type": "object" + }, + "hook": { + "description": "Hook will submit any referenced resources to perform the sync. This is the default strategy", + "properties": { + "force": { + "description": "Force indicates whether or not to supply the --force flag to `kubectl apply`.\nThe --force flag deletes and re-create the resource, when PATCH encounters conflict and has\nretried for 5 times.", + "type": "boolean" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "phase": { + "description": "Phase is the current phase of the operation", + "type": "string" + }, + "retryCount": { + "description": "RetryCount contains time of operation retries", + "format": "int64", + "type": "integer" + }, + "startedAt": { + "description": "StartedAt contains time of operation start", + "format": "date-time", + "type": "string" + }, + "syncResult": { + "description": "SyncResult is the result of a Sync operation", + "properties": { + "managedNamespaceMetadata": { + "description": "ManagedNamespaceMetadata contains the current sync state of managed namespace metadata", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "type": "object" + }, + "resources": { + "description": "Resources contains a list of sync result items for each individual resource in a sync operation", + "items": { + "description": "ResourceResult holds the operation result details of a specific resource", + "type": "object", + "required": [ + "group", + "kind", + "name", + "namespace", + "version" + ], + "properties": { + "group": { + "description": "Group specifies the API group of the resource", + "type": "string" + }, + "hookPhase": { + "description": "HookPhase contains the state of any operation associated with this resource OR hook\nThis can also contain values for non-hook resources.", + "type": "string" + }, + "hookType": { + "description": "HookType specifies the type of the hook. Empty for non-hook resources", + "type": "string" + }, + "kind": { + "description": "Kind specifies the API kind of the resource", + "type": "string" + }, + "message": { + "description": "Message contains an informational or error message for the last sync OR operation", + "type": "string" + }, + "name": { + "description": "Name specifies the name of the resource", + "type": "string" + }, + "namespace": { + "description": "Namespace specifies the target namespace of the resource", + "type": "string" + }, + "status": { + "description": "Status holds the final result of the sync. Will be empty if the resources is yet to be applied/pruned and is always zero-value for hooks", + "type": "string" + }, + "syncPhase": { + "description": "SyncPhase indicates the particular phase of the sync that this result was acquired in", + "type": "string" + }, + "version": { + "description": "Version specifies the API version of the resource", + "type": "string" + } + } + }, + "type": "array" + }, + "revision": { + "description": "Revision holds the revision this sync operation was performed to", + "type": "string" + }, + "revisions": { + "description": "Revisions holds the revision this sync operation was performed for respective indexed source in sources field", + "items": { + "type": "string" + }, + "type": "array" + }, + "source": { + "description": "Source records the application source information of the sync, used for comparing auto-sync", + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "description": "Additional library search dirs", + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "description": "Helm holds helm specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object" + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + }, + "type": "object" + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sources": { + "description": "Source records the application source information of the sync, used for comparing auto-sync", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "required": [ + "revision" + ], + "type": "object" + } + }, + "required": [ + "operation", + "phase", + "startedAt" + ], + "type": "object" + }, + "reconciledAt": { + "description": "ReconciledAt indicates when the application state was reconciled using the latest git version", + "format": "date-time", + "type": "string" + }, + "resourceHealthSource": { + "description": "ResourceHealthSource indicates where the resource health status is stored: inline if not set or appTree", + "type": "string" + }, + "resources": { + "description": "Resources is a list of Kubernetes resources managed by this application", + "items": { + "description": "ResourceStatus holds the current synchronization and health status of a Kubernetes resource.", + "type": "object", + "properties": { + "group": { + "description": "Group represents the API group of the resource (e.g., \"apps\" for Deployments).", + "type": "string" + }, + "health": { + "description": "Health indicates the health status of the resource (e.g., Healthy, Degraded, Progressing).", + "type": "object", + "properties": { + "lastTransitionTime": { + "description": "LastTransitionTime is the time the HealthStatus was set or updated", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "Message is a human-readable informational message describing the health status", + "type": "string" + }, + "status": { + "description": "Status holds the status code of the application or resource", + "type": "string" + } + } + }, + "hook": { + "description": "Hook is true if the resource is used as a lifecycle hook in an Argo CD application.", + "type": "boolean" + }, + "kind": { + "description": "Kind specifies the type of the resource (e.g., \"Deployment\", \"Service\").", + "type": "string" + }, + "name": { + "description": "Name is the unique name of the resource within the namespace.", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the Kubernetes namespace where the resource is located.", + "type": "string" + }, + "requiresDeletionConfirmation": { + "description": "RequiresDeletionConfirmation is true if the resource requires explicit user confirmation before deletion.", + "type": "boolean" + }, + "requiresPruning": { + "description": "RequiresPruning is true if the resource needs to be pruned (deleted) as part of synchronization.", + "type": "boolean" + }, + "status": { + "description": "Status represents the synchronization state of the resource (e.g., Synced, OutOfSync).", + "type": "string" + }, + "syncWave": { + "description": "SyncWave determines the order in which resources are applied during a sync operation.\nLower values are applied first.", + "type": "integer", + "format": "int64" + }, + "version": { + "description": "Version indicates the API version of the resource (e.g., \"v1\", \"v1beta1\").", + "type": "string" + } + } + }, + "type": "array" + }, + "sourceHydrator": { + "description": "SourceHydrator stores information about the current state of source hydration", + "properties": { + "currentOperation": { + "description": "CurrentOperation holds the status of the hydrate operation", + "properties": { + "drySHA": { + "description": "DrySHA holds the resolved revision (sha) of the dry source as of the most recent reconciliation", + "type": "string" + }, + "finishedAt": { + "description": "FinishedAt indicates when the hydrate operation finished", + "format": "date-time", + "type": "string" + }, + "hydratedSHA": { + "description": "HydratedSHA holds the resolved revision (sha) of the hydrated source as of the most recent reconciliation", + "type": "string" + }, + "message": { + "description": "Message contains a message describing the current status of the hydrate operation", + "type": "string" + }, + "phase": { + "description": "Phase indicates the status of the hydrate operation", + "_enum": [ + "Hydrating", + "Failed", + "Hydrated" + ], + "type": "string" + }, + "sourceHydrator": { + "description": "SourceHydrator holds the hydrator config used for the hydrate operation", + "properties": { + "drySource": { + "description": "DrySource specifies where the dry \"don't repeat yourself\" manifest source lives.", + "properties": { + "path": { + "description": "Path is a directory path within the Git repository where the manifests are located", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the git repository that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to hydrate", + "type": "string" + } + }, + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "type": "object" + }, + "hydrateTo": { + "description": "HydrateTo specifies an optional \"staging\" location to push hydrated manifests to. An external system would then\nhave to move manifests to the SyncSource, e.g. by pull request.", + "properties": { + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "targetBranch" + ], + "type": "object" + }, + "syncSource": { + "description": "SyncSource specifies where to sync hydrated manifests from.", + "properties": { + "path": { + "description": "Path is a directory path within the git repository where hydrated manifests should be committed to and synced\nfrom. If hydrateTo is set, this is just the path from which hydrated manifests will be synced.", + "type": "string" + }, + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "path", + "targetBranch" + ], + "type": "object" + } + }, + "required": [ + "drySource", + "syncSource" + ], + "type": "object" + }, + "startedAt": { + "description": "StartedAt indicates when the hydrate operation started", + "format": "date-time", + "type": "string" + } + }, + "required": [ + "message", + "phase" + ], + "type": "object" + }, + "lastSuccessfulOperation": { + "description": "LastSuccessfulOperation holds info about the most recent successful hydration", + "properties": { + "drySHA": { + "description": "DrySHA holds the resolved revision (sha) of the dry source as of the most recent reconciliation", + "type": "string" + }, + "hydratedSHA": { + "description": "HydratedSHA holds the resolved revision (sha) of the hydrated source as of the most recent reconciliation", + "type": "string" + }, + "sourceHydrator": { + "description": "SourceHydrator holds the hydrator config used for the hydrate operation", + "properties": { + "drySource": { + "description": "DrySource specifies where the dry \"don't repeat yourself\" manifest source lives.", + "properties": { + "path": { + "description": "Path is a directory path within the Git repository where the manifests are located", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the git repository that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to hydrate", + "type": "string" + } + }, + "required": [ + "path", + "repoURL", + "targetRevision" + ], + "type": "object" + }, + "hydrateTo": { + "description": "HydrateTo specifies an optional \"staging\" location to push hydrated manifests to. An external system would then\nhave to move manifests to the SyncSource, e.g. by pull request.", + "properties": { + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "targetBranch" + ], + "type": "object" + }, + "syncSource": { + "description": "SyncSource specifies where to sync hydrated manifests from.", + "properties": { + "path": { + "description": "Path is a directory path within the git repository where hydrated manifests should be committed to and synced\nfrom. If hydrateTo is set, this is just the path from which hydrated manifests will be synced.", + "type": "string" + }, + "targetBranch": { + "description": "TargetBranch is the branch to which hydrated manifests should be committed", + "type": "string" + } + }, + "required": [ + "path", + "targetBranch" + ], + "type": "object" + } + }, + "required": [ + "drySource", + "syncSource" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "sourceType": { + "description": "SourceType specifies the type of this application", + "type": "string" + }, + "sourceTypes": { + "description": "SourceTypes specifies the type of the sources included in the application", + "items": { + "description": "ApplicationSourceType specifies the type of the application's source", + "type": "string" + }, + "type": "array" + }, + "summary": { + "description": "Summary contains a list of URLs and container images used by this application", + "properties": { + "externalURLs": { + "description": "ExternalURLs holds all external URLs of application child resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "images": { + "description": "Images holds all images of application child resources.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "sync": { + "description": "Sync contains information about the application's current sync status", + "properties": { + "comparedTo": { + "description": "ComparedTo contains information about what has been compared", + "properties": { + "destination": { + "description": "Destination is a reference to the application's destination used for comparison", + "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": "object" + }, + "ignoreDifferences": { + "description": "IgnoreDifferences is a reference to the application's ignored differences used for comparison", + "items": { + "description": "ResourceIgnoreDifferences contains resource filter and list of json paths which should be ignored during comparison with live state.", + "type": "object", + "required": [ + "kind" + ], + "properties": { + "group": { + "type": "string" + }, + "jqPathExpressions": { + "type": "array", + "items": { + "type": "string" + } + }, + "jsonPointers": { + "type": "array", + "items": { + "type": "string" + } + }, + "kind": { + "type": "string" + }, + "managedFieldsManagers": { + "description": "ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the\ndesired state defined in the SCM and won't be displayed in diffs", + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "type": "array" + }, + "source": { + "description": "Source is a reference to the application's source used for comparison", + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + }, + "libs": { + "description": "Additional library search dirs", + "items": { + "type": "string" + }, + "type": "array" + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + }, + "type": "object" + }, + "helm": { + "description": "Helm holds helm specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + }, + "type": "array" + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "items": { + "type": "string" + }, + "type": "array" + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x_kubernetes_preserve_unknown_fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + }, + "type": "object" + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "items": { + "type": "string" + }, + "type": "array" + }, + "commonAnnotations": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object" + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object" + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "items": { + "type": "string" + }, + "type": "array" + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + }, + "type": "array" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + }, + "type": "array" + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + }, + "type": "array" + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + }, + "type": "object" + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "parameters": { + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + }, + "required": [ + "repoURL" + ], + "type": "object" + }, + "sources": { + "description": "Sources is a reference to the application's multiple sources used for comparison", + "items": { + "description": "ApplicationSource contains all required information about the source of an application", + "type": "object", + "required": [ + "repoURL" + ], + "properties": { + "chart": { + "description": "Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo.", + "type": "string" + }, + "directory": { + "description": "Directory holds path/directory specific options", + "type": "object", + "properties": { + "exclude": { + "description": "Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation", + "type": "string" + }, + "include": { + "description": "Include contains a glob pattern to match paths against that should be explicitly included during manifest generation", + "type": "string" + }, + "jsonnet": { + "description": "Jsonnet holds options specific to Jsonnet", + "type": "object", + "properties": { + "extVars": { + "description": "ExtVars is a list of Jsonnet External Variables", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + }, + "libs": { + "description": "Additional library search dirs", + "type": "array", + "items": { + "type": "string" + } + }, + "tlas": { + "description": "TLAS is a list of Jsonnet Top-level Arguments", + "type": "array", + "items": { + "description": "JsonnetVar represents a variable to be passed to jsonnet during manifest generation", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "code": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + } + } + } + }, + "recurse": { + "description": "Recurse specifies whether to scan a directory recursively for manifests", + "type": "boolean" + } + } + }, + "helm": { + "description": "Helm holds helm specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "fileParameters": { + "description": "FileParameters are file parameters to the helm template", + "type": "array", + "items": { + "description": "HelmFileParameter is a file parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "path": { + "description": "Path is the path to the file containing the values for the Helm parameter", + "type": "string" + } + } + } + }, + "ignoreMissingValueFiles": { + "description": "IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values", + "type": "boolean" + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "namespace": { + "description": "Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace.", + "type": "string" + }, + "parameters": { + "description": "Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation", + "type": "array", + "items": { + "description": "HelmParameter is a parameter that's passed to helm template during manifest generation", + "type": "object", + "properties": { + "forceString": { + "description": "ForceString determines whether to tell Helm to interpret booleans and numbers as strings", + "type": "boolean" + }, + "name": { + "description": "Name is the name of the Helm parameter", + "type": "string" + }, + "value": { + "description": "Value is the value for the Helm parameter", + "type": "string" + } + } + } + }, + "passCredentials": { + "description": "PassCredentials pass credentials to all domains (Helm's --pass-credentials)", + "type": "boolean" + }, + "releaseName": { + "description": "ReleaseName is the Helm release name to use. If omitted it will use the application name", + "type": "string" + }, + "skipCrds": { + "description": "SkipCrds skips custom resource definition installation step (Helm's --skip-crds)", + "type": "boolean" + }, + "skipSchemaValidation": { + "description": "SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation)", + "type": "boolean" + }, + "skipTests": { + "description": "SkipTests skips test manifest installation step (Helm's --skip-tests).", + "type": "boolean" + }, + "valueFiles": { + "description": "ValuesFiles is a list of Helm value files to use when generating a template", + "type": "array", + "items": { + "type": "string" + } + }, + "values": { + "description": "Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other.", + "type": "string" + }, + "valuesObject": { + "description": "ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values.", + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + }, + "version": { + "description": "Version is the Helm version to use for templating (\"3\")", + "type": "string" + } + } + }, + "kustomize": { + "description": "Kustomize holds kustomize specific options", + "type": "object", + "properties": { + "apiVersions": { + "description": "APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default,\nArgo CD uses the API versions of the target cluster. The format is [group/]version/kind.", + "type": "array", + "items": { + "type": "string" + } + }, + "commonAnnotations": { + "description": "CommonAnnotations is a list of additional annotations to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "commonAnnotationsEnvsubst": { + "description": "CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values", + "type": "boolean" + }, + "commonLabels": { + "description": "CommonLabels is a list of additional labels to add to rendered manifests", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "components": { + "description": "Components specifies a list of kustomize components to add to the kustomization before building", + "type": "array", + "items": { + "type": "string" + } + }, + "forceCommonAnnotations": { + "description": "ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps", + "type": "boolean" + }, + "forceCommonLabels": { + "description": "ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps", + "type": "boolean" + }, + "ignoreMissingComponents": { + "description": "IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file", + "type": "boolean" + }, + "images": { + "description": "Images is a list of Kustomize image override specifications", + "type": "array", + "items": { + "description": "KustomizeImage represents a Kustomize image definition in the format [old_image_name=]:", + "type": "string" + } + }, + "kubeVersion": { + "description": "KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD\nuses the Kubernetes version of the target cluster.", + "type": "string" + }, + "labelIncludeTemplates": { + "description": "LabelIncludeTemplates specifies whether to apply common labels to resource templates or not", + "type": "boolean" + }, + "labelWithoutSelector": { + "description": "LabelWithoutSelector specifies whether to apply common labels to resource selectors or not", + "type": "boolean" + }, + "namePrefix": { + "description": "NamePrefix is a prefix appended to resources for Kustomize apps", + "type": "string" + }, + "nameSuffix": { + "description": "NameSuffix is a suffix appended to resources for Kustomize apps", + "type": "string" + }, + "namespace": { + "description": "Namespace sets the namespace that Kustomize adds to all resources", + "type": "string" + }, + "patches": { + "description": "Patches is a list of Kustomize patches", + "type": "array", + "items": { + "type": "object", + "properties": { + "options": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "patch": { + "type": "string" + }, + "path": { + "type": "string" + }, + "target": { + "type": "object", + "properties": { + "annotationSelector": { + "type": "string" + }, + "group": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "labelSelector": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "version": { + "type": "string" + } + } + } + } + } + }, + "replicas": { + "description": "Replicas is a list of Kustomize Replicas override specifications", + "type": "array", + "items": { + "type": "object", + "required": [ + "count", + "name" + ], + "properties": { + "count": { + "description": "Number of replicas", + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "x-kubernetes-int-or-string": true + }, + "name": { + "description": "Name of Deployment or StatefulSet", + "type": "string" + } + } + } + }, + "version": { + "description": "Version controls which version of Kustomize to use for rendering manifests", + "type": "string" + } + } + }, + "name": { + "description": "Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications.", + "type": "string" + }, + "path": { + "description": "Path is a directory path within the Git repository, and is only valid for applications sourced from Git.", + "type": "string" + }, + "plugin": { + "description": "Plugin holds config management plugin specific options", + "type": "object", + "properties": { + "env": { + "description": "Env is a list of environment variable entries", + "type": "array", + "items": { + "description": "EnvEntry represents an entry in the application's environment", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name is the name of the variable, usually expressed in uppercase", + "type": "string" + }, + "value": { + "description": "Value is the value of the variable", + "type": "string" + } + } + } + }, + "name": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "array": { + "description": "Array is the value of an array type parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "map": { + "description": "Map is the value of a map type parameter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name is the name identifying a parameter.", + "type": "string" + }, + "string": { + "description": "String_ is the value of a string type parameter.", + "type": "string" + } + } + } + } + } + }, + "ref": { + "description": "Ref is reference to another source within sources field. This field will not be used if used with a `source` tag.", + "type": "string" + }, + "repoURL": { + "description": "RepoURL is the URL to the repository (Git or Helm) that contains the application manifests", + "type": "string" + }, + "targetRevision": { + "description": "TargetRevision defines the revision of the source to sync the application to.\nIn case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD.\nIn case of Helm, this is a semver tag for the Chart's version.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "required": [ + "destination" + ], + "type": "object" + }, + "revision": { + "description": "Revision contains information about the revision the comparison has been performed to", + "type": "string" + }, + "revisions": { + "description": "Revisions contains information about the revisions of multiple sources the comparison has been performed to", + "items": { + "type": "string" + }, + "type": "array" + }, + "status": { + "description": "Status is the sync state of the comparison", + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + } + }, + "type": "object" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SApplicationV1alpha1.ts b/src/__generated__/resources/K8SApplicationV1alpha1.ts new file mode 100644 index 0000000..28d4544 --- /dev/null +++ b/src/__generated__/resources/K8SApplicationV1alpha1.ts @@ -0,0 +1,4608 @@ +/* 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. + */ + +/** + * Application is a definition of Application resource. + */ +export interface K8SApplicationV1Alpha1 { + /** + * 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: {}; + /** + * Operation contains information about a requested or running operation + */ + operation?: { + /** + * Info is a list of informational items for this operation + */ + info?: { + name: string; + value: string; + }[]; + /** + * InitiatedBy contains information about who initiated the operations + */ + initiatedBy?: { + /** + * Automated is set to true if operation was initiated automatically by the application controller. + */ + automated?: boolean; + /** + * Username contains the name of a user who started operation + */ + username?: string; + }; + /** + * Retry controls the strategy to apply if a sync fails + */ + retry?: { + /** + * Backoff controls how to backoff on subsequent retries of failed syncs + */ + backoff?: { + /** + * Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") + */ + duration?: string; + /** + * Factor is a factor to multiply the base duration after each failed retry + */ + factor?: number; + /** + * MaxDuration is the maximum amount of time allowed for the backoff strategy + */ + maxDuration?: string; + }; + /** + * Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed. + */ + limit?: number; + }; + /** + * Sync contains parameters for the operation + */ + sync?: { + /** + * SelfHealAttemptsCount contains the number of auto-heal attempts + */ + autoHealAttemptsCount?: number; + /** + * DryRun specifies to perform a `kubectl apply --dry-run` without actually performing the sync + */ + dryRun?: boolean; + /** + * Manifests is an optional field that overrides sync source with a local directory for development + */ + manifests?: string[]; + /** + * Prune specifies to delete resources from the cluster that are no longer tracked in git + */ + prune?: boolean; + /** + * Resources describes which resources shall be part of the sync + */ + resources?: { + group?: string; + kind: string; + name: string; + namespace?: string; + }[]; + /** + * Revision is the revision (Git) or chart version (Helm) which to sync the application to + * If omitted, will use the revision specified in app spec. + */ + revision?: string; + /** + * Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to + * If omitted, will use the revision specified in app spec. + */ + revisions?: string[]; + /** + * Source overrides the source definition set in the application. + * This is typically set in a Rollback operation and is nil during a Sync operation + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * Sources overrides the source definition set in the application. + * This is typically set in a Rollback operation and is nil during a Sync operation + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + /** + * SyncOptions provide per-sync sync-options, e.g. Validate=false + */ + syncOptions?: string[]; + /** + * SyncStrategy describes how to perform the sync + */ + syncStrategy?: { + /** + * Apply will perform a `kubectl apply` to perform the sync. + */ + apply?: { + /** + * Force indicates whether or not to supply the --force flag to `kubectl apply`. + * The --force flag deletes and re-create the resource, when PATCH encounters conflict and has + * retried for 5 times. + */ + force?: boolean; + }; + /** + * Hook will submit any referenced resources to perform the sync. This is the default strategy + */ + hook?: { + /** + * Force indicates whether or not to supply the --force flag to `kubectl apply`. + * The --force flag deletes and re-create the resource, when PATCH encounters conflict and has + * retried for 5 times. + */ + force?: boolean; + }; + }; + }; + }; + /** + * ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision. + */ + spec: { + /** + * Destination is a reference to the target Kubernetes server and namespace + */ + destination: { + /** + * 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; + }; + /** + * IgnoreDifferences is a list of resources and their fields which should be ignored during comparison + */ + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + /** + * ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the + * desired state defined in the SCM and won't be displayed in diffs + */ + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + /** + * Info contains a list of information (URLs, email addresses, and plain text) that relates to the application + */ + info?: { + name: string; + value: string; + }[]; + /** + * Project is a reference to the project this application belongs to. + * The empty string means that application belongs to the 'default' project. + */ + project: string; + /** + * RevisionHistoryLimit limits the number of items kept in the application's revision history, which is used for informational purposes as well as for rollbacks to previous versions. + * This should only be changed in exceptional circumstances. + * Setting to zero will store no history. This will reduce storage used. + * Increasing will increase the space used to store the history, so we do not recommend increasing it. + * Default is 10. + */ + revisionHistoryLimit?: number; + /** + * Source is a reference to the location of the application's manifests or chart + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * SourceHydrator provides a way to push hydrated manifests back to git before syncing them to the cluster. + */ + sourceHydrator?: { + /** + * DrySource specifies where the dry "don't repeat yourself" manifest source lives. + */ + drySource: { + /** + * Path is a directory path within the Git repository where the manifests are located + */ + path: string; + /** + * RepoURL is the URL to the git repository that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to hydrate + */ + targetRevision: string; + }; + /** + * HydrateTo specifies an optional "staging" location to push hydrated manifests to. An external system would then + * have to move manifests to the SyncSource, e.g. by pull request. + */ + hydrateTo?: { + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + /** + * SyncSource specifies where to sync hydrated manifests from. + */ + syncSource: { + /** + * Path is a directory path within the git repository where hydrated manifests should be committed to and synced + * from. If hydrateTo is set, this is just the path from which hydrated manifests will be synced. + */ + path: string; + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + }; + /** + * Sources is a reference to the location of the application's manifests or chart + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + /** + * SyncPolicy controls when and how a sync will be performed + */ + syncPolicy?: { + /** + * Automated will keep an application synced to the target revision + */ + automated?: { + /** + * AllowEmpty allows apps have zero live resources (default: false) + */ + allowEmpty?: boolean; + /** + * Prune specifies whether to delete resources from the cluster that are not found in the sources anymore as part of automated sync (default: false) + */ + prune?: boolean; + /** + * SelfHeal specifies whether to revert resources back to their desired state upon modification in the cluster (default: false) + */ + selfHeal?: boolean; + }; + /** + * ManagedNamespaceMetadata controls metadata in the given namespace (if CreateNamespace=true) + */ + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + /** + * Retry controls failed sync retry behavior + */ + retry?: { + /** + * Backoff controls how to backoff on subsequent retries of failed syncs + */ + backoff?: { + /** + * Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") + */ + duration?: string; + /** + * Factor is a factor to multiply the base duration after each failed retry + */ + factor?: number; + /** + * MaxDuration is the maximum amount of time allowed for the backoff strategy + */ + maxDuration?: string; + }; + /** + * Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed. + */ + limit?: number; + }; + /** + * Options allow you to specify whole app sync-options + */ + syncOptions?: string[]; + }; + }; + /** + * ApplicationStatus contains status information for the application + */ + status?: { + /** + * Conditions is a list of currently observed application conditions + */ + conditions?: { + /** + * LastTransitionTime is the time the condition was last observed + */ + lastTransitionTime?: string; + /** + * Message contains human-readable message indicating details about condition + */ + message: string; + /** + * Type is an application condition type + */ + type: string; + }[]; + /** + * ControllerNamespace indicates the namespace in which the application controller is located + */ + controllerNamespace?: string; + /** + * Health contains information about the application's current health status + */ + health?: { + /** + * LastTransitionTime is the time the HealthStatus was set or updated + */ + lastTransitionTime?: string; + /** + * Message is a human-readable informational message describing the health status + */ + message?: string; + /** + * Status holds the status code of the application or resource + */ + status?: string; + }; + /** + * History contains information about the application's sync history + */ + history?: { + /** + * DeployStartedAt holds the time the sync operation started + */ + deployStartedAt?: string; + /** + * DeployedAt holds the time the sync operation completed + */ + deployedAt: string; + /** + * ID is an auto incrementing identifier of the RevisionHistory + */ + id: number; + /** + * InitiatedBy contains information about who initiated the operations + */ + initiatedBy?: { + /** + * Automated is set to true if operation was initiated automatically by the application controller. + */ + automated?: boolean; + /** + * Username contains the name of a user who started operation + */ + username?: string; + }; + /** + * Revision holds the revision the sync was performed against + */ + revision?: string; + /** + * Revisions holds the revision of each source in sources field the sync was performed against + */ + revisions?: string[]; + /** + * Source is a reference to the application source used for the sync operation + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * Sources is a reference to the application sources used for the sync operation + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + }[]; + /** + * ObservedAt indicates when the application state was updated without querying latest git state + * Deprecated: controller no longer updates ObservedAt field + */ + observedAt?: string; + /** + * OperationState contains information about any ongoing operations, such as a sync + */ + operationState?: { + /** + * FinishedAt contains time of operation completion + */ + finishedAt?: string; + /** + * Message holds any pertinent messages when attempting to perform operation (typically errors). + */ + message?: string; + /** + * Operation is the original requested operation + */ + operation: { + /** + * Info is a list of informational items for this operation + */ + info?: { + name: string; + value: string; + }[]; + /** + * InitiatedBy contains information about who initiated the operations + */ + initiatedBy?: { + /** + * Automated is set to true if operation was initiated automatically by the application controller. + */ + automated?: boolean; + /** + * Username contains the name of a user who started operation + */ + username?: string; + }; + /** + * Retry controls the strategy to apply if a sync fails + */ + retry?: { + /** + * Backoff controls how to backoff on subsequent retries of failed syncs + */ + backoff?: { + /** + * Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") + */ + duration?: string; + /** + * Factor is a factor to multiply the base duration after each failed retry + */ + factor?: number; + /** + * MaxDuration is the maximum amount of time allowed for the backoff strategy + */ + maxDuration?: string; + }; + /** + * Limit is the maximum number of attempts for retrying a failed sync. If set to 0, no retries will be performed. + */ + limit?: number; + }; + /** + * Sync contains parameters for the operation + */ + sync?: { + /** + * SelfHealAttemptsCount contains the number of auto-heal attempts + */ + autoHealAttemptsCount?: number; + /** + * DryRun specifies to perform a `kubectl apply --dry-run` without actually performing the sync + */ + dryRun?: boolean; + /** + * Manifests is an optional field that overrides sync source with a local directory for development + */ + manifests?: string[]; + /** + * Prune specifies to delete resources from the cluster that are no longer tracked in git + */ + prune?: boolean; + /** + * Resources describes which resources shall be part of the sync + */ + resources?: { + group?: string; + kind: string; + name: string; + namespace?: string; + }[]; + /** + * Revision is the revision (Git) or chart version (Helm) which to sync the application to + * If omitted, will use the revision specified in app spec. + */ + revision?: string; + /** + * Revisions is the list of revision (Git) or chart version (Helm) which to sync each source in sources field for the application to + * If omitted, will use the revision specified in app spec. + */ + revisions?: string[]; + /** + * Source overrides the source definition set in the application. + * This is typically set in a Rollback operation and is nil during a Sync operation + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * Sources overrides the source definition set in the application. + * This is typically set in a Rollback operation and is nil during a Sync operation + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + /** + * SyncOptions provide per-sync sync-options, e.g. Validate=false + */ + syncOptions?: string[]; + /** + * SyncStrategy describes how to perform the sync + */ + syncStrategy?: { + /** + * Apply will perform a `kubectl apply` to perform the sync. + */ + apply?: { + /** + * Force indicates whether or not to supply the --force flag to `kubectl apply`. + * The --force flag deletes and re-create the resource, when PATCH encounters conflict and has + * retried for 5 times. + */ + force?: boolean; + }; + /** + * Hook will submit any referenced resources to perform the sync. This is the default strategy + */ + hook?: { + /** + * Force indicates whether or not to supply the --force flag to `kubectl apply`. + * The --force flag deletes and re-create the resource, when PATCH encounters conflict and has + * retried for 5 times. + */ + force?: boolean; + }; + }; + }; + }; + /** + * Phase is the current phase of the operation + */ + phase: string; + /** + * RetryCount contains time of operation retries + */ + retryCount?: number; + /** + * StartedAt contains time of operation start + */ + startedAt: string; + /** + * SyncResult is the result of a Sync operation + */ + syncResult?: { + /** + * ManagedNamespaceMetadata contains the current sync state of managed namespace metadata + */ + managedNamespaceMetadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + /** + * Resources contains a list of sync result items for each individual resource in a sync operation + */ + resources?: { + /** + * Group specifies the API group of the resource + */ + group: string; + /** + * HookPhase contains the state of any operation associated with this resource OR hook + * This can also contain values for non-hook resources. + */ + hookPhase?: string; + /** + * HookType specifies the type of the hook. Empty for non-hook resources + */ + hookType?: string; + /** + * Kind specifies the API kind of the resource + */ + kind: string; + /** + * Message contains an informational or error message for the last sync OR operation + */ + message?: string; + /** + * Name specifies the name of the resource + */ + name: string; + /** + * Namespace specifies the target namespace of the resource + */ + namespace: string; + /** + * Status holds the final result of the sync. Will be empty if the resources is yet to be applied/pruned and is always zero-value for hooks + */ + status?: string; + /** + * SyncPhase indicates the particular phase of the sync that this result was acquired in + */ + syncPhase?: string; + /** + * Version specifies the API version of the resource + */ + version: string; + }[]; + /** + * Revision holds the revision this sync operation was performed to + */ + revision: string; + /** + * Revisions holds the revision this sync operation was performed for respective indexed source in sources field + */ + revisions?: string[]; + /** + * Source records the application source information of the sync, used for comparing auto-sync + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * Source records the application source information of the sync, used for comparing auto-sync + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + }; + }; + /** + * ReconciledAt indicates when the application state was reconciled using the latest git version + */ + reconciledAt?: string; + /** + * ResourceHealthSource indicates where the resource health status is stored: inline if not set or appTree + */ + resourceHealthSource?: string; + /** + * Resources is a list of Kubernetes resources managed by this application + */ + resources?: { + /** + * Group represents the API group of the resource (e.g., "apps" for Deployments). + */ + group?: string; + /** + * Health indicates the health status of the resource (e.g., Healthy, Degraded, Progressing). + */ + health?: { + /** + * LastTransitionTime is the time the HealthStatus was set or updated + */ + lastTransitionTime?: string; + /** + * Message is a human-readable informational message describing the health status + */ + message?: string; + /** + * Status holds the status code of the application or resource + */ + status?: string; + }; + /** + * Hook is true if the resource is used as a lifecycle hook in an Argo CD application. + */ + hook?: boolean; + /** + * Kind specifies the type of the resource (e.g., "Deployment", "Service"). + */ + kind?: string; + /** + * Name is the unique name of the resource within the namespace. + */ + name?: string; + /** + * Namespace defines the Kubernetes namespace where the resource is located. + */ + namespace?: string; + /** + * RequiresDeletionConfirmation is true if the resource requires explicit user confirmation before deletion. + */ + requiresDeletionConfirmation?: boolean; + /** + * RequiresPruning is true if the resource needs to be pruned (deleted) as part of synchronization. + */ + requiresPruning?: boolean; + /** + * Status represents the synchronization state of the resource (e.g., Synced, OutOfSync). + */ + status?: string; + /** + * SyncWave determines the order in which resources are applied during a sync operation. + * Lower values are applied first. + */ + syncWave?: number; + /** + * Version indicates the API version of the resource (e.g., "v1", "v1beta1"). + */ + version?: string; + }[]; + /** + * SourceHydrator stores information about the current state of source hydration + */ + sourceHydrator?: { + /** + * CurrentOperation holds the status of the hydrate operation + */ + currentOperation?: { + /** + * DrySHA holds the resolved revision (sha) of the dry source as of the most recent reconciliation + */ + drySHA?: string; + /** + * FinishedAt indicates when the hydrate operation finished + */ + finishedAt?: string; + /** + * HydratedSHA holds the resolved revision (sha) of the hydrated source as of the most recent reconciliation + */ + hydratedSHA?: string; + /** + * Message contains a message describing the current status of the hydrate operation + */ + message: string; + /** + * Phase indicates the status of the hydrate operation + */ + phase: string; + /** + * SourceHydrator holds the hydrator config used for the hydrate operation + */ + sourceHydrator?: { + /** + * DrySource specifies where the dry "don't repeat yourself" manifest source lives. + */ + drySource: { + /** + * Path is a directory path within the Git repository where the manifests are located + */ + path: string; + /** + * RepoURL is the URL to the git repository that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to hydrate + */ + targetRevision: string; + }; + /** + * HydrateTo specifies an optional "staging" location to push hydrated manifests to. An external system would then + * have to move manifests to the SyncSource, e.g. by pull request. + */ + hydrateTo?: { + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + /** + * SyncSource specifies where to sync hydrated manifests from. + */ + syncSource: { + /** + * Path is a directory path within the git repository where hydrated manifests should be committed to and synced + * from. If hydrateTo is set, this is just the path from which hydrated manifests will be synced. + */ + path: string; + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + }; + /** + * StartedAt indicates when the hydrate operation started + */ + startedAt?: string; + }; + /** + * LastSuccessfulOperation holds info about the most recent successful hydration + */ + lastSuccessfulOperation?: { + /** + * DrySHA holds the resolved revision (sha) of the dry source as of the most recent reconciliation + */ + drySHA?: string; + /** + * HydratedSHA holds the resolved revision (sha) of the hydrated source as of the most recent reconciliation + */ + hydratedSHA?: string; + /** + * SourceHydrator holds the hydrator config used for the hydrate operation + */ + sourceHydrator?: { + /** + * DrySource specifies where the dry "don't repeat yourself" manifest source lives. + */ + drySource: { + /** + * Path is a directory path within the Git repository where the manifests are located + */ + path: string; + /** + * RepoURL is the URL to the git repository that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to hydrate + */ + targetRevision: string; + }; + /** + * HydrateTo specifies an optional "staging" location to push hydrated manifests to. An external system would then + * have to move manifests to the SyncSource, e.g. by pull request. + */ + hydrateTo?: { + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + /** + * SyncSource specifies where to sync hydrated manifests from. + */ + syncSource: { + /** + * Path is a directory path within the git repository where hydrated manifests should be committed to and synced + * from. If hydrateTo is set, this is just the path from which hydrated manifests will be synced. + */ + path: string; + /** + * TargetBranch is the branch to which hydrated manifests should be committed + */ + targetBranch: string; + }; + }; + }; + }; + /** + * SourceType specifies the type of this application + */ + sourceType?: string; + /** + * SourceTypes specifies the type of the sources included in the application + */ + sourceTypes?: string[]; + /** + * Summary contains a list of URLs and container images used by this application + */ + summary?: { + /** + * ExternalURLs holds all external URLs of application child resources. + */ + externalURLs?: string[]; + /** + * Images holds all images of application child resources. + */ + images?: string[]; + }; + /** + * Sync contains information about the application's current sync status + */ + sync?: { + /** + * ComparedTo contains information about what has been compared + */ + comparedTo?: { + /** + * Destination is a reference to the application's destination used for comparison + */ + destination: { + /** + * 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; + }; + /** + * IgnoreDifferences is a reference to the application's ignored differences used for comparison + */ + ignoreDifferences?: { + group?: string; + jqPathExpressions?: string[]; + jsonPointers?: string[]; + kind: string; + /** + * ManagedFieldsManagers is a list of trusted managers. Fields mutated by those managers will take precedence over the + * desired state defined in the SCM and won't be displayed in diffs + */ + managedFieldsManagers?: string[]; + name?: string; + namespace?: string; + }[]; + /** + * Source is a reference to the application's source used for comparison + */ + source?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }; + /** + * Sources is a reference to the application's multiple sources used for comparison + */ + sources?: { + /** + * Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + */ + chart?: string; + /** + * Directory holds path/directory specific options + */ + directory?: { + /** + * Exclude contains a glob pattern to match paths against that should be explicitly excluded from being used during manifest generation + */ + exclude?: string; + /** + * Include contains a glob pattern to match paths against that should be explicitly included during manifest generation + */ + include?: string; + /** + * Jsonnet holds options specific to Jsonnet + */ + jsonnet?: { + /** + * ExtVars is a list of Jsonnet External Variables + */ + extVars?: { + code?: boolean; + name: string; + value: string; + }[]; + /** + * Additional library search dirs + */ + libs?: string[]; + /** + * TLAS is a list of Jsonnet Top-level Arguments + */ + tlas?: { + code?: boolean; + name: string; + value: string; + }[]; + }; + /** + * Recurse specifies whether to scan a directory recursively for manifests + */ + recurse?: boolean; + }; + /** + * Helm holds helm specific options + */ + helm?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * FileParameters are file parameters to the helm template + */ + fileParameters?: { + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Path is the path to the file containing the values for the Helm parameter + */ + path?: string; + }[]; + /** + * IgnoreMissingValueFiles prevents helm template from failing when valueFiles do not exist locally by not appending them to helm template --values + */ + ignoreMissingValueFiles?: boolean; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * Namespace is an optional namespace to template with. If left empty, defaults to the app's destination namespace. + */ + namespace?: string; + /** + * Parameters is a list of Helm parameters which are passed to the helm template command upon manifest generation + */ + parameters?: { + /** + * ForceString determines whether to tell Helm to interpret booleans and numbers as strings + */ + forceString?: boolean; + /** + * Name is the name of the Helm parameter + */ + name?: string; + /** + * Value is the value for the Helm parameter + */ + value?: string; + }[]; + /** + * PassCredentials pass credentials to all domains (Helm's --pass-credentials) + */ + passCredentials?: boolean; + /** + * ReleaseName is the Helm release name to use. If omitted it will use the application name + */ + releaseName?: string; + /** + * SkipCrds skips custom resource definition installation step (Helm's --skip-crds) + */ + skipCrds?: boolean; + /** + * SkipSchemaValidation skips JSON schema validation (Helm's --skip-schema-validation) + */ + skipSchemaValidation?: boolean; + /** + * SkipTests skips test manifest installation step (Helm's --skip-tests). + */ + skipTests?: boolean; + /** + * ValuesFiles is a list of Helm value files to use when generating a template + */ + valueFiles?: string[]; + /** + * Values specifies Helm values to be passed to helm template, typically defined as a block. ValuesObject takes precedence over Values, so use one or the other. + */ + values?: string; + /** + * ValuesObject specifies Helm values to be passed to helm template, defined as a map. This takes precedence over Values. + */ + valuesObject?: {}; + /** + * Version is the Helm version to use for templating ("3") + */ + version?: string; + }; + /** + * Kustomize holds kustomize specific options + */ + kustomize?: { + /** + * APIVersions specifies the Kubernetes resource API versions to pass to Helm when templating manifests. By default, + * Argo CD uses the API versions of the target cluster. The format is [group/]version/kind. + */ + apiVersions?: string[]; + /** + * CommonAnnotations is a list of additional annotations to add to rendered manifests + */ + commonAnnotations?: { + [k: string]: string; + }; + /** + * CommonAnnotationsEnvsubst specifies whether to apply env variables substitution for annotation values + */ + commonAnnotationsEnvsubst?: boolean; + /** + * CommonLabels is a list of additional labels to add to rendered manifests + */ + commonLabels?: { + [k: string]: string; + }; + /** + * Components specifies a list of kustomize components to add to the kustomization before building + */ + components?: string[]; + /** + * ForceCommonAnnotations specifies whether to force applying common annotations to resources for Kustomize apps + */ + forceCommonAnnotations?: boolean; + /** + * ForceCommonLabels specifies whether to force applying common labels to resources for Kustomize apps + */ + forceCommonLabels?: boolean; + /** + * IgnoreMissingComponents prevents kustomize from failing when components do not exist locally by not appending them to kustomization file + */ + ignoreMissingComponents?: boolean; + /** + * Images is a list of Kustomize image override specifications + */ + images?: string[]; + /** + * KubeVersion specifies the Kubernetes API version to pass to Helm when templating manifests. By default, Argo CD + * uses the Kubernetes version of the target cluster. + */ + kubeVersion?: string; + /** + * LabelIncludeTemplates specifies whether to apply common labels to resource templates or not + */ + labelIncludeTemplates?: boolean; + /** + * LabelWithoutSelector specifies whether to apply common labels to resource selectors or not + */ + labelWithoutSelector?: boolean; + /** + * NamePrefix is a prefix appended to resources for Kustomize apps + */ + namePrefix?: string; + /** + * NameSuffix is a suffix appended to resources for Kustomize apps + */ + nameSuffix?: string; + /** + * Namespace sets the namespace that Kustomize adds to all resources + */ + namespace?: string; + /** + * Patches is a list of Kustomize patches + */ + patches?: { + options?: { + [k: string]: boolean; + }; + patch?: string; + path?: string; + target?: { + annotationSelector?: string; + group?: string; + kind?: string; + labelSelector?: string; + name?: string; + namespace?: string; + version?: string; + }; + }[]; + /** + * Replicas is a list of Kustomize Replicas override specifications + */ + replicas?: { + /** + * Number of replicas + */ + count: number | string; + /** + * Name of Deployment or StatefulSet + */ + name: string; + }[]; + /** + * Version controls which version of Kustomize to use for rendering manifests + */ + version?: string; + }; + /** + * Name is used to refer to a source and is displayed in the UI. It is used in multi-source Applications. + */ + name?: string; + /** + * Path is a directory path within the Git repository, and is only valid for applications sourced from Git. + */ + path?: string; + /** + * Plugin holds config management plugin specific options + */ + plugin?: { + /** + * Env is a list of environment variable entries + */ + env?: { + /** + * Name is the name of the variable, usually expressed in uppercase + */ + name: string; + /** + * Value is the value of the variable + */ + value: string; + }[]; + name?: string; + parameters?: { + /** + * Array is the value of an array type parameter. + */ + array?: string[]; + /** + * Map is the value of a map type parameter. + */ + map?: { + [k: string]: string; + }; + /** + * Name is the name identifying a parameter. + */ + name?: string; + /** + * String_ is the value of a string type parameter. + */ + string?: string; + }[]; + }; + /** + * Ref is reference to another source within sources field. This field will not be used if used with a `source` tag. + */ + ref?: string; + /** + * RepoURL is the URL to the repository (Git or Helm) that contains the application manifests + */ + repoURL: string; + /** + * TargetRevision defines the revision of the source to sync the application to. + * In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. + * In case of Helm, this is a semver tag for the Chart's version. + */ + targetRevision?: string; + }[]; + }; + /** + * Revision contains information about the revision the comparison has been performed to + */ + revision?: string; + /** + * Revisions contains information about the revisions of multiple sources the comparison has been performed to + */ + revisions?: string[]; + /** + * Status is the sync state of the comparison + */ + status: string; + }; + }; +} diff --git a/src/__generated__/resources/K8SAuthentikClientV1.json b/src/__generated__/resources/K8SAuthentikClientV1.json new file mode 100644 index 0000000..3a54902 --- /dev/null +++ b/src/__generated__/resources/K8SAuthentikClientV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAuthentikClientV1.ts b/src/__generated__/resources/K8SAuthentikClientV1.ts new file mode 100644 index 0000000..b08c10a --- /dev/null +++ b/src/__generated__/resources/K8SAuthentikClientV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SAuthentikServerV1.json b/src/__generated__/resources/K8SAuthentikServerV1.json new file mode 100644 index 0000000..19d6a66 --- /dev/null +++ b/src/__generated__/resources/K8SAuthentikServerV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAuthentikServerV1.ts b/src/__generated__/resources/K8SAuthentikServerV1.ts new file mode 100644 index 0000000..a8a74f4 --- /dev/null +++ b/src/__generated__/resources/K8SAuthentikServerV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SAuthorizationPolicyV1.json b/src/__generated__/resources/K8SAuthorizationPolicyV1.json new file mode 100644 index 0000000..7c49291 --- /dev/null +++ b/src/__generated__/resources/K8SAuthorizationPolicyV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAuthorizationPolicyV1.ts b/src/__generated__/resources/K8SAuthorizationPolicyV1.ts new file mode 100644 index 0000000..4e8ecf3 --- /dev/null +++ b/src/__generated__/resources/K8SAuthorizationPolicyV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.json b/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.json new file mode 100644 index 0000000..7c49291 --- /dev/null +++ b/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.ts b/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.ts new file mode 100644 index 0000000..f6d1928 --- /dev/null +++ b/src/__generated__/resources/K8SAuthorizationPolicyV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SCertificateRequestV1.json b/src/__generated__/resources/K8SCertificateRequestV1.json new file mode 100644 index 0000000..fdf41ca --- /dev/null +++ b/src/__generated__/resources/K8SCertificateRequestV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SCertificateRequestV1.ts b/src/__generated__/resources/K8SCertificateRequestV1.ts new file mode 100644 index 0000000..9fd793f --- /dev/null +++ b/src/__generated__/resources/K8SCertificateRequestV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SCertificateV1.json b/src/__generated__/resources/K8SCertificateV1.json new file mode 100644 index 0000000..3baab7c --- /dev/null +++ b/src/__generated__/resources/K8SCertificateV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SCertificateV1.ts b/src/__generated__/resources/K8SCertificateV1.ts new file mode 100644 index 0000000..0aac21f --- /dev/null +++ b/src/__generated__/resources/K8SCertificateV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SChallengeV1.json b/src/__generated__/resources/K8SChallengeV1.json new file mode 100644 index 0000000..1ba3cb8 --- /dev/null +++ b/src/__generated__/resources/K8SChallengeV1.json @@ -0,0 +1,2614 @@ +{ + "description": "Challenge is a type to represent a Challenge request 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": { + "authorizationURL": { + "description": "The URL to the ACME Authorization resource that this\nchallenge is a part of.", + "type": "string" + }, + "dnsName": { + "description": "dnsName is the identifier that this challenge is for, e.g., example.com.\nIf the requested DNSName is a 'wildcard', this field MUST be set to the\nnon-wildcard domain, e.g., for `*.example.com`, it must be `example.com`.", + "type": "string" + }, + "issuerRef": { + "description": "References a properly configured ACME-type Issuer which should\nbe used to create this Challenge.\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\nChallenge 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" + }, + "key": { + "description": "The ACME challenge key for this challenge\nFor HTTP01 challenges, this is the value that must be responded with to\ncomplete the HTTP01 challenge in the format:\n`.`.\nFor DNS01 challenges, this is the base64 encoded SHA256 sum of the\n`.`\ntext that must be set as the TXT record content.", + "type": "string" + }, + "solver": { + "description": "Contains the domain solving configuration that should be used to\nsolve this challenge resource.", + "properties": { + "dns01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the DNS01 challenge flow.", + "properties": { + "acmeDNS": { + "description": "Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage\nDNS01 challenge records.", + "properties": { + "accountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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" + }, + "host": { + "type": "string" + } + }, + "required": [ + "accountSecretRef", + "host" + ], + "type": "object" + }, + "akamai": { + "description": "Use the Akamai DNS zone management API to manage DNS01 challenge records.", + "properties": { + "accessTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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" + }, + "clientSecretSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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" + }, + "clientTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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" + }, + "serviceConsumerDomain": { + "type": "string" + } + }, + "required": [ + "accessTokenSecretRef", + "clientSecretSecretRef", + "clientTokenSecretRef", + "serviceConsumerDomain" + ], + "type": "object" + }, + "azureDNS": { + "description": "Use the Microsoft Azure DNS API to manage DNS01 challenge records.", + "properties": { + "clientID": { + "description": "Auth: Azure Service Principal:\nThe ClientID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientSecret and TenantID must also be set.", + "type": "string" + }, + "clientSecretSecretRef": { + "description": "Auth: Azure Service Principal:\nA reference to a Secret containing the password associated with the Service Principal.\nIf set, ClientID and TenantID must also be set.", + "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" + }, + "environment": { + "description": "name of the Azure environment (default AzurePublicCloud)", + "_enum": [ + "AzurePublicCloud", + "AzureChinaCloud", + "AzureGermanCloud", + "AzureUSGovernmentCloud" + ], + "type": "string" + }, + "hostedZoneName": { + "description": "name of the DNS zone that should be used", + "type": "string" + }, + "managedIdentity": { + "description": "Auth: Azure Workload Identity or Azure Managed Service Identity:\nSettings to enable Azure Workload Identity or Azure Managed Service Identity\nIf set, ClientID, ClientSecret and TenantID must not be set.", + "properties": { + "clientID": { + "description": "client ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + }, + "resourceID": { + "description": "resource ID of the managed identity, cannot be used at the same time as clientID\nCannot be used for Azure Managed Service Identity", + "type": "string" + }, + "tenantID": { + "description": "tenant ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + } + }, + "type": "object" + }, + "resourceGroupName": { + "description": "resource group the DNS zone is located in", + "type": "string" + }, + "subscriptionID": { + "description": "ID of the Azure subscription", + "type": "string" + }, + "tenantID": { + "description": "Auth: Azure Service Principal:\nThe TenantID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientID and ClientSecret must also be set.", + "type": "string" + } + }, + "required": [ + "resourceGroupName", + "subscriptionID" + ], + "type": "object" + }, + "cloudDNS": { + "description": "Use the Google Cloud DNS API to manage DNS01 challenge records.", + "properties": { + "hostedZoneName": { + "description": "HostedZoneName is an optional field that tells cert-manager in which\nCloud DNS zone the challenge record has to be created.\nIf left empty cert-manager will automatically choose a zone.", + "type": "string" + }, + "project": { + "type": "string" + }, + "serviceAccountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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": [ + "project" + ], + "type": "object" + }, + "cloudflare": { + "description": "Use the Cloudflare API to manage DNS01 challenge records.", + "properties": { + "apiKeySecretRef": { + "description": "API key to use to authenticate with Cloudflare.\nNote: using an API token to authenticate is now the recommended method\nas it allows greater control of permissions.", + "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" + }, + "apiTokenSecretRef": { + "description": "API token used to authenticate with Cloudflare.", + "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" + }, + "email": { + "description": "Email of the account, only required when using API key based authentication.", + "type": "string" + } + }, + "type": "object" + }, + "cnameStrategy": { + "description": "CNAMEStrategy configures how the DNS01 provider should handle CNAME\nrecords when found in DNS zones.", + "_enum": [ + "None", + "Follow" + ], + "type": "string" + }, + "digitalocean": { + "description": "Use the DigitalOcean DNS API to manage DNS01 challenge records.", + "properties": { + "tokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "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": [ + "tokenSecretRef" + ], + "type": "object" + }, + "rfc2136": { + "description": "Use RFC2136 (\"Dynamic Updates in the Domain Name System\") (https://datatracker.ietf.org/doc/rfc2136/)\nto manage DNS01 challenge records.", + "properties": { + "nameserver": { + "description": "The IP address or hostname of an authoritative DNS server supporting\nRFC2136 in the form host:port. If the host is an IPv6 address it must be\nenclosed in square brackets (e.g [2001:db8::1]) ; port is optional.\nThis field is required.", + "type": "string" + }, + "tsigAlgorithm": { + "description": "The TSIG Algorithm configured in the DNS supporting RFC2136. Used only\nwhen ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined.\nSupported values are (case-insensitive): ``HMACMD5`` (default),\n``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.", + "type": "string" + }, + "tsigKeyName": { + "description": "The TSIG Key name configured in the DNS.\nIf ``tsigSecretSecretRef`` is defined, this field is required.", + "type": "string" + }, + "tsigSecretSecretRef": { + "description": "The name of the secret containing the TSIG value.\nIf ``tsigKeyName`` is defined, this field is required.", + "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": [ + "nameserver" + ], + "type": "object" + }, + "route53": { + "description": "Use the AWS Route53 API to manage DNS01 challenge records.", + "properties": { + "accessKeyID": { + "description": "The AccessKeyID is used for authentication.\nCannot be set when SecretAccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "string" + }, + "accessKeyIDSecretRef": { + "description": "The SecretAccessKey is used for authentication. If set, pull the AWS\naccess key ID from a key within a Kubernetes Secret.\nCannot be set when AccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "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" + }, + "auth": { + "description": "Auth configures how cert-manager authenticates.", + "properties": { + "kubernetes": { + "description": "Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity\nby passing a bound ServiceAccount token.", + "properties": { + "serviceAccountRef": { + "description": "A reference to a service account that will be used to request a bound\ntoken (also known as \"projected token\"). To use this field, you must\nconfigure an RBAC rule to let cert-manager request a token.", + "properties": { + "audiences": { + "description": "TokenAudiences is an optional list of audiences to include in the\ntoken passed to AWS. The default token consisting of the issuer's namespace\nand name is always included.\nIf unset the audience defaults to `sts.amazonaws.com`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Name of the ServiceAccount used to request a token.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + "required": [ + "serviceAccountRef" + ], + "type": "object" + } + }, + "required": [ + "kubernetes" + ], + "type": "object" + }, + "hostedZoneID": { + "description": "If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call.", + "type": "string" + }, + "region": { + "description": "Override the AWS region.\n\nRoute53 is a global service and does not have regional endpoints but the\nregion specified here (or via environment variables) is used as a hint to\nhelp compute the correct AWS credential scope and partition when it\nconnects to Route53. See:\n- [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html)\n- [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html)\n\nIf you omit this region field, cert-manager will use the region from\nAWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set\nin the cert-manager controller Pod.\n\nThe `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook).\nIn this case this `region` field value is ignored.\n\nThe `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent),\nIn this case this `region` field value is ignored.", + "type": "string" + }, + "role": { + "description": "Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey\nor the inferred credentials from environment variables, shared credentials file or AWS Instance metadata", + "type": "string" + }, + "secretAccessKeySecretRef": { + "description": "The SecretAccessKey is used for authentication.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "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" + } + }, + "type": "object" + }, + "webhook": { + "description": "Configure an external webhook based DNS01 challenge solver to manage\nDNS01 challenge records.", + "properties": { + "config": { + "description": "Additional configuration that should be passed to the webhook apiserver\nwhen challenges are processed.\nThis can contain arbitrary JSON data.\nSecret values should not be specified in this stanza.\nIf secret values are needed (e.g., credentials for a DNS service), you\nshould use a SecretKeySelector to reference a Secret resource.\nFor details on the schema of this field, consult the webhook provider\nimplementation's documentation.", + "x_kubernetes_preserve_unknown_fields": true + }, + "groupName": { + "description": "The API group name that should be used when POSTing ChallengePayload\nresources to the webhook apiserver.\nThis should be the same as the GroupName specified in the webhook\nprovider implementation.", + "type": "string" + }, + "solverName": { + "description": "The name of the solver to use, as defined in the webhook provider\nimplementation.\nThis will typically be the name of the provider, e.g., 'cloudflare'.", + "type": "string" + } + }, + "required": [ + "groupName", + "solverName" + ], + "type": "object" + } + }, + "type": "object" + }, + "http01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the HTTP01 challenge flow.\nIt is not possible to obtain certificates for wildcard domain names\n(e.g., `*.example.com`) using the HTTP01 challenge mechanism.", + "properties": { + "gatewayHTTPRoute": { + "description": "The Gateway API is a sig-network community API that models service networking\nin Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will\ncreate HTTPRoutes with the specified labels in the same namespace as the challenge.\nThis solver is experimental, and fields / behaviour may change in the future.", + "properties": { + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Custom labels that will be applied to HTTPRoutes created by cert-manager\nwhile solving HTTP-01 challenges.", + "type": "object" + }, + "parentRefs": { + "description": "When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute.\ncert-manager needs to know which parentRefs should be used when creating\nthe HTTPRoute. Usually, the parentRef references a Gateway. See:\nhttps://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways", + "items": { + "description": "ParentReference identifies an API object (usually a Gateway) that can be considered\na parent of this resource (usually a route). There are two kinds of parent resources\nwith \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nThis API may be extended in the future to support additional kinds of parent\nresources.\n\nThe API object must be valid in the cluster; the Group and Kind must\nbe registered in the cluster for this reference to be valid.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "group": { + "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core", + "type": "string", + "default": "gateway.networking.k8s.io", + "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 referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.", + "type": "string", + "default": "Gateway", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$" + }, + "name": { + "description": "Name is the name of the referent.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1 + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, this refers\nto the local namespace of the Route.\n\nNote that there are specific rules for ParentRefs which cross namespace\nboundaries. Cross-namespace references are only valid if they are explicitly\nallowed by something in the namespace they are referring to. For example:\nGateway has the AllowedRoutes field, and ReferenceGrant provides a\ngeneric way to enable any other kind of cross-namespace reference.\n\n\nParentRefs from a Route to a Service in the same namespace are \"producer\"\nroutes, which apply default routing rules to inbound connections from\nany namespace to the Service.\n\nParentRefs from a Route to a Service in a different namespace are\n\"consumer\" routes, and these routing rules are only applied to outbound\nconnections originating from the same namespace as the Route, for which\nthe intended destination of the connections are a Service targeted as a\nParentRef of the Route.\n\n\nSupport: Core", + "type": "string", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "port": { + "description": "Port is the network port this Route targets. It can be interpreted\ndifferently based on the type of parent resource.\n\nWhen the parent resource is a Gateway, this targets all listeners\nlistening on the specified port that also support this kind of Route(and\nselect this Route). It's not recommended to set `Port` unless the\nnetworking behaviors specified in a Route must apply to a specific port\nas opposed to a listener(s) whose port(s) may be changed. When both Port\nand SectionName are specified, the name and port of the selected listener\nmust match both specified values.\n\n\nWhen the parent resource is a Service, this targets a specific port in the\nService spec. When both Port (experimental) and SectionName are specified,\nthe name and port of the selected port must match both specified values.\n\n\nImplementations MAY choose to support other parent resources.\nImplementations supporting other types of parent resources MUST clearly\ndocument how/if Port is interpreted.\n\nFor the purpose of status, an attachment is considered successful as\nlong as the parent resource accepts it partially. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment\nfrom the referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route,\nthe Route MUST be considered detached from the Gateway.\n\nSupport: Extended", + "type": "integer", + "format": "int32", + "maximum": 65535, + "minimum": 1 + }, + "sectionName": { + "description": "SectionName is the name of a section within the target resource. In the\nfollowing resources, SectionName is interpreted as the following:\n\n* Gateway: Listener name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n* Service: Port name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n\nImplementations MAY choose to support attaching Routes to other resources.\nIf that is the case, they MUST clearly document how SectionName is\ninterpreted.\n\nWhen unspecified (empty string), this will reference the entire resource.\nFor the purpose of status, an attachment is considered successful if at\nleast one section in the parent resource accepts it. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment from\nthe referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route, the\nRoute MUST be considered detached from the Gateway.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$" + } + } + }, + "type": "array" + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object" + } + }, + "type": "object" + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x_kubernetes_map_type": "atomic" + } + }, + "type": "object" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "type": "object" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "type": "array" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object" + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "items": { + "type": "integer", + "format": "int64" + }, + "type": "array" + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + }, + "type": "object" + }, + "ingress": { + "description": "The ingress based HTTP01 challenge solver will solve challenges by\ncreating or modifying Ingress resources in order to route requests for\n'/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are\nprovisioned by cert-manager for each Challenge to be completed.", + "properties": { + "class": { + "description": "This field configures the annotation `kubernetes.io/ingress.class` when\ncreating Ingress resources to solve ACME challenges that use this\nchallenge solver. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "ingressClassName": { + "description": "This field configures the field `ingressClassName` on the created Ingress\nresources used to solve ACME challenges that use this challenge solver.\nThis is the recommended way of configuring the ingress class. Only one of\n`class`, `name` or `ingressClassName` may be specified.", + "type": "string" + }, + "ingressTemplate": { + "description": "Optional ingress template used to configure the ACME challenge solver\ningress used for HTTP01 challenges.", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the ingress used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations that should be added to the created ACME HTTP01 solver ingress.", + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels that should be added to the created ACME HTTP01 solver ingress.", + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "description": "The name of the ingress resource that should have ACME challenge solving\nroutes inserted into it in order to solve HTTP01 challenges.\nThis is typically used in conjunction with ingress controllers like\ningress-gce, which maintains a 1:1 mapping between external IPs and\ningress resources. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object" + } + }, + "type": "object" + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x_kubernetes_map_type": "atomic" + } + }, + "type": "object" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "type": "object" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_type": "atomic" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "type": "array" + }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object" + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + }, + "type": "object" + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "items": { + "type": "integer", + "format": "int64" + }, + "type": "array" + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "type": "array" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "selector": { + "description": "Selector selects a set of DNSNames on the Certificate resource that\nshould be solved using this challenge solver.\nIf not specified, the solver will be treated as the 'default' solver\nwith the lowest priority, i.e. if any other solver has a more specific\nmatch, it will be used instead.", + "properties": { + "dnsNames": { + "description": "List of DNSNames that this solver will be used to solve.\nIf specified and a match is found, a dnsNames selector will take\nprecedence over a dnsZones selector.\nIf multiple solvers match with the same dnsNames value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "items": { + "type": "string" + }, + "type": "array" + }, + "dnsZones": { + "description": "List of DNSZones that this solver will be used to solve.\nThe most specific DNS zone match specified here will take precedence\nover other DNS zone matches, so a solver specifying sys.example.com\nwill be selected over one specifying example.com for the domain\nwww.sys.example.com.\nIf multiple solvers match with the same dnsZones value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "items": { + "type": "string" + }, + "type": "array" + }, + "matchLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "A label selector that is used to refine the set of certificate's that\nthis challenge solver will apply to.", + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "token": { + "description": "The ACME challenge token for this challenge.\nThis is the raw value returned from the ACME server.", + "type": "string" + }, + "type": { + "description": "The type of ACME challenge this resource represents.\nOne of \"HTTP-01\" or \"DNS-01\".", + "_enum": [ + "HTTP-01", + "DNS-01" + ], + "type": "string" + }, + "url": { + "description": "The URL of the ACME Challenge resource for this challenge.\nThis can be used to lookup details about the status of this challenge.", + "type": "string" + }, + "wildcard": { + "description": "wildcard will be true if this challenge is for a wildcard identifier,\nfor example '*.example.com'.", + "type": "boolean" + } + }, + "required": [ + "authorizationURL", + "dnsName", + "issuerRef", + "key", + "solver", + "token", + "type", + "url" + ], + "type": "object" + }, + "status": { + "properties": { + "presented": { + "description": "presented will be set to true if the challenge values for this challenge\nare currently 'presented'.\nThis *does not* imply the self check is passing. Only that the values\nhave been 'submitted' for the appropriate challenge mechanism (i.e. the\nDNS01 TXT record has been presented, or the HTTP01 configuration has been\nconfigured).", + "type": "boolean" + }, + "processing": { + "description": "Used to denote whether this challenge should be processed or not.\nThis field will only be set to true by the 'scheduling' component.\nIt will only be set to false by the 'challenges' controller, after the\nchallenge has reached a final state or timed out.\nIf this field is set to false, the challenge controller will not take\nany more action.", + "type": "boolean" + }, + "reason": { + "description": "Contains human readable information on why the Challenge is in the\ncurrent state.", + "type": "string" + }, + "state": { + "description": "Contains the current 'state' of the challenge.\nIf not set, the state of the challenge is unknown.", + "_enum": [ + "valid", + "ready", + "pending", + "processing", + "invalid", + "expired", + "errored" + ], + "type": "string" + } + }, + "type": "object" + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SChallengeV1.ts b/src/__generated__/resources/K8SChallengeV1.ts new file mode 100644 index 0000000..eb2c3d5 --- /dev/null +++ b/src/__generated__/resources/K8SChallengeV1.ts @@ -0,0 +1,2590 @@ +/* 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. + */ + +/** + * Challenge is a type to represent a Challenge request with an ACME server + */ +export interface K8SChallengeV1 { + /** + * 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: { + /** + * The URL to the ACME Authorization resource that this + * challenge is a part of. + */ + authorizationURL: string; + /** + * dnsName is the identifier that this challenge is for, e.g., example.com. + * If the requested DNSName is a 'wildcard', this field MUST be set to the + * non-wildcard domain, e.g., for `*.example.com`, it must be `example.com`. + */ + dnsName: string; + /** + * References a properly configured ACME-type Issuer which should + * be used to create this Challenge. + * 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 + * Challenge 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; + }; + /** + * The ACME challenge key for this challenge + * For HTTP01 challenges, this is the value that must be responded with to + * complete the HTTP01 challenge in the format: + * `.`. + * For DNS01 challenges, this is the base64 encoded SHA256 sum of the + * `.` + * text that must be set as the TXT record content. + */ + key: string; + /** + * Contains the domain solving configuration that should be used to + * solve this challenge resource. + */ + solver: { + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the DNS01 challenge flow. + */ + dns01?: { + /** + * Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage + * DNS01 challenge records. + */ + acmeDNS?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accountSecretRef: { + /** + * 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; + }; + host: string; + }; + /** + * Use the Akamai DNS zone management API to manage DNS01 challenge records. + */ + akamai?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accessTokenSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientSecretSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientTokenSecretRef: { + /** + * 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; + }; + serviceConsumerDomain: string; + }; + /** + * Use the Microsoft Azure DNS API to manage DNS01 challenge records. + */ + azureDNS?: { + /** + * Auth: Azure Service Principal: + * The ClientID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientSecret and TenantID must also be set. + */ + clientID?: string; + /** + * Auth: Azure Service Principal: + * A reference to a Secret containing the password associated with the Service Principal. + * If set, ClientID and TenantID must also be set. + */ + clientSecretSecretRef?: { + /** + * 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; + }; + /** + * name of the Azure environment (default AzurePublicCloud) + */ + environment?: string; + /** + * name of the DNS zone that should be used + */ + hostedZoneName?: string; + /** + * Auth: Azure Workload Identity or Azure Managed Service Identity: + * Settings to enable Azure Workload Identity or Azure Managed Service Identity + * If set, ClientID, ClientSecret and TenantID must not be set. + */ + managedIdentity?: { + /** + * client ID of the managed identity, cannot be used at the same time as resourceID + */ + clientID?: string; + /** + * resource ID of the managed identity, cannot be used at the same time as clientID + * Cannot be used for Azure Managed Service Identity + */ + resourceID?: string; + /** + * tenant ID of the managed identity, cannot be used at the same time as resourceID + */ + tenantID?: string; + }; + /** + * resource group the DNS zone is located in + */ + resourceGroupName: string; + /** + * ID of the Azure subscription + */ + subscriptionID: string; + /** + * Auth: Azure Service Principal: + * The TenantID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientID and ClientSecret must also be set. + */ + tenantID?: string; + }; + /** + * Use the Google Cloud DNS API to manage DNS01 challenge records. + */ + cloudDNS?: { + /** + * HostedZoneName is an optional field that tells cert-manager in which + * Cloud DNS zone the challenge record has to be created. + * If left empty cert-manager will automatically choose a zone. + */ + hostedZoneName?: string; + project: string; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + serviceAccountSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the Cloudflare API to manage DNS01 challenge records. + */ + cloudflare?: { + /** + * API key to use to authenticate with Cloudflare. + * Note: using an API token to authenticate is now the recommended method + * as it allows greater control of permissions. + */ + apiKeySecretRef?: { + /** + * 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; + }; + /** + * API token used to authenticate with Cloudflare. + */ + apiTokenSecretRef?: { + /** + * 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; + }; + /** + * Email of the account, only required when using API key based authentication. + */ + email?: string; + }; + /** + * CNAMEStrategy configures how the DNS01 provider should handle CNAME + * records when found in DNS zones. + */ + cnameStrategy?: string; + /** + * Use the DigitalOcean DNS API to manage DNS01 challenge records. + */ + digitalocean?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + tokenSecretRef: { + /** + * 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; + }; + }; + /** + * Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) + * to manage DNS01 challenge records. + */ + rfc2136?: { + /** + * The IP address or hostname of an authoritative DNS server supporting + * RFC2136 in the form host:port. If the host is an IPv6 address it must be + * enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. + * This field is required. + */ + nameserver: string; + /** + * The TSIG Algorithm configured in the DNS supporting RFC2136. Used only + * when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. + * Supported values are (case-insensitive): ``HMACMD5`` (default), + * ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``. + */ + tsigAlgorithm?: string; + /** + * The TSIG Key name configured in the DNS. + * If ``tsigSecretSecretRef`` is defined, this field is required. + */ + tsigKeyName?: string; + /** + * The name of the secret containing the TSIG value. + * If ``tsigKeyName`` is defined, this field is required. + */ + tsigSecretSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the AWS Route53 API to manage DNS01 challenge records. + */ + route53?: { + /** + * The AccessKeyID is used for authentication. + * Cannot be set when SecretAccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyID?: string; + /** + * The SecretAccessKey is used for authentication. If set, pull the AWS + * access key ID from a key within a Kubernetes Secret. + * Cannot be set when AccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyIDSecretRef?: { + /** + * 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; + }; + /** + * Auth configures how cert-manager authenticates. + */ + auth?: { + /** + * Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity + * by passing a bound ServiceAccount token. + */ + kubernetes: { + /** + * A reference to a service account that will be used to request a bound + * token (also known as "projected token"). To use this field, you must + * configure an RBAC rule to let cert-manager request a token. + */ + serviceAccountRef: { + /** + * TokenAudiences is an optional list of audiences to include in the + * token passed to AWS. The default token consisting of the issuer's namespace + * and name is always included. + * If unset the audience defaults to `sts.amazonaws.com`. + */ + audiences?: string[]; + /** + * Name of the ServiceAccount used to request a token. + */ + name: string; + }; + }; + }; + /** + * If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call. + */ + hostedZoneID?: string; + /** + * Override the AWS region. + * + * Route53 is a global service and does not have regional endpoints but the + * region specified here (or via environment variables) is used as a hint to + * help compute the correct AWS credential scope and partition when it + * connects to Route53. See: + * - [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html) + * - [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html) + * + * If you omit this region field, cert-manager will use the region from + * AWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set + * in the cert-manager controller Pod. + * + * The `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook). + * In this case this `region` field value is ignored. + * + * The `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent), + * In this case this `region` field value is ignored. + */ + region?: string; + /** + * Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey + * or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata + */ + role?: string; + /** + * The SecretAccessKey is used for authentication. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + secretAccessKeySecretRef?: { + /** + * 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; + }; + }; + /** + * Configure an external webhook based DNS01 challenge solver to manage + * DNS01 challenge records. + */ + webhook?: { + /** + * Additional configuration that should be passed to the webhook apiserver + * when challenges are processed. + * This can contain arbitrary JSON data. + * Secret values should not be specified in this stanza. + * If secret values are needed (e.g., credentials for a DNS service), you + * should use a SecretKeySelector to reference a Secret resource. + * For details on the schema of this field, consult the webhook provider + * implementation's documentation. + */ + config?: { + [k: string]: unknown; + }; + /** + * The API group name that should be used when POSTing ChallengePayload + * resources to the webhook apiserver. + * This should be the same as the GroupName specified in the webhook + * provider implementation. + */ + groupName: string; + /** + * The name of the solver to use, as defined in the webhook provider + * implementation. + * This will typically be the name of the provider, e.g., 'cloudflare'. + */ + solverName: string; + }; + }; + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the HTTP01 challenge flow. + * It is not possible to obtain certificates for wildcard domain names + * (e.g., `*.example.com`) using the HTTP01 challenge mechanism. + */ + http01?: { + /** + * The Gateway API is a sig-network community API that models service networking + * in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will + * create HTTPRoutes with the specified labels in the same namespace as the challenge. + * This solver is experimental, and fields / behaviour may change in the future. + */ + gatewayHTTPRoute?: { + /** + * Custom labels that will be applied to HTTPRoutes created by cert-manager + * while solving HTTP-01 challenges. + */ + labels?: { + [k: string]: string; + }; + /** + * When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. + * cert-manager needs to know which parentRefs should be used when creating + * the HTTPRoute. Usually, the parentRef references a Gateway. See: + * https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways + */ + parentRefs?: { + /** + * Group is the group of the referent. + * When unspecified, "gateway.networking.k8s.io" is inferred. + * To set the core API group (such as for a "Service" kind referent), + * Group must be explicitly set to "" (empty string). + * + * Support: Core + */ + group?: string; + /** + * Kind is kind of the referent. + * + * There are two kinds of parent resources with "Core" support: + * + * * Gateway (Gateway conformance profile) + * * Service (Mesh conformance profile, ClusterIP Services only) + * + * Support for other resources is Implementation-Specific. + */ + kind?: string; + /** + * Name is the name of the referent. + * + * Support: Core + */ + name: string; + /** + * Namespace is the namespace of the referent. When unspecified, this refers + * to the local namespace of the Route. + * + * Note that there are specific rules for ParentRefs which cross namespace + * boundaries. Cross-namespace references are only valid if they are explicitly + * allowed by something in the namespace they are referring to. For example: + * Gateway has the AllowedRoutes field, and ReferenceGrant provides a + * generic way to enable any other kind of cross-namespace reference. + * + * + * ParentRefs from a Route to a Service in the same namespace are "producer" + * routes, which apply default routing rules to inbound connections from + * any namespace to the Service. + * + * ParentRefs from a Route to a Service in a different namespace are + * "consumer" routes, and these routing rules are only applied to outbound + * connections originating from the same namespace as the Route, for which + * the intended destination of the connections are a Service targeted as a + * ParentRef of the Route. + * + * + * Support: Core + */ + namespace?: string; + /** + * Port is the network port this Route targets. It can be interpreted + * differently based on the type of parent resource. + * + * When the parent resource is a Gateway, this targets all listeners + * listening on the specified port that also support this kind of Route(and + * select this Route). It's not recommended to set `Port` unless the + * networking behaviors specified in a Route must apply to a specific port + * as opposed to a listener(s) whose port(s) may be changed. When both Port + * and SectionName are specified, the name and port of the selected listener + * must match both specified values. + * + * + * When the parent resource is a Service, this targets a specific port in the + * Service spec. When both Port (experimental) and SectionName are specified, + * the name and port of the selected port must match both specified values. + * + * + * Implementations MAY choose to support other parent resources. + * Implementations supporting other types of parent resources MUST clearly + * document how/if Port is interpreted. + * + * For the purpose of status, an attachment is considered successful as + * long as the parent resource accepts it partially. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment + * from the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, + * the Route MUST be considered detached from the Gateway. + * + * Support: Extended + */ + port?: number; + /** + * SectionName is the name of a section within the target resource. In the + * following resources, SectionName is interpreted as the following: + * + * * Gateway: Listener name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * * Service: Port name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * + * Implementations MAY choose to support attaching Routes to other resources. + * If that is the case, they MUST clearly document how SectionName is + * interpreted. + * + * When unspecified (empty string), this will reference the entire resource. + * For the purpose of status, an attachment is considered successful if at + * least one section in the parent resource accepts it. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from + * the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, the + * Route MUST be considered detached from the Gateway. + * + * Support: Core + */ + sectionName?: string; + }[]; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + /** + * The ingress based HTTP01 challenge solver will solve challenges by + * creating or modifying Ingress resources in order to route requests for + * '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are + * provisioned by cert-manager for each Challenge to be completed. + */ + ingress?: { + /** + * This field configures the annotation `kubernetes.io/ingress.class` when + * creating Ingress resources to solve ACME challenges that use this + * challenge solver. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + class?: string; + /** + * This field configures the field `ingressClassName` on the created Ingress + * resources used to solve ACME challenges that use this challenge solver. + * This is the recommended way of configuring the ingress class. Only one of + * `class`, `name` or `ingressClassName` may be specified. + */ + ingressClassName?: string; + /** + * Optional ingress template used to configure the ACME challenge solver + * ingress used for HTTP01 challenges. + */ + ingressTemplate?: { + /** + * ObjectMeta overrides for the ingress used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver ingress. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver ingress. + */ + labels?: { + [k: string]: string; + }; + }; + }; + /** + * The name of the ingress resource that should have ACME challenge solving + * routes inserted into it in order to solve HTTP01 challenges. + * This is typically used in conjunction with ingress controllers like + * ingress-gce, which maintains a 1:1 mapping between external IPs and + * ingress resources. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + name?: string; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + }; + /** + * Selector selects a set of DNSNames on the Certificate resource that + * should be solved using this challenge solver. + * If not specified, the solver will be treated as the 'default' solver + * with the lowest priority, i.e. if any other solver has a more specific + * match, it will be used instead. + */ + selector?: { + /** + * List of DNSNames that this solver will be used to solve. + * If specified and a match is found, a dnsNames selector will take + * precedence over a dnsZones selector. + * If multiple solvers match with the same dnsNames value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsNames?: string[]; + /** + * List of DNSZones that this solver will be used to solve. + * The most specific DNS zone match specified here will take precedence + * over other DNS zone matches, so a solver specifying sys.example.com + * will be selected over one specifying example.com for the domain + * www.sys.example.com. + * If multiple solvers match with the same dnsZones value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsZones?: string[]; + /** + * A label selector that is used to refine the set of certificate's that + * this challenge solver will apply to. + */ + matchLabels?: { + [k: string]: string; + }; + }; + }; + /** + * The ACME challenge token for this challenge. + * This is the raw value returned from the ACME server. + */ + token: string; + /** + * The type of ACME challenge this resource represents. + * One of "HTTP-01" or "DNS-01". + */ + type: string; + /** + * The URL of the ACME Challenge resource for this challenge. + * This can be used to lookup details about the status of this challenge. + */ + url: string; + /** + * wildcard will be true if this challenge is for a wildcard identifier, + * for example '*.example.com'. + */ + wildcard?: boolean; + }; + status?: { + /** + * presented will be set to true if the challenge values for this challenge + * are currently 'presented'. + * This *does not* imply the self check is passing. Only that the values + * have been 'submitted' for the appropriate challenge mechanism (i.e. the + * DNS01 TXT record has been presented, or the HTTP01 configuration has been + * configured). + */ + presented?: boolean; + /** + * Used to denote whether this challenge should be processed or not. + * This field will only be set to true by the 'scheduling' component. + * It will only be set to false by the 'challenges' controller, after the + * challenge has reached a final state or timed out. + * If this field is set to false, the challenge controller will not take + * any more action. + */ + processing?: boolean; + /** + * Contains human readable information on why the Challenge is in the + * current state. + */ + reason?: string; + /** + * Contains the current 'state' of the challenge. + * If not set, the state of the challenge is unknown. + */ + state?: string; + }; +} diff --git a/src/__generated__/resources/K8SClusterIssuerV1.json b/src/__generated__/resources/K8SClusterIssuerV1.json new file mode 100644 index 0000000..055ae60 --- /dev/null +++ b/src/__generated__/resources/K8SClusterIssuerV1.json @@ -0,0 +1,3052 @@ +{ + "description": "A ClusterIssuer represents a certificate issuing authority which can be\nreferenced as part of `issuerRef` fields.\nIt is similar to an Issuer, however it is cluster-scoped and therefore can\nbe referenced by resources that exist in *any* namespace, not just the same\nnamespace as the referent.", + "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": "Desired state of the ClusterIssuer resource.", + "properties": { + "acme": { + "description": "ACME configures this issuer to communicate with a RFC8555 (ACME) server\nto obtain signed x509 certificates.", + "properties": { + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which can be used to validate the certificate\nchain presented by the ACME server.\nMutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various\nkinds of security vulnerabilities.\nIf CABundle and SkipTLSVerify are unset, the system certificate bundle inside\nthe container is used to validate the TLS connection.", + "format": "byte", + "type": "string" + }, + "disableAccountKeyGeneration": { + "description": "Enables or disables generating a new ACME account key.\nIf true, the Issuer resource will *not* request a new account but will expect\nthe account key to be supplied via an existing secret.\nIf false, the cert-manager system will generate a new ACME account key\nfor the Issuer.\nDefaults to false.", + "type": "boolean" + }, + "email": { + "description": "Email is the email address to be associated with the ACME account.\nThis field is optional, but it is strongly recommended to be set.\nIt will be used to contact you in case of issues with your account or\ncertificates, including expiry notification emails.\nThis field may be updated after the account is initially registered.", + "type": "string" + }, + "enableDurationFeature": { + "description": "Enables requesting a Not After date on certificates that matches the\nduration of the certificate. This is not supported by all ACME servers\nlike Let's Encrypt. If set to true when the ACME server does not support\nit, it will create an error on the Order.\nDefaults to false.", + "type": "boolean" + }, + "externalAccountBinding": { + "description": "ExternalAccountBinding is a reference to a CA external account of the ACME\nserver.\nIf set, upon registration cert-manager will attempt to associate the given\nexternal account credentials with the registered ACME account.", + "properties": { + "keyAlgorithm": { + "description": "Deprecated: keyAlgorithm field exists for historical compatibility\nreasons and should not be used. The algorithm is now hardcoded to HS256\nin golang/x/crypto/acme.", + "_enum": [ + "HS256", + "HS384", + "HS512" + ], + "type": "string" + }, + "keyID": { + "description": "keyID is the ID of the CA key that the External Account is bound to.", + "type": "string" + }, + "keySecretRef": { + "description": "keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes\nSecret which holds the symmetric MAC key of the External Account Binding.\nThe `key` is the index string that is paired with the key data in the\nSecret and should not be confused with the key data itself, or indeed with\nthe External Account Binding keyID above.\nThe secret key stored in the Secret **must** be un-padded, base64 URL\nencoded data.", + "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": [ + "keyID", + "keySecretRef" + ], + "type": "object" + }, + "preferredChain": { + "description": "PreferredChain is the chain to use if the ACME server outputs multiple.\nPreferredChain is no guarantee that this one gets delivered by the ACME\nendpoint.\nFor example, for Let's Encrypt's DST cross-sign you would use:\n\"DST Root CA X3\" or \"ISRG Root X1\" for the newer Let's Encrypt root CA.\nThis value picks the first certificate bundle in the combined set of\nACME default and alternative chains that has a root-most certificate with\nthis value as its issuer's commonname.", + "maxLength": 64, + "type": "string" + }, + "privateKeySecretRef": { + "description": "PrivateKey is the name of a Kubernetes Secret resource that will be used to\nstore the automatically generated ACME account private key.\nOptionally, a `key` may be specified to select a specific entry within\nthe named Secret resource.\nIf `key` is not specified, a default of `tls.key` will be used.", + "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 allows requesting a certificate profile from the ACME server.\nSupported profiles are listed by the server's ACME directory URL.", + "type": "string" + }, + "server": { + "description": "Server is the URL used to access the ACME server's 'directory' endpoint.\nFor example, for Let's Encrypt's staging endpoint, you would use:\n\"https://acme-staging-v02.api.letsencrypt.org/directory\".\nOnly ACME v2 endpoints (i.e. RFC 8555) are supported.", + "type": "string" + }, + "skipTLSVerify": { + "description": "INSECURE: Enables or disables validation of the ACME server TLS certificate.\nIf true, requests to the ACME server will not have the TLS certificate chain\nvalidated.\nMutually exclusive with CABundle; prefer using CABundle to prevent various\nkinds of security vulnerabilities.\nOnly enable this option in development environments.\nIf CABundle and SkipTLSVerify are unset, the system certificate bundle inside\nthe container is used to validate the TLS connection.\nDefaults to false.", + "type": "boolean" + }, + "solvers": { + "description": "Solvers is a list of challenge solvers that will be used to solve\nACME challenges for the matching domains.\nSolver configurations must be provided in order to obtain certificates\nfrom an ACME server.\nFor more information, see: https://cert-manager.io/docs/configuration/acme/", + "items": { + "description": "An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of.\nA selector may be provided to use different solving strategies for different DNS names.\nOnly one of HTTP01 or DNS01 must be provided.", + "type": "object", + "properties": { + "dns01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the DNS01 challenge flow.", + "type": "object", + "properties": { + "acmeDNS": { + "description": "Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage\nDNS01 challenge records.", + "type": "object", + "required": [ + "accountSecretRef", + "host" + ], + "properties": { + "accountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "host": { + "type": "string" + } + } + }, + "akamai": { + "description": "Use the Akamai DNS zone management API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "accessTokenSecretRef", + "clientSecretSecretRef", + "clientTokenSecretRef", + "serviceConsumerDomain" + ], + "properties": { + "accessTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "clientSecretSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "clientTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "serviceConsumerDomain": { + "type": "string" + } + } + }, + "azureDNS": { + "description": "Use the Microsoft Azure DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "resourceGroupName", + "subscriptionID" + ], + "properties": { + "clientID": { + "description": "Auth: Azure Service Principal:\nThe ClientID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientSecret and TenantID must also be set.", + "type": "string" + }, + "clientSecretSecretRef": { + "description": "Auth: Azure Service Principal:\nA reference to a Secret containing the password associated with the Service Principal.\nIf set, ClientID and TenantID must also be set.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "environment": { + "description": "name of the Azure environment (default AzurePublicCloud)", + "type": "string", + "enum": [ + "AzurePublicCloud", + "AzureChinaCloud", + "AzureGermanCloud", + "AzureUSGovernmentCloud" + ] + }, + "hostedZoneName": { + "description": "name of the DNS zone that should be used", + "type": "string" + }, + "managedIdentity": { + "description": "Auth: Azure Workload Identity or Azure Managed Service Identity:\nSettings to enable Azure Workload Identity or Azure Managed Service Identity\nIf set, ClientID, ClientSecret and TenantID must not be set.", + "type": "object", + "properties": { + "clientID": { + "description": "client ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + }, + "resourceID": { + "description": "resource ID of the managed identity, cannot be used at the same time as clientID\nCannot be used for Azure Managed Service Identity", + "type": "string" + }, + "tenantID": { + "description": "tenant ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + } + } + }, + "resourceGroupName": { + "description": "resource group the DNS zone is located in", + "type": "string" + }, + "subscriptionID": { + "description": "ID of the Azure subscription", + "type": "string" + }, + "tenantID": { + "description": "Auth: Azure Service Principal:\nThe TenantID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientID and ClientSecret must also be set.", + "type": "string" + } + } + }, + "cloudDNS": { + "description": "Use the Google Cloud DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "project" + ], + "properties": { + "hostedZoneName": { + "description": "HostedZoneName is an optional field that tells cert-manager in which\nCloud DNS zone the challenge record has to be created.\nIf left empty cert-manager will automatically choose a zone.", + "type": "string" + }, + "project": { + "type": "string" + }, + "serviceAccountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "cloudflare": { + "description": "Use the Cloudflare API to manage DNS01 challenge records.", + "type": "object", + "properties": { + "apiKeySecretRef": { + "description": "API key to use to authenticate with Cloudflare.\nNote: using an API token to authenticate is now the recommended method\nas it allows greater control of permissions.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "apiTokenSecretRef": { + "description": "API token used to authenticate with Cloudflare.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "email": { + "description": "Email of the account, only required when using API key based authentication.", + "type": "string" + } + } + }, + "cnameStrategy": { + "description": "CNAMEStrategy configures how the DNS01 provider should handle CNAME\nrecords when found in DNS zones.", + "type": "string", + "enum": [ + "None", + "Follow" + ] + }, + "digitalocean": { + "description": "Use the DigitalOcean DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "tokenSecretRef" + ], + "properties": { + "tokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "rfc2136": { + "description": "Use RFC2136 (\"Dynamic Updates in the Domain Name System\") (https://datatracker.ietf.org/doc/rfc2136/)\nto manage DNS01 challenge records.", + "type": "object", + "required": [ + "nameserver" + ], + "properties": { + "nameserver": { + "description": "The IP address or hostname of an authoritative DNS server supporting\nRFC2136 in the form host:port. If the host is an IPv6 address it must be\nenclosed in square brackets (e.g [2001:db8::1]) ; port is optional.\nThis field is required.", + "type": "string" + }, + "tsigAlgorithm": { + "description": "The TSIG Algorithm configured in the DNS supporting RFC2136. Used only\nwhen ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined.\nSupported values are (case-insensitive): ``HMACMD5`` (default),\n``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.", + "type": "string" + }, + "tsigKeyName": { + "description": "The TSIG Key name configured in the DNS.\nIf ``tsigSecretSecretRef`` is defined, this field is required.", + "type": "string" + }, + "tsigSecretSecretRef": { + "description": "The name of the secret containing the TSIG value.\nIf ``tsigKeyName`` is defined, this field is required.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "route53": { + "description": "Use the AWS Route53 API to manage DNS01 challenge records.", + "type": "object", + "properties": { + "accessKeyID": { + "description": "The AccessKeyID is used for authentication.\nCannot be set when SecretAccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "string" + }, + "accessKeyIDSecretRef": { + "description": "The SecretAccessKey is used for authentication. If set, pull the AWS\naccess key ID from a key within a Kubernetes Secret.\nCannot be set when AccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "auth": { + "description": "Auth configures how cert-manager authenticates.", + "type": "object", + "required": [ + "kubernetes" + ], + "properties": { + "kubernetes": { + "description": "Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity\nby passing a bound ServiceAccount token.", + "type": "object", + "required": [ + "serviceAccountRef" + ], + "properties": { + "serviceAccountRef": { + "description": "A reference to a service account that will be used to request a bound\ntoken (also known as \"projected token\"). To use this field, you must\nconfigure an RBAC rule to let cert-manager request a token.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "audiences": { + "description": "TokenAudiences is an optional list of audiences to include in the\ntoken passed to AWS. The default token consisting of the issuer's namespace\nand name is always included.\nIf unset the audience defaults to `sts.amazonaws.com`.", + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "description": "Name of the ServiceAccount used to request a token.", + "type": "string" + } + } + } + } + } + } + }, + "hostedZoneID": { + "description": "If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call.", + "type": "string" + }, + "region": { + "description": "Override the AWS region.\n\nRoute53 is a global service and does not have regional endpoints but the\nregion specified here (or via environment variables) is used as a hint to\nhelp compute the correct AWS credential scope and partition when it\nconnects to Route53. See:\n- [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html)\n- [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html)\n\nIf you omit this region field, cert-manager will use the region from\nAWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set\nin the cert-manager controller Pod.\n\nThe `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook).\nIn this case this `region` field value is ignored.\n\nThe `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent),\nIn this case this `region` field value is ignored.", + "type": "string" + }, + "role": { + "description": "Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey\nor the inferred credentials from environment variables, shared credentials file or AWS Instance metadata", + "type": "string" + }, + "secretAccessKeySecretRef": { + "description": "The SecretAccessKey is used for authentication.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "webhook": { + "description": "Configure an external webhook based DNS01 challenge solver to manage\nDNS01 challenge records.", + "type": "object", + "required": [ + "groupName", + "solverName" + ], + "properties": { + "config": { + "description": "Additional configuration that should be passed to the webhook apiserver\nwhen challenges are processed.\nThis can contain arbitrary JSON data.\nSecret values should not be specified in this stanza.\nIf secret values are needed (e.g., credentials for a DNS service), you\nshould use a SecretKeySelector to reference a Secret resource.\nFor details on the schema of this field, consult the webhook provider\nimplementation's documentation.", + "x-kubernetes-preserve-unknown-fields": true + }, + "groupName": { + "description": "The API group name that should be used when POSTing ChallengePayload\nresources to the webhook apiserver.\nThis should be the same as the GroupName specified in the webhook\nprovider implementation.", + "type": "string" + }, + "solverName": { + "description": "The name of the solver to use, as defined in the webhook provider\nimplementation.\nThis will typically be the name of the provider, e.g., 'cloudflare'.", + "type": "string" + } + } + } + } + }, + "http01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the HTTP01 challenge flow.\nIt is not possible to obtain certificates for wildcard domain names\n(e.g., `*.example.com`) using the HTTP01 challenge mechanism.", + "type": "object", + "properties": { + "gatewayHTTPRoute": { + "description": "The Gateway API is a sig-network community API that models service networking\nin Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will\ncreate HTTPRoutes with the specified labels in the same namespace as the challenge.\nThis solver is experimental, and fields / behaviour may change in the future.", + "type": "object", + "properties": { + "labels": { + "description": "Custom labels that will be applied to HTTPRoutes created by cert-manager\nwhile solving HTTP-01 challenges.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "parentRefs": { + "description": "When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute.\ncert-manager needs to know which parentRefs should be used when creating\nthe HTTPRoute. Usually, the parentRef references a Gateway. See:\nhttps://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways", + "type": "array", + "items": { + "description": "ParentReference identifies an API object (usually a Gateway) that can be considered\na parent of this resource (usually a route). There are two kinds of parent resources\nwith \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nThis API may be extended in the future to support additional kinds of parent\nresources.\n\nThe API object must be valid in the cluster; the Group and Kind must\nbe registered in the cluster for this reference to be valid.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "group": { + "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core", + "type": "string", + "default": "gateway.networking.k8s.io", + "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 referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.", + "type": "string", + "default": "Gateway", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$" + }, + "name": { + "description": "Name is the name of the referent.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1 + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, this refers\nto the local namespace of the Route.\n\nNote that there are specific rules for ParentRefs which cross namespace\nboundaries. Cross-namespace references are only valid if they are explicitly\nallowed by something in the namespace they are referring to. For example:\nGateway has the AllowedRoutes field, and ReferenceGrant provides a\ngeneric way to enable any other kind of cross-namespace reference.\n\n\nParentRefs from a Route to a Service in the same namespace are \"producer\"\nroutes, which apply default routing rules to inbound connections from\nany namespace to the Service.\n\nParentRefs from a Route to a Service in a different namespace are\n\"consumer\" routes, and these routing rules are only applied to outbound\nconnections originating from the same namespace as the Route, for which\nthe intended destination of the connections are a Service targeted as a\nParentRef of the Route.\n\n\nSupport: Core", + "type": "string", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "port": { + "description": "Port is the network port this Route targets. It can be interpreted\ndifferently based on the type of parent resource.\n\nWhen the parent resource is a Gateway, this targets all listeners\nlistening on the specified port that also support this kind of Route(and\nselect this Route). It's not recommended to set `Port` unless the\nnetworking behaviors specified in a Route must apply to a specific port\nas opposed to a listener(s) whose port(s) may be changed. When both Port\nand SectionName are specified, the name and port of the selected listener\nmust match both specified values.\n\n\nWhen the parent resource is a Service, this targets a specific port in the\nService spec. When both Port (experimental) and SectionName are specified,\nthe name and port of the selected port must match both specified values.\n\n\nImplementations MAY choose to support other parent resources.\nImplementations supporting other types of parent resources MUST clearly\ndocument how/if Port is interpreted.\n\nFor the purpose of status, an attachment is considered successful as\nlong as the parent resource accepts it partially. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment\nfrom the referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route,\nthe Route MUST be considered detached from the Gateway.\n\nSupport: Extended", + "type": "integer", + "format": "int32", + "maximum": 65535, + "minimum": 1 + }, + "sectionName": { + "description": "SectionName is the name of a section within the target resource. In the\nfollowing resources, SectionName is interpreted as the following:\n\n* Gateway: Listener name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n* Service: Port name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n\nImplementations MAY choose to support attaching Routes to other resources.\nIf that is the case, they MUST clearly document how SectionName is\ninterpreted.\n\nWhen unspecified (empty string), this will reference the entire resource.\nFor the purpose of status, an attachment is considered successful if at\nleast one section in the parent resource accepts it. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment from\nthe referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route, the\nRoute MUST be considered detached from the Gateway.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$" + } + } + } + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "type": "object", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + } + } + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + } + } + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "type": "array", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + } + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "type": "object", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + } + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "required": [ + "type" + ], + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + } + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + } + } + } + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "type": "array", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + } + } + } + } + } + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + } + }, + "ingress": { + "description": "The ingress based HTTP01 challenge solver will solve challenges by\ncreating or modifying Ingress resources in order to route requests for\n'/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are\nprovisioned by cert-manager for each Challenge to be completed.", + "type": "object", + "properties": { + "class": { + "description": "This field configures the annotation `kubernetes.io/ingress.class` when\ncreating Ingress resources to solve ACME challenges that use this\nchallenge solver. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "ingressClassName": { + "description": "This field configures the field `ingressClassName` on the created Ingress\nresources used to solve ACME challenges that use this challenge solver.\nThis is the recommended way of configuring the ingress class. Only one of\n`class`, `name` or `ingressClassName` may be specified.", + "type": "string" + }, + "ingressTemplate": { + "description": "Optional ingress template used to configure the ACME challenge solver\ningress used for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the ingress used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver ingress.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver ingress.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "name": { + "description": "The name of the ingress resource that should have ACME challenge solving\nroutes inserted into it in order to solve HTTP01 challenges.\nThis is typically used in conjunction with ingress controllers like\ningress-gce, which maintains a 1:1 mapping between external IPs and\ningress resources. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "type": "object", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + } + } + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + } + } + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "type": "array", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + } + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "type": "object", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + } + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "required": [ + "type" + ], + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + } + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + } + } + } + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "type": "array", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + } + } + } + } + } + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + } + } + } + }, + "selector": { + "description": "Selector selects a set of DNSNames on the Certificate resource that\nshould be solved using this challenge solver.\nIf not specified, the solver will be treated as the 'default' solver\nwith the lowest priority, i.e. if any other solver has a more specific\nmatch, it will be used instead.", + "type": "object", + "properties": { + "dnsNames": { + "description": "List of DNSNames that this solver will be used to solve.\nIf specified and a match is found, a dnsNames selector will take\nprecedence over a dnsZones selector.\nIf multiple solvers match with the same dnsNames value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "type": "array", + "items": { + "type": "string" + } + }, + "dnsZones": { + "description": "List of DNSZones that this solver will be used to solve.\nThe most specific DNS zone match specified here will take precedence\nover other DNS zone matches, so a solver specifying sys.example.com\nwill be selected over one specifying example.com for the domain\nwww.sys.example.com.\nIf multiple solvers match with the same dnsZones value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "type": "array", + "items": { + "type": "string" + } + }, + "matchLabels": { + "description": "A label selector that is used to refine the set of certificate's that\nthis challenge solver will apply to.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "type": "array" + } + }, + "required": [ + "privateKeySecretRef", + "server" + ], + "type": "object" + }, + "ca": { + "description": "CA configures this issuer to sign certificates using a signing CA keypair\nstored in a Secret resource.\nThis is used to build internal PKIs that are managed by cert-manager.", + "properties": { + "crlDistributionPoints": { + "description": "The CRL distribution points is an X.509 v3 certificate extension which identifies\nthe location of the CRL from which the revocation of this certificate can be checked.\nIf not set, certificates will be issued without distribution points set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "issuingCertificateURLs": { + "description": "IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates\nit creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details.\nAs an example, such a URL might be \"http://ca.domain.com/ca.crt\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "ocspServers": { + "description": "The OCSP server list is an X.509 v3 extension that defines a list of\nURLs of OCSP responders. The OCSP responders can be queried for the\nrevocation status of an issued certificate. If not set, the\ncertificate will be issued with no OCSP servers set. For example, an\nOCSP server URL could be \"http://ocsp.int-x3.letsencrypt.org\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "secretName": { + "description": "SecretName is the name of the secret used to sign Certificates issued\nby this Issuer.", + "type": "string" + } + }, + "required": [ + "secretName" + ], + "type": "object" + }, + "selfSigned": { + "description": "SelfSigned configures this issuer to 'self sign' certificates using the\nprivate key used to create the CertificateRequest object.", + "properties": { + "crlDistributionPoints": { + "description": "The CRL distribution points is an X.509 v3 certificate extension which identifies\nthe location of the CRL from which the revocation of this certificate can be checked.\nIf not set certificate will be issued without CDP. Values are strings.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "vault": { + "description": "Vault configures this issuer to sign certificates using a HashiCorp Vault\nPKI backend.", + "properties": { + "auth": { + "description": "Auth configures how cert-manager authenticates with the Vault server.", + "properties": { + "appRole": { + "description": "AppRole authenticates with Vault using the App Role auth mechanism,\nwith the role and secret stored in a Kubernetes Secret resource.", + "properties": { + "path": { + "description": "Path where the App Role authentication backend is mounted in Vault, e.g:\n\"approle\"", + "type": "string" + }, + "roleId": { + "description": "RoleID configured in the App Role authentication backend when setting\nup the authentication backend in Vault.", + "type": "string" + }, + "secretRef": { + "description": "Reference to a key in a Secret that contains the App Role secret used\nto authenticate with Vault.\nThe `key` field must be specified and denotes which entry within the Secret\nresource is used as the app role secret.", + "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": [ + "path", + "roleId", + "secretRef" + ], + "type": "object" + }, + "clientCertificate": { + "description": "ClientCertificate authenticates with Vault by presenting a client\ncertificate during the request's TLS handshake.\nWorks only when using HTTPS protocol.", + "properties": { + "mountPath": { + "description": "The Vault mountPath here is the mount path to use when authenticating with\nVault. For example, setting a value to `/v1/auth/foo`, will use the path\n`/v1/auth/foo/login` to authenticate with Vault. If unspecified, the\ndefault value \"/v1/auth/cert\" will be used.", + "type": "string" + }, + "name": { + "description": "Name of the certificate role to authenticate against.\nIf not set, matching any certificate role, if available.", + "type": "string" + }, + "secretName": { + "description": "Reference to Kubernetes Secret of type \"kubernetes.io/tls\" (hence containing\ntls.crt and tls.key) used to authenticate to Vault using TLS client\nauthentication.", + "type": "string" + } + }, + "type": "object" + }, + "kubernetes": { + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount\ntoken stored in the named Secret resource to the Vault server.", + "properties": { + "mountPath": { + "description": "The Vault mountPath here is the mount path to use when authenticating with\nVault. For example, setting a value to `/v1/auth/foo`, will use the path\n`/v1/auth/foo/login` to authenticate with Vault. If unspecified, the\ndefault value \"/v1/auth/kubernetes\" will be used.", + "type": "string" + }, + "role": { + "description": "A required field containing the Vault Role to assume. A Role binds a\nKubernetes ServiceAccount with a set of Vault policies.", + "type": "string" + }, + "secretRef": { + "description": "The required Secret field containing a Kubernetes ServiceAccount JWT used\nfor authenticating with Vault. Use of 'ambient credentials' is not\nsupported.", + "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" + }, + "serviceAccountRef": { + "description": "A reference to a service account that will be used to request a bound\ntoken (also known as \"projected token\"). Compared to using \"secretRef\",\nusing this field means that you don't rely on statically bound tokens. To\nuse this field, you must configure an RBAC rule to let cert-manager\nrequest a token.", + "properties": { + "audiences": { + "description": "TokenAudiences is an optional list of extra audiences to include in the token passed to Vault. The default token\nconsisting of the issuer's namespace and name is always included.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Name of the ServiceAccount used to request a token.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + "required": [ + "role" + ], + "type": "object" + }, + "tokenSecretRef": { + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "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" + } + }, + "type": "object" + }, + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which will be used to validate the certificate\nchain presented by Vault. Only used if using HTTPS to connect to Vault and\nignored for HTTP connections.\nMutually exclusive with CABundleSecretRef.\nIf neither CABundle nor CABundleSecretRef are defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.", + "format": "byte", + "type": "string" + }, + "caBundleSecretRef": { + "description": "Reference to a Secret containing a bundle of PEM-encoded CAs to use when\nverifying the certificate chain presented by Vault when using HTTPS.\nMutually exclusive with CABundle.\nIf neither CABundle nor CABundleSecretRef are defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.\nIf no key for the Secret is specified, cert-manager will default to 'ca.crt'.", + "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" + }, + "clientCertSecretRef": { + "description": "Reference to a Secret containing a PEM-encoded Client Certificate to use when the\nVault server requires mTLS.", + "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" + }, + "clientKeySecretRef": { + "description": "Reference to a Secret containing a PEM-encoded Client Private Key to use when the\nVault server requires mTLS.", + "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" + }, + "namespace": { + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\"\nMore about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string" + }, + "path": { + "description": "Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g:\n\"my_pki_mount/sign/my-role-name\".", + "type": "string" + }, + "server": { + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string" + }, + "serverName": { + "description": "ServerName is used to verify the hostname on the returned certificates\nby the Vault server.", + "type": "string" + } + }, + "required": [ + "auth", + "path", + "server" + ], + "type": "object" + }, + "venafi": { + "description": "Venafi configures this issuer to sign certificates using a Venafi TPP\nor Venafi Cloud policy zone.", + "properties": { + "cloud": { + "description": "Cloud specifies the Venafi cloud configuration settings.\nOnly one of TPP or Cloud may be specified.", + "properties": { + "apiTokenSecretRef": { + "description": "APITokenSecretRef is a secret key selector for the Venafi Cloud API token.", + "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" + }, + "url": { + "description": "URL is the base URL for Venafi Cloud.\nDefaults to \"https://api.venafi.cloud/\".", + "type": "string" + } + }, + "required": [ + "apiTokenSecretRef" + ], + "type": "object" + }, + "tpp": { + "description": "TPP specifies Trust Protection Platform configuration settings.\nOnly one of TPP or Cloud may be specified.", + "properties": { + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which will be used to validate the certificate\nchain presented by the TPP server. Only used if using HTTPS; ignored for HTTP.\nIf undefined, the certificate bundle in the cert-manager controller container\nis used to validate the chain.", + "format": "byte", + "type": "string" + }, + "caBundleSecretRef": { + "description": "Reference to a Secret containing a base64-encoded bundle of PEM CAs\nwhich will be used to validate the certificate chain presented by the TPP server.\nOnly used if using HTTPS; ignored for HTTP. Mutually exclusive with CABundle.\nIf neither CABundle nor CABundleSecretRef is defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.", + "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" + }, + "credentialsRef": { + "description": "CredentialsRef is a reference to a Secret containing the Venafi TPP API credentials.\nThe secret must contain the key 'access-token' for the Access Token Authentication,\nor two keys, 'username' and 'password' for the API Keys Authentication.", + "properties": { + "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" + }, + "url": { + "description": "URL is the base URL for the vedsdk endpoint of the Venafi TPP instance,\nfor example: \"https://tpp.example.com/vedsdk\".", + "type": "string" + } + }, + "required": [ + "credentialsRef", + "url" + ], + "type": "object" + }, + "zone": { + "description": "Zone is the Venafi Policy Zone to use for this issuer.\nAll requests made to the Venafi platform will be restricted by the named\nzone policy.\nThis field is required.", + "type": "string" + } + }, + "required": [ + "zone" + ], + "type": "object" + } + }, + "type": "object" + }, + "status": { + "description": "Status of the ClusterIssuer. This is set and managed automatically.", + "properties": { + "acme": { + "description": "ACME specific status options.\nThis field should only be set if the Issuer is configured to use an ACME\nserver to issue certificates.", + "properties": { + "lastPrivateKeyHash": { + "description": "LastPrivateKeyHash is a hash of the private key associated with the latest\nregistered ACME account, in order to track changes made to registered account\nassociated with the Issuer", + "type": "string" + }, + "lastRegisteredEmail": { + "description": "LastRegisteredEmail is the email associated with the latest registered\nACME account, in order to track changes made to registered account\nassociated with the Issuer", + "type": "string" + }, + "uri": { + "description": "URI is the unique account identifier, which can also be used to retrieve\naccount details from the CA", + "type": "string" + } + }, + "type": "object" + }, + "conditions": { + "description": "List of status conditions to indicate the status of a CertificateRequest.\nKnown condition types are `Ready`.", + "items": { + "description": "IssuerCondition contains condition information for an Issuer.", + "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 Issuer.", + "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`).", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_map_keys": [ + "type" + ], + "x_kubernetes_list_type": "map" + } + }, + "type": "object" + } + }, + "required": [ + "spec" + ], + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SClusterIssuerV1.ts b/src/__generated__/resources/K8SClusterIssuerV1.ts new file mode 100644 index 0000000..44cced7 --- /dev/null +++ b/src/__generated__/resources/K8SClusterIssuerV1.ts @@ -0,0 +1,3067 @@ +/* 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 ClusterIssuer represents a certificate issuing authority which can be + * referenced as part of `issuerRef` fields. + * It is similar to an Issuer, however it is cluster-scoped and therefore can + * be referenced by resources that exist in *any* namespace, not just the same + * namespace as the referent. + */ +export interface K8SClusterIssuerV1 { + /** + * 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?: {}; + /** + * Desired state of the ClusterIssuer resource. + */ + spec: { + /** + * ACME configures this issuer to communicate with a RFC8555 (ACME) server + * to obtain signed x509 certificates. + */ + acme?: { + /** + * Base64-encoded bundle of PEM CAs which can be used to validate the certificate + * chain presented by the ACME server. + * Mutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various + * kinds of security vulnerabilities. + * If CABundle and SkipTLSVerify are unset, the system certificate bundle inside + * the container is used to validate the TLS connection. + */ + caBundle?: string; + /** + * Enables or disables generating a new ACME account key. + * If true, the Issuer resource will *not* request a new account but will expect + * the account key to be supplied via an existing secret. + * If false, the cert-manager system will generate a new ACME account key + * for the Issuer. + * Defaults to false. + */ + disableAccountKeyGeneration?: boolean; + /** + * Email is the email address to be associated with the ACME account. + * This field is optional, but it is strongly recommended to be set. + * It will be used to contact you in case of issues with your account or + * certificates, including expiry notification emails. + * This field may be updated after the account is initially registered. + */ + email?: string; + /** + * Enables requesting a Not After date on certificates that matches the + * duration of the certificate. This is not supported by all ACME servers + * like Let's Encrypt. If set to true when the ACME server does not support + * it, it will create an error on the Order. + * Defaults to false. + */ + enableDurationFeature?: boolean; + /** + * ExternalAccountBinding is a reference to a CA external account of the ACME + * server. + * If set, upon registration cert-manager will attempt to associate the given + * external account credentials with the registered ACME account. + */ + externalAccountBinding?: { + /** + * Deprecated: keyAlgorithm field exists for historical compatibility + * reasons and should not be used. The algorithm is now hardcoded to HS256 + * in golang/x/crypto/acme. + */ + keyAlgorithm?: string; + /** + * keyID is the ID of the CA key that the External Account is bound to. + */ + keyID: string; + /** + * keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes + * Secret which holds the symmetric MAC key of the External Account Binding. + * The `key` is the index string that is paired with the key data in the + * Secret and should not be confused with the key data itself, or indeed with + * the External Account Binding keyID above. + * The secret key stored in the Secret **must** be un-padded, base64 URL + * encoded data. + */ + keySecretRef: { + /** + * 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; + }; + }; + /** + * PreferredChain is the chain to use if the ACME server outputs multiple. + * PreferredChain is no guarantee that this one gets delivered by the ACME + * endpoint. + * For example, for Let's Encrypt's DST cross-sign you would use: + * "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. + * This value picks the first certificate bundle in the combined set of + * ACME default and alternative chains that has a root-most certificate with + * this value as its issuer's commonname. + */ + preferredChain?: string; + /** + * PrivateKey is the name of a Kubernetes Secret resource that will be used to + * store the automatically generated ACME account private key. + * Optionally, a `key` may be specified to select a specific entry within + * the named Secret resource. + * If `key` is not specified, a default of `tls.key` will be used. + */ + privateKeySecretRef: { + /** + * 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 allows requesting a certificate profile from the ACME server. + * Supported profiles are listed by the server's ACME directory URL. + */ + profile?: string; + /** + * Server is the URL used to access the ACME server's 'directory' endpoint. + * For example, for Let's Encrypt's staging endpoint, you would use: + * "https://acme-staging-v02.api.letsencrypt.org/directory". + * Only ACME v2 endpoints (i.e. RFC 8555) are supported. + */ + server: string; + /** + * INSECURE: Enables or disables validation of the ACME server TLS certificate. + * If true, requests to the ACME server will not have the TLS certificate chain + * validated. + * Mutually exclusive with CABundle; prefer using CABundle to prevent various + * kinds of security vulnerabilities. + * Only enable this option in development environments. + * If CABundle and SkipTLSVerify are unset, the system certificate bundle inside + * the container is used to validate the TLS connection. + * Defaults to false. + */ + skipTLSVerify?: boolean; + /** + * Solvers is a list of challenge solvers that will be used to solve + * ACME challenges for the matching domains. + * Solver configurations must be provided in order to obtain certificates + * from an ACME server. + * For more information, see: https://cert-manager.io/docs/configuration/acme/ + */ + solvers?: { + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the DNS01 challenge flow. + */ + dns01?: { + /** + * Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage + * DNS01 challenge records. + */ + acmeDNS?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accountSecretRef: { + /** + * 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; + }; + host: string; + }; + /** + * Use the Akamai DNS zone management API to manage DNS01 challenge records. + */ + akamai?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accessTokenSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientSecretSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientTokenSecretRef: { + /** + * 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; + }; + serviceConsumerDomain: string; + }; + /** + * Use the Microsoft Azure DNS API to manage DNS01 challenge records. + */ + azureDNS?: { + /** + * Auth: Azure Service Principal: + * The ClientID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientSecret and TenantID must also be set. + */ + clientID?: string; + /** + * Auth: Azure Service Principal: + * A reference to a Secret containing the password associated with the Service Principal. + * If set, ClientID and TenantID must also be set. + */ + clientSecretSecretRef?: { + /** + * 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; + }; + /** + * name of the Azure environment (default AzurePublicCloud) + */ + environment?: "AzurePublicCloud" | "AzureChinaCloud" | "AzureGermanCloud" | "AzureUSGovernmentCloud"; + /** + * name of the DNS zone that should be used + */ + hostedZoneName?: string; + /** + * Auth: Azure Workload Identity or Azure Managed Service Identity: + * Settings to enable Azure Workload Identity or Azure Managed Service Identity + * If set, ClientID, ClientSecret and TenantID must not be set. + */ + managedIdentity?: { + /** + * client ID of the managed identity, cannot be used at the same time as resourceID + */ + clientID?: string; + /** + * resource ID of the managed identity, cannot be used at the same time as clientID + * Cannot be used for Azure Managed Service Identity + */ + resourceID?: string; + /** + * tenant ID of the managed identity, cannot be used at the same time as resourceID + */ + tenantID?: string; + }; + /** + * resource group the DNS zone is located in + */ + resourceGroupName: string; + /** + * ID of the Azure subscription + */ + subscriptionID: string; + /** + * Auth: Azure Service Principal: + * The TenantID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientID and ClientSecret must also be set. + */ + tenantID?: string; + }; + /** + * Use the Google Cloud DNS API to manage DNS01 challenge records. + */ + cloudDNS?: { + /** + * HostedZoneName is an optional field that tells cert-manager in which + * Cloud DNS zone the challenge record has to be created. + * If left empty cert-manager will automatically choose a zone. + */ + hostedZoneName?: string; + project: string; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + serviceAccountSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the Cloudflare API to manage DNS01 challenge records. + */ + cloudflare?: { + /** + * API key to use to authenticate with Cloudflare. + * Note: using an API token to authenticate is now the recommended method + * as it allows greater control of permissions. + */ + apiKeySecretRef?: { + /** + * 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; + }; + /** + * API token used to authenticate with Cloudflare. + */ + apiTokenSecretRef?: { + /** + * 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; + }; + /** + * Email of the account, only required when using API key based authentication. + */ + email?: string; + }; + /** + * CNAMEStrategy configures how the DNS01 provider should handle CNAME + * records when found in DNS zones. + */ + cnameStrategy?: "None" | "Follow"; + /** + * Use the DigitalOcean DNS API to manage DNS01 challenge records. + */ + digitalocean?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + tokenSecretRef: { + /** + * 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; + }; + }; + /** + * Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) + * to manage DNS01 challenge records. + */ + rfc2136?: { + /** + * The IP address or hostname of an authoritative DNS server supporting + * RFC2136 in the form host:port. If the host is an IPv6 address it must be + * enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. + * This field is required. + */ + nameserver: string; + /** + * The TSIG Algorithm configured in the DNS supporting RFC2136. Used only + * when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. + * Supported values are (case-insensitive): ``HMACMD5`` (default), + * ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``. + */ + tsigAlgorithm?: string; + /** + * The TSIG Key name configured in the DNS. + * If ``tsigSecretSecretRef`` is defined, this field is required. + */ + tsigKeyName?: string; + /** + * The name of the secret containing the TSIG value. + * If ``tsigKeyName`` is defined, this field is required. + */ + tsigSecretSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the AWS Route53 API to manage DNS01 challenge records. + */ + route53?: { + /** + * The AccessKeyID is used for authentication. + * Cannot be set when SecretAccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyID?: string; + /** + * The SecretAccessKey is used for authentication. If set, pull the AWS + * access key ID from a key within a Kubernetes Secret. + * Cannot be set when AccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyIDSecretRef?: { + /** + * 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; + }; + /** + * Auth configures how cert-manager authenticates. + */ + auth?: { + /** + * Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity + * by passing a bound ServiceAccount token. + */ + kubernetes: { + /** + * A reference to a service account that will be used to request a bound + * token (also known as "projected token"). To use this field, you must + * configure an RBAC rule to let cert-manager request a token. + */ + serviceAccountRef: { + /** + * TokenAudiences is an optional list of audiences to include in the + * token passed to AWS. The default token consisting of the issuer's namespace + * and name is always included. + * If unset the audience defaults to `sts.amazonaws.com`. + */ + audiences?: string[]; + /** + * Name of the ServiceAccount used to request a token. + */ + name: string; + }; + }; + }; + /** + * If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call. + */ + hostedZoneID?: string; + /** + * Override the AWS region. + * + * Route53 is a global service and does not have regional endpoints but the + * region specified here (or via environment variables) is used as a hint to + * help compute the correct AWS credential scope and partition when it + * connects to Route53. See: + * - [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html) + * - [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html) + * + * If you omit this region field, cert-manager will use the region from + * AWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set + * in the cert-manager controller Pod. + * + * The `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook). + * In this case this `region` field value is ignored. + * + * The `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent), + * In this case this `region` field value is ignored. + */ + region?: string; + /** + * Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey + * or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata + */ + role?: string; + /** + * The SecretAccessKey is used for authentication. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + secretAccessKeySecretRef?: { + /** + * 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; + }; + }; + /** + * Configure an external webhook based DNS01 challenge solver to manage + * DNS01 challenge records. + */ + webhook?: { + /** + * Additional configuration that should be passed to the webhook apiserver + * when challenges are processed. + * This can contain arbitrary JSON data. + * Secret values should not be specified in this stanza. + * If secret values are needed (e.g., credentials for a DNS service), you + * should use a SecretKeySelector to reference a Secret resource. + * For details on the schema of this field, consult the webhook provider + * implementation's documentation. + */ + config?: { + [k: string]: unknown; + }; + /** + * The API group name that should be used when POSTing ChallengePayload + * resources to the webhook apiserver. + * This should be the same as the GroupName specified in the webhook + * provider implementation. + */ + groupName: string; + /** + * The name of the solver to use, as defined in the webhook provider + * implementation. + * This will typically be the name of the provider, e.g., 'cloudflare'. + */ + solverName: string; + }; + }; + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the HTTP01 challenge flow. + * It is not possible to obtain certificates for wildcard domain names + * (e.g., `*.example.com`) using the HTTP01 challenge mechanism. + */ + http01?: { + /** + * The Gateway API is a sig-network community API that models service networking + * in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will + * create HTTPRoutes with the specified labels in the same namespace as the challenge. + * This solver is experimental, and fields / behaviour may change in the future. + */ + gatewayHTTPRoute?: { + /** + * Custom labels that will be applied to HTTPRoutes created by cert-manager + * while solving HTTP-01 challenges. + */ + labels?: { + [k: string]: string; + }; + /** + * When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. + * cert-manager needs to know which parentRefs should be used when creating + * the HTTPRoute. Usually, the parentRef references a Gateway. See: + * https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways + */ + parentRefs?: { + /** + * Group is the group of the referent. + * When unspecified, "gateway.networking.k8s.io" is inferred. + * To set the core API group (such as for a "Service" kind referent), + * Group must be explicitly set to "" (empty string). + * + * Support: Core + */ + group?: string; + /** + * Kind is kind of the referent. + * + * There are two kinds of parent resources with "Core" support: + * + * * Gateway (Gateway conformance profile) + * * Service (Mesh conformance profile, ClusterIP Services only) + * + * Support for other resources is Implementation-Specific. + */ + kind?: string; + /** + * Name is the name of the referent. + * + * Support: Core + */ + name: string; + /** + * Namespace is the namespace of the referent. When unspecified, this refers + * to the local namespace of the Route. + * + * Note that there are specific rules for ParentRefs which cross namespace + * boundaries. Cross-namespace references are only valid if they are explicitly + * allowed by something in the namespace they are referring to. For example: + * Gateway has the AllowedRoutes field, and ReferenceGrant provides a + * generic way to enable any other kind of cross-namespace reference. + * + * + * ParentRefs from a Route to a Service in the same namespace are "producer" + * routes, which apply default routing rules to inbound connections from + * any namespace to the Service. + * + * ParentRefs from a Route to a Service in a different namespace are + * "consumer" routes, and these routing rules are only applied to outbound + * connections originating from the same namespace as the Route, for which + * the intended destination of the connections are a Service targeted as a + * ParentRef of the Route. + * + * + * Support: Core + */ + namespace?: string; + /** + * Port is the network port this Route targets. It can be interpreted + * differently based on the type of parent resource. + * + * When the parent resource is a Gateway, this targets all listeners + * listening on the specified port that also support this kind of Route(and + * select this Route). It's not recommended to set `Port` unless the + * networking behaviors specified in a Route must apply to a specific port + * as opposed to a listener(s) whose port(s) may be changed. When both Port + * and SectionName are specified, the name and port of the selected listener + * must match both specified values. + * + * + * When the parent resource is a Service, this targets a specific port in the + * Service spec. When both Port (experimental) and SectionName are specified, + * the name and port of the selected port must match both specified values. + * + * + * Implementations MAY choose to support other parent resources. + * Implementations supporting other types of parent resources MUST clearly + * document how/if Port is interpreted. + * + * For the purpose of status, an attachment is considered successful as + * long as the parent resource accepts it partially. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment + * from the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, + * the Route MUST be considered detached from the Gateway. + * + * Support: Extended + */ + port?: number; + /** + * SectionName is the name of a section within the target resource. In the + * following resources, SectionName is interpreted as the following: + * + * * Gateway: Listener name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * * Service: Port name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * + * Implementations MAY choose to support attaching Routes to other resources. + * If that is the case, they MUST clearly document how SectionName is + * interpreted. + * + * When unspecified (empty string), this will reference the entire resource. + * For the purpose of status, an attachment is considered successful if at + * least one section in the parent resource accepts it. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from + * the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, the + * Route MUST be considered detached from the Gateway. + * + * Support: Core + */ + sectionName?: string; + }[]; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + /** + * The ingress based HTTP01 challenge solver will solve challenges by + * creating or modifying Ingress resources in order to route requests for + * '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are + * provisioned by cert-manager for each Challenge to be completed. + */ + ingress?: { + /** + * This field configures the annotation `kubernetes.io/ingress.class` when + * creating Ingress resources to solve ACME challenges that use this + * challenge solver. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + class?: string; + /** + * This field configures the field `ingressClassName` on the created Ingress + * resources used to solve ACME challenges that use this challenge solver. + * This is the recommended way of configuring the ingress class. Only one of + * `class`, `name` or `ingressClassName` may be specified. + */ + ingressClassName?: string; + /** + * Optional ingress template used to configure the ACME challenge solver + * ingress used for HTTP01 challenges. + */ + ingressTemplate?: { + /** + * ObjectMeta overrides for the ingress used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver ingress. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver ingress. + */ + labels?: { + [k: string]: string; + }; + }; + }; + /** + * The name of the ingress resource that should have ACME challenge solving + * routes inserted into it in order to solve HTTP01 challenges. + * This is typically used in conjunction with ingress controllers like + * ingress-gce, which maintains a 1:1 mapping between external IPs and + * ingress resources. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + name?: string; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + }; + /** + * Selector selects a set of DNSNames on the Certificate resource that + * should be solved using this challenge solver. + * If not specified, the solver will be treated as the 'default' solver + * with the lowest priority, i.e. if any other solver has a more specific + * match, it will be used instead. + */ + selector?: { + /** + * List of DNSNames that this solver will be used to solve. + * If specified and a match is found, a dnsNames selector will take + * precedence over a dnsZones selector. + * If multiple solvers match with the same dnsNames value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsNames?: string[]; + /** + * List of DNSZones that this solver will be used to solve. + * The most specific DNS zone match specified here will take precedence + * over other DNS zone matches, so a solver specifying sys.example.com + * will be selected over one specifying example.com for the domain + * www.sys.example.com. + * If multiple solvers match with the same dnsZones value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsZones?: string[]; + /** + * A label selector that is used to refine the set of certificate's that + * this challenge solver will apply to. + */ + matchLabels?: { + [k: string]: string; + }; + }; + }[]; + }; + /** + * CA configures this issuer to sign certificates using a signing CA keypair + * stored in a Secret resource. + * This is used to build internal PKIs that are managed by cert-manager. + */ + ca?: { + /** + * The CRL distribution points is an X.509 v3 certificate extension which identifies + * the location of the CRL from which the revocation of this certificate can be checked. + * If not set, certificates will be issued without distribution points set. + */ + crlDistributionPoints?: string[]; + /** + * IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates + * it creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details. + * As an example, such a URL might be "http://ca.domain.com/ca.crt". + */ + issuingCertificateURLs?: string[]; + /** + * The OCSP server list is an X.509 v3 extension that defines a list of + * URLs of OCSP responders. The OCSP responders can be queried for the + * revocation status of an issued certificate. If not set, the + * certificate will be issued with no OCSP servers set. For example, an + * OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org". + */ + ocspServers?: string[]; + /** + * SecretName is the name of the secret used to sign Certificates issued + * by this Issuer. + */ + secretName: string; + }; + /** + * SelfSigned configures this issuer to 'self sign' certificates using the + * private key used to create the CertificateRequest object. + */ + selfSigned?: { + /** + * The CRL distribution points is an X.509 v3 certificate extension which identifies + * the location of the CRL from which the revocation of this certificate can be checked. + * If not set certificate will be issued without CDP. Values are strings. + */ + crlDistributionPoints?: string[]; + }; + /** + * Vault configures this issuer to sign certificates using a HashiCorp Vault + * PKI backend. + */ + vault?: { + /** + * Auth configures how cert-manager authenticates with the Vault server. + */ + auth: { + /** + * AppRole authenticates with Vault using the App Role auth mechanism, + * with the role and secret stored in a Kubernetes Secret resource. + */ + appRole?: { + /** + * Path where the App Role authentication backend is mounted in Vault, e.g: + * "approle" + */ + path: string; + /** + * RoleID configured in the App Role authentication backend when setting + * up the authentication backend in Vault. + */ + roleId: string; + /** + * Reference to a key in a Secret that contains the App Role secret used + * to authenticate with Vault. + * The `key` field must be specified and denotes which entry within the Secret + * resource is used as the app role secret. + */ + secretRef: { + /** + * 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; + }; + }; + /** + * ClientCertificate authenticates with Vault by presenting a client + * certificate during the request's TLS handshake. + * Works only when using HTTPS protocol. + */ + clientCertificate?: { + /** + * The Vault mountPath here is the mount path to use when authenticating with + * Vault. For example, setting a value to `/v1/auth/foo`, will use the path + * `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the + * default value "/v1/auth/cert" will be used. + */ + mountPath?: string; + /** + * Name of the certificate role to authenticate against. + * If not set, matching any certificate role, if available. + */ + name?: string; + /** + * Reference to Kubernetes Secret of type "kubernetes.io/tls" (hence containing + * tls.crt and tls.key) used to authenticate to Vault using TLS client + * authentication. + */ + secretName?: string; + }; + /** + * Kubernetes authenticates with Vault by passing the ServiceAccount + * token stored in the named Secret resource to the Vault server. + */ + kubernetes?: { + /** + * The Vault mountPath here is the mount path to use when authenticating with + * Vault. For example, setting a value to `/v1/auth/foo`, will use the path + * `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the + * default value "/v1/auth/kubernetes" will be used. + */ + mountPath?: string; + /** + * A required field containing the Vault Role to assume. A Role binds a + * Kubernetes ServiceAccount with a set of Vault policies. + */ + role: string; + /** + * The required Secret field containing a Kubernetes ServiceAccount JWT used + * for authenticating with Vault. Use of 'ambient credentials' is not + * supported. + */ + secretRef?: { + /** + * 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; + }; + /** + * A reference to a service account that will be used to request a bound + * token (also known as "projected token"). Compared to using "secretRef", + * using this field means that you don't rely on statically bound tokens. To + * use this field, you must configure an RBAC rule to let cert-manager + * request a token. + */ + serviceAccountRef?: { + /** + * TokenAudiences is an optional list of extra audiences to include in the token passed to Vault. The default token + * consisting of the issuer's namespace and name is always included. + */ + audiences?: string[]; + /** + * Name of the ServiceAccount used to request a token. + */ + name: string; + }; + }; + /** + * TokenSecretRef authenticates with Vault by presenting a token. + */ + tokenSecretRef?: { + /** + * 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; + }; + }; + /** + * Base64-encoded bundle of PEM CAs which will be used to validate the certificate + * chain presented by Vault. Only used if using HTTPS to connect to Vault and + * ignored for HTTP connections. + * Mutually exclusive with CABundleSecretRef. + * If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + */ + caBundle?: string; + /** + * Reference to a Secret containing a bundle of PEM-encoded CAs to use when + * verifying the certificate chain presented by Vault when using HTTPS. + * Mutually exclusive with CABundle. + * If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + * If no key for the Secret is specified, cert-manager will default to 'ca.crt'. + */ + caBundleSecretRef?: { + /** + * 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; + }; + /** + * Reference to a Secret containing a PEM-encoded Client Certificate to use when the + * Vault server requires mTLS. + */ + clientCertSecretRef?: { + /** + * 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; + }; + /** + * Reference to a Secret containing a PEM-encoded Client Private Key to use when the + * Vault server requires mTLS. + */ + clientKeySecretRef?: { + /** + * 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; + }; + /** + * Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1" + * More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces + */ + namespace?: string; + /** + * Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g: + * "my_pki_mount/sign/my-role-name". + */ + path: string; + /** + * Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200". + */ + server: string; + /** + * ServerName is used to verify the hostname on the returned certificates + * by the Vault server. + */ + serverName?: string; + }; + /** + * Venafi configures this issuer to sign certificates using a Venafi TPP + * or Venafi Cloud policy zone. + */ + venafi?: { + /** + * Cloud specifies the Venafi cloud configuration settings. + * Only one of TPP or Cloud may be specified. + */ + cloud?: { + /** + * APITokenSecretRef is a secret key selector for the Venafi Cloud API token. + */ + apiTokenSecretRef: { + /** + * 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; + }; + /** + * URL is the base URL for Venafi Cloud. + * Defaults to "https://api.venafi.cloud/". + */ + url?: string; + }; + /** + * TPP specifies Trust Protection Platform configuration settings. + * Only one of TPP or Cloud may be specified. + */ + tpp?: { + /** + * Base64-encoded bundle of PEM CAs which will be used to validate the certificate + * chain presented by the TPP server. Only used if using HTTPS; ignored for HTTP. + * If undefined, the certificate bundle in the cert-manager controller container + * is used to validate the chain. + */ + caBundle?: string; + /** + * Reference to a Secret containing a base64-encoded bundle of PEM CAs + * which will be used to validate the certificate chain presented by the TPP server. + * Only used if using HTTPS; ignored for HTTP. Mutually exclusive with CABundle. + * If neither CABundle nor CABundleSecretRef is defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + */ + caBundleSecretRef?: { + /** + * 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; + }; + /** + * CredentialsRef is a reference to a Secret containing the Venafi TPP API credentials. + * The secret must contain the key 'access-token' for the Access Token Authentication, + * or two keys, 'username' and 'password' for the API Keys Authentication. + */ + credentialsRef: { + /** + * Name of the resource being referred to. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name: string; + }; + /** + * URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, + * for example: "https://tpp.example.com/vedsdk". + */ + url: string; + }; + /** + * Zone is the Venafi Policy Zone to use for this issuer. + * All requests made to the Venafi platform will be restricted by the named + * zone policy. + * This field is required. + */ + zone: string; + }; + }; + /** + * Status of the ClusterIssuer. This is set and managed automatically. + */ + status?: { + /** + * ACME specific status options. + * This field should only be set if the Issuer is configured to use an ACME + * server to issue certificates. + */ + acme?: { + /** + * LastPrivateKeyHash is a hash of the private key associated with the latest + * registered ACME account, in order to track changes made to registered account + * associated with the Issuer + */ + lastPrivateKeyHash?: string; + /** + * LastRegisteredEmail is the email associated with the latest registered + * ACME account, in order to track changes made to registered account + * associated with the Issuer + */ + lastRegisteredEmail?: string; + /** + * URI is the unique account identifier, which can also be used to retrieve + * account details from the CA + */ + uri?: string; + }; + /** + * List of status conditions to indicate the status of a CertificateRequest. + * Known condition types are `Ready`. + */ + 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 Issuer. + */ + 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`). + */ + type: string; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SDestinationRuleV1.json b/src/__generated__/resources/K8SDestinationRuleV1.json new file mode 100644 index 0000000..6520d32 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1.json @@ -0,0 +1,2454 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this destination rule is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "host": { + "description": "The name of a service from the service registry.", + "type": "string" + }, + "subsets": { + "description": "One or more named sets that represent individual versions of a service.", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "labels": { + "description": "Labels apply a filter over the endpoints of a service in the service registry.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name of the subset.", + "type": "string" + }, + "trafficPolicy": { + "description": "Traffic policies that apply to this subset.", + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "type": "array", + "maxItems": 4096, + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "type": "object", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "type": "string", + "enum": [ + "V1", + "V2" + ] + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "type": "object", + "required": [ + "targetHost", + "targetPort" + ], + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + } + } + }, + "type": "array" + }, + "trafficPolicy": { + "description": "Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).", + "properties": { + "connectionPool": { + "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" + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "minimumRingSize": { + "description": "Deprecated.", + "minimum": 0, + "type": "integer" + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + }, + "type": "object" + }, + "localityLbSetting": { + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + }, + "type": "array" + }, + "enabled": { + "description": "Enable locality load balancing.", + "nullable": true, + "type": "boolean" + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + }, + "type": "array" + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "_enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ], + "type": "string" + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "format": "double", + "minimum": 1, + "nullable": true, + "type": "number" + }, + "duration": { + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "minimumPercent": { + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true, + "type": "number" + } + }, + "required": [ + "duration" + ], + "type": "object" + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + } + }, + "type": "object" + }, + "outlierDetection": { + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveErrors": { + "format": "int32", + "type": "integer" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "format": "int32", + "type": "integer" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "format": "int32", + "type": "integer" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + }, + "type": "object" + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "maxItems": 4096, + "type": "array" + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "_enum": [ + "V1", + "V2" + ], + "type": "string" + } + }, + "type": "object" + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "nullable": true, + "type": "boolean" + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "_enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ], + "type": "string" + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "maximum": 4294967295, + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "targetHost", + "targetPort" + ], + "type": "object" + } + }, + "type": "object" + }, + "workloadSelector": { + "description": "Criteria used to select the specific set of pods/VMs on which this `DestinationRule` 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" + } + }, + "required": [ + "host" + ], + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SDestinationRuleV1.ts b/src/__generated__/resources/K8SDestinationRuleV1.ts new file mode 100644 index 0000000..f9c7e27 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SDestinationRuleV1alpha3.json b/src/__generated__/resources/K8SDestinationRuleV1alpha3.json new file mode 100644 index 0000000..6520d32 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1alpha3.json @@ -0,0 +1,2454 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this destination rule is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "host": { + "description": "The name of a service from the service registry.", + "type": "string" + }, + "subsets": { + "description": "One or more named sets that represent individual versions of a service.", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "labels": { + "description": "Labels apply a filter over the endpoints of a service in the service registry.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name of the subset.", + "type": "string" + }, + "trafficPolicy": { + "description": "Traffic policies that apply to this subset.", + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "type": "array", + "maxItems": 4096, + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "type": "object", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "type": "string", + "enum": [ + "V1", + "V2" + ] + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "type": "object", + "required": [ + "targetHost", + "targetPort" + ], + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + } + } + }, + "type": "array" + }, + "trafficPolicy": { + "description": "Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).", + "properties": { + "connectionPool": { + "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" + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "minimumRingSize": { + "description": "Deprecated.", + "minimum": 0, + "type": "integer" + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + }, + "type": "object" + }, + "localityLbSetting": { + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + }, + "type": "array" + }, + "enabled": { + "description": "Enable locality load balancing.", + "nullable": true, + "type": "boolean" + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + }, + "type": "array" + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "_enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ], + "type": "string" + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "format": "double", + "minimum": 1, + "nullable": true, + "type": "number" + }, + "duration": { + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "minimumPercent": { + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true, + "type": "number" + } + }, + "required": [ + "duration" + ], + "type": "object" + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + } + }, + "type": "object" + }, + "outlierDetection": { + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveErrors": { + "format": "int32", + "type": "integer" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "format": "int32", + "type": "integer" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "format": "int32", + "type": "integer" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + }, + "type": "object" + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "maxItems": 4096, + "type": "array" + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "_enum": [ + "V1", + "V2" + ], + "type": "string" + } + }, + "type": "object" + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "nullable": true, + "type": "boolean" + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "_enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ], + "type": "string" + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "maximum": 4294967295, + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "targetHost", + "targetPort" + ], + "type": "object" + } + }, + "type": "object" + }, + "workloadSelector": { + "description": "Criteria used to select the specific set of pods/VMs on which this `DestinationRule` 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" + } + }, + "required": [ + "host" + ], + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SDestinationRuleV1alpha3.ts b/src/__generated__/resources/K8SDestinationRuleV1alpha3.ts new file mode 100644 index 0000000..9bcbbf7 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SDestinationRuleV1beta1.json b/src/__generated__/resources/K8SDestinationRuleV1beta1.json new file mode 100644 index 0000000..6520d32 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1beta1.json @@ -0,0 +1,2454 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this destination rule is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "host": { + "description": "The name of a service from the service registry.", + "type": "string" + }, + "subsets": { + "description": "One or more named sets that represent individual versions of a service.", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "labels": { + "description": "Labels apply a filter over the endpoints of a service in the service registry.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name of the subset.", + "type": "string" + }, + "trafficPolicy": { + "description": "Traffic policies that apply to this subset.", + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "type": "array", + "maxItems": 4096, + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "type": "object", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "type": "string", + "enum": [ + "V1", + "V2" + ] + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "type": "object", + "required": [ + "targetHost", + "targetPort" + ], + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + } + } + }, + "type": "array" + }, + "trafficPolicy": { + "description": "Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).", + "properties": { + "connectionPool": { + "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" + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "minimumRingSize": { + "description": "Deprecated.", + "minimum": 0, + "type": "integer" + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "minimum": 0, + "type": "integer" + } + }, + "type": "object" + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + }, + "type": "object" + }, + "localityLbSetting": { + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + }, + "type": "array" + }, + "enabled": { + "description": "Enable locality load balancing.", + "nullable": true, + "type": "boolean" + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + }, + "type": "array" + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "_enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ], + "type": "string" + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "format": "double", + "minimum": 1, + "nullable": true, + "type": "number" + }, + "duration": { + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "minimumPercent": { + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true, + "type": "number" + } + }, + "required": [ + "duration" + ], + "type": "object" + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + } + }, + "type": "object" + }, + "outlierDetection": { + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveErrors": { + "format": "int32", + "type": "integer" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "maximum": 4294967295, + "minimum": 0, + "nullable": true, + "type": "integer" + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x_kubernetes_validations": [ + { + "message": "must be a valid duration greater than 1ms", + "rule": "duration(self) >= duration('1ms')" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "format": "int32", + "type": "integer" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "format": "int32", + "type": "integer" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + }, + "type": "object" + }, + "portLevelSettings": { + "description": "Traffic policies specific to individual ports.", + "items": { + "type": "object", + "properties": { + "connectionPool": { + "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" + } + ] + } + } + } + } + } + } + }, + "loadBalancer": { + "description": "Settings controlling the load balancer algorithms.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ] + } + }, + { + "required": [ + "simple" + ] + }, + { + "required": [ + "consistentHash" + ] + } + ], + "properties": { + "consistentHash": { + "type": "object", + "allOf": [ + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + } + }, + { + "required": [ + "httpHeaderName" + ] + }, + { + "required": [ + "httpCookie" + ] + }, + { + "required": [ + "useSourceIp" + ] + }, + { + "required": [ + "httpQueryParameterName" + ] + } + ] + }, + { + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + }, + { + "required": [ + "ringHash" + ] + }, + { + "required": [ + "maglev" + ] + } + ] + } + ], + "properties": { + "httpCookie": { + "description": "Hash based on HTTP cookie.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "description": "Lifetime of the cookie.", + "type": "string" + } + } + }, + "httpHeaderName": { + "description": "Hash based on a specific HTTP header.", + "type": "string" + }, + "httpQueryParameterName": { + "description": "Hash based on a specific HTTP query parameter.", + "type": "string" + }, + "maglev": { + "description": "The Maglev load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "tableSize": { + "description": "The table size for Maglev hashing.", + "type": "integer", + "minimum": 0 + } + } + }, + "minimumRingSize": { + "description": "Deprecated.", + "type": "integer", + "minimum": 0 + }, + "ringHash": { + "description": "The ring/modulo hash load balancer implements consistent hashing to backend hosts.", + "type": "object", + "properties": { + "minimumRingSize": { + "description": "The minimum number of virtual nodes to use for the hash ring.", + "type": "integer", + "minimum": 0 + } + } + }, + "useSourceIp": { + "description": "Hash based on the source IP address.", + "type": "boolean" + } + } + }, + "localityLbSetting": { + "type": "object", + "properties": { + "distribute": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating locality, '/' separated, e.g.", + "type": "string" + }, + "to": { + "description": "Map of upstream localities to traffic distribution weights.", + "type": "object", + "additionalProperties": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + } + } + }, + "enabled": { + "description": "Enable locality load balancing.", + "type": "boolean", + "nullable": true + }, + "failover": { + "description": "Optional: only one of distribute, failover or failoverPriority can be set.", + "type": "array", + "items": { + "type": "object", + "properties": { + "from": { + "description": "Originating region.", + "type": "string" + }, + "to": { + "description": "Destination region the traffic will fail over to when endpoints in the 'from' region becomes unhealthy.", + "type": "string" + } + } + } + }, + "failoverPriority": { + "description": "failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "simple": { + "description": "\n\nValid Options: LEAST_CONN, RANDOM, PASSTHROUGH, ROUND_ROBIN, LEAST_REQUEST", + "type": "string", + "enum": [ + "UNSPECIFIED", + "LEAST_CONN", + "RANDOM", + "PASSTHROUGH", + "ROUND_ROBIN", + "LEAST_REQUEST" + ] + }, + "warmup": { + "description": "Represents the warmup configuration of Service.", + "type": "object", + "required": [ + "duration" + ], + "properties": { + "aggression": { + "description": "This parameter controls the speed of traffic increase over the warmup duration.", + "type": "number", + "format": "double", + "minimum": 1, + "nullable": true + }, + "duration": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "minimumPercent": { + "type": "number", + "format": "double", + "maximum": 100, + "minimum": 0, + "nullable": true + } + } + }, + "warmupDurationSecs": { + "description": "Deprecated: use `warmup` instead.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "outlierDetection": { + "type": "object", + "properties": { + "baseEjectionTime": { + "description": "Minimum ejection duration.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "consecutive5xxErrors": { + "description": "Number of 5xx errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveErrors": { + "type": "integer", + "format": "int32" + }, + "consecutiveGatewayErrors": { + "description": "Number of gateway errors before a host is ejected from the connection pool.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "consecutiveLocalOriginFailures": { + "description": "The number of consecutive locally originated failures before ejection occurs.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "interval": { + "description": "Time interval between ejection sweep analysis.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "maxEjectionPercent": { + "description": "Maximum % of hosts in the load balancing pool for the upstream service that can be ejected.", + "type": "integer", + "format": "int32" + }, + "minHealthPercent": { + "description": "Outlier detection will be enabled as long as the associated load balancing pool has at least `minHealthPercent` hosts in healthy mode.", + "type": "integer", + "format": "int32" + }, + "splitExternalLocalOriginErrors": { + "description": "Determines whether to distinguish local origin failures from external errors.", + "type": "boolean" + } + } + }, + "port": { + "description": "Specifies the number of a port on the destination service on which this policy is being applied.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "type": "object", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "type": "boolean", + "nullable": true + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "type": "string", + "enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ] + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "maxItems": 4096, + "type": "array" + }, + "proxyProtocol": { + "description": "The upstream PROXY protocol settings.", + "properties": { + "version": { + "description": "The PROXY protocol version to use.\n\nValid Options: V1, V2", + "_enum": [ + "V1", + "V2" + ], + "type": "string" + } + }, + "type": "object" + }, + "tls": { + "description": "TLS related settings for connections to the upstream service.", + "properties": { + "caCertificates": { + "description": "OPTIONAL: The path to the file containing certificate authority certificates to use in verifying a presented server certificate.", + "type": "string" + }, + "caCrl": { + "description": "OPTIONAL: The path to the file containing the certificate revocation list (CRL) to use in verifying a presented server certificate.", + "type": "string" + }, + "clientCertificate": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "credentialName": { + "description": "The name of the secret that holds the TLS certs for the client including the CA certificates.", + "type": "string" + }, + "insecureSkipVerify": { + "description": "`insecureSkipVerify` specifies whether the proxy should skip verifying the CA signature and SAN for the server certificate corresponding to the host.", + "nullable": true, + "type": "boolean" + }, + "mode": { + "description": "Indicates whether connections to this port should be secured using TLS.\n\nValid Options: DISABLE, SIMPLE, MUTUAL, ISTIO_MUTUAL", + "_enum": [ + "DISABLE", + "SIMPLE", + "MUTUAL", + "ISTIO_MUTUAL" + ], + "type": "string" + }, + "privateKey": { + "description": "REQUIRED if mode is `MUTUAL`.", + "type": "string" + }, + "sni": { + "description": "SNI string to present to the server during TLS handshake.", + "type": "string" + }, + "subjectAltNames": { + "description": "A list of alternate names to verify the subject identity in the certificate.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "tunnel": { + "description": "Configuration of tunneling TCP over other transport or application layers for the host configured in the DestinationRule.", + "properties": { + "protocol": { + "description": "Specifies which protocol to use for tunneling the downstream connection.", + "type": "string" + }, + "targetHost": { + "description": "Specifies a host to which the downstream connection is tunneled.", + "type": "string" + }, + "targetPort": { + "description": "Specifies a port to which the downstream connection is tunneled.", + "maximum": 4294967295, + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "targetHost", + "targetPort" + ], + "type": "object" + } + }, + "type": "object" + }, + "workloadSelector": { + "description": "Criteria used to select the specific set of pods/VMs on which this `DestinationRule` 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" + } + }, + "required": [ + "host" + ], + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SDestinationRuleV1beta1.ts b/src/__generated__/resources/K8SDestinationRuleV1beta1.ts new file mode 100644 index 0000000..5e48ae8 --- /dev/null +++ b/src/__generated__/resources/K8SDestinationRuleV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SDomainEndpointV1.json b/src/__generated__/resources/K8SDomainEndpointV1.json new file mode 100644 index 0000000..df9b923 --- /dev/null +++ b/src/__generated__/resources/K8SDomainEndpointV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SDomainEndpointV1.ts b/src/__generated__/resources/K8SDomainEndpointV1.ts new file mode 100644 index 0000000..d6a2532 --- /dev/null +++ b/src/__generated__/resources/K8SDomainEndpointV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SDomainV1.json b/src/__generated__/resources/K8SDomainV1.json new file mode 100644 index 0000000..f3a2ddd --- /dev/null +++ b/src/__generated__/resources/K8SDomainV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SDomainV1.ts b/src/__generated__/resources/K8SDomainV1.ts new file mode 100644 index 0000000..357a230 --- /dev/null +++ b/src/__generated__/resources/K8SDomainV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SETCDSnapshotFileV1.json b/src/__generated__/resources/K8SETCDSnapshotFileV1.json new file mode 100644 index 0000000..dbd924d --- /dev/null +++ b/src/__generated__/resources/K8SETCDSnapshotFileV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SETCDSnapshotFileV1.ts b/src/__generated__/resources/K8SETCDSnapshotFileV1.ts new file mode 100644 index 0000000..0029775 --- /dev/null +++ b/src/__generated__/resources/K8SETCDSnapshotFileV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SEnvoyFilterV1alpha3.json b/src/__generated__/resources/K8SEnvoyFilterV1alpha3.json new file mode 100644 index 0000000..c0725e4 --- /dev/null +++ b/src/__generated__/resources/K8SEnvoyFilterV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SEnvoyFilterV1alpha3.ts b/src/__generated__/resources/K8SEnvoyFilterV1alpha3.ts new file mode 100644 index 0000000..94da4e8 --- /dev/null +++ b/src/__generated__/resources/K8SEnvoyFilterV1alpha3.ts @@ -0,0 +1,2634 @@ +/* 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 K8SEnvoyFilterV1Alpha3 { + /** + * Customizing Envoy configuration generated by Istio. See more details at: https://istio.io/docs/reference/config/networking/envoy-filter.html + */ + spec?: { + /** + * One or more patches with match conditions. + */ + configPatches?: { + /** + * Specifies where in the Envoy configuration, the patch should be applied. + * + * Valid Options: LISTENER, FILTER_CHAIN, NETWORK_FILTER, HTTP_FILTER, ROUTE_CONFIGURATION, VIRTUAL_HOST, HTTP_ROUTE, CLUSTER, EXTENSION_CONFIG, BOOTSTRAP, LISTENER_FILTER + */ + applyTo?: + | "INVALID" + | "LISTENER" + | "FILTER_CHAIN" + | "NETWORK_FILTER" + | "HTTP_FILTER" + | "ROUTE_CONFIGURATION" + | "VIRTUAL_HOST" + | "HTTP_ROUTE" + | "CLUSTER" + | "EXTENSION_CONFIG" + | "BOOTSTRAP" + | "LISTENER_FILTER"; + /** + * Match on listener/route configuration/cluster. + */ + match?: { + [k: string]: unknown; + }; + /** + * The patch to apply along with the operation. + */ + patch?: { + /** + * Determines the filter insertion order. + * + * Valid Options: AUTHN, AUTHZ, STATS + */ + filterClass?: "UNSPECIFIED" | "AUTHN" | "AUTHZ" | "STATS"; + /** + * Determines how the patch should be applied. + * + * Valid Options: MERGE, ADD, REMOVE, INSERT_BEFORE, INSERT_AFTER, INSERT_FIRST, REPLACE + */ + operation?: + | "INVALID" + | "MERGE" + | "ADD" + | "REMOVE" + | "INSERT_BEFORE" + | "INSERT_AFTER" + | "INSERT_FIRST" + | "REPLACE"; + /** + * The JSON config of the object being patched. + */ + value?: {}; + }; + }[]; + /** + * Priority defines the order in which patch sets are applied within a context. + */ + priority?: number; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ]; + /** + * Criteria used to select the specific set of pods/VMs on which this patch 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SGatewayV1.json b/src/__generated__/resources/K8SGatewayV1.json new file mode 100644 index 0000000..4421338 --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SGatewayV1.ts b/src/__generated__/resources/K8SGatewayV1.ts new file mode 100644 index 0000000..573562a --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SGatewayV1alpha3.json b/src/__generated__/resources/K8SGatewayV1alpha3.json new file mode 100644 index 0000000..4421338 --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SGatewayV1alpha3.ts b/src/__generated__/resources/K8SGatewayV1alpha3.ts new file mode 100644 index 0000000..104cc00 --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SGatewayV1beta1.json b/src/__generated__/resources/K8SGatewayV1beta1.json new file mode 100644 index 0000000..4421338 --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SGatewayV1beta1.ts b/src/__generated__/resources/K8SGatewayV1beta1.ts new file mode 100644 index 0000000..1833f11 --- /dev/null +++ b/src/__generated__/resources/K8SGatewayV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SHelmChartConfigV1.json b/src/__generated__/resources/K8SHelmChartConfigV1.json new file mode 100644 index 0000000..4453ade --- /dev/null +++ b/src/__generated__/resources/K8SHelmChartConfigV1.json @@ -0,0 +1,18 @@ +{ + "properties": { + "spec": { + "properties": { + "failurePolicy": { + "nullable": true, + "type": "string" + }, + "valuesContent": { + "nullable": true, + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SHelmChartConfigV1.ts b/src/__generated__/resources/K8SHelmChartConfigV1.ts new file mode 100644 index 0000000..4c26e34 --- /dev/null +++ b/src/__generated__/resources/K8SHelmChartConfigV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SHelmChartV1.json b/src/__generated__/resources/K8SHelmChartV1.json new file mode 100644 index 0000000..d872565 --- /dev/null +++ b/src/__generated__/resources/K8SHelmChartV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SHelmChartV1.ts b/src/__generated__/resources/K8SHelmChartV1.ts new file mode 100644 index 0000000..aed6dc9 --- /dev/null +++ b/src/__generated__/resources/K8SHelmChartV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SIssuerV1.json b/src/__generated__/resources/K8SIssuerV1.json new file mode 100644 index 0000000..3db0e37 --- /dev/null +++ b/src/__generated__/resources/K8SIssuerV1.json @@ -0,0 +1,3052 @@ +{ + "description": "An Issuer represents a certificate issuing authority which can be\nreferenced as part of `issuerRef` fields.\nIt is scoped to a single namespace and can therefore only be referenced by\nresources within the same namespace.", + "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": "Desired state of the Issuer resource.", + "properties": { + "acme": { + "description": "ACME configures this issuer to communicate with a RFC8555 (ACME) server\nto obtain signed x509 certificates.", + "properties": { + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which can be used to validate the certificate\nchain presented by the ACME server.\nMutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various\nkinds of security vulnerabilities.\nIf CABundle and SkipTLSVerify are unset, the system certificate bundle inside\nthe container is used to validate the TLS connection.", + "format": "byte", + "type": "string" + }, + "disableAccountKeyGeneration": { + "description": "Enables or disables generating a new ACME account key.\nIf true, the Issuer resource will *not* request a new account but will expect\nthe account key to be supplied via an existing secret.\nIf false, the cert-manager system will generate a new ACME account key\nfor the Issuer.\nDefaults to false.", + "type": "boolean" + }, + "email": { + "description": "Email is the email address to be associated with the ACME account.\nThis field is optional, but it is strongly recommended to be set.\nIt will be used to contact you in case of issues with your account or\ncertificates, including expiry notification emails.\nThis field may be updated after the account is initially registered.", + "type": "string" + }, + "enableDurationFeature": { + "description": "Enables requesting a Not After date on certificates that matches the\nduration of the certificate. This is not supported by all ACME servers\nlike Let's Encrypt. If set to true when the ACME server does not support\nit, it will create an error on the Order.\nDefaults to false.", + "type": "boolean" + }, + "externalAccountBinding": { + "description": "ExternalAccountBinding is a reference to a CA external account of the ACME\nserver.\nIf set, upon registration cert-manager will attempt to associate the given\nexternal account credentials with the registered ACME account.", + "properties": { + "keyAlgorithm": { + "description": "Deprecated: keyAlgorithm field exists for historical compatibility\nreasons and should not be used. The algorithm is now hardcoded to HS256\nin golang/x/crypto/acme.", + "_enum": [ + "HS256", + "HS384", + "HS512" + ], + "type": "string" + }, + "keyID": { + "description": "keyID is the ID of the CA key that the External Account is bound to.", + "type": "string" + }, + "keySecretRef": { + "description": "keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes\nSecret which holds the symmetric MAC key of the External Account Binding.\nThe `key` is the index string that is paired with the key data in the\nSecret and should not be confused with the key data itself, or indeed with\nthe External Account Binding keyID above.\nThe secret key stored in the Secret **must** be un-padded, base64 URL\nencoded data.", + "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": [ + "keyID", + "keySecretRef" + ], + "type": "object" + }, + "preferredChain": { + "description": "PreferredChain is the chain to use if the ACME server outputs multiple.\nPreferredChain is no guarantee that this one gets delivered by the ACME\nendpoint.\nFor example, for Let's Encrypt's DST cross-sign you would use:\n\"DST Root CA X3\" or \"ISRG Root X1\" for the newer Let's Encrypt root CA.\nThis value picks the first certificate bundle in the combined set of\nACME default and alternative chains that has a root-most certificate with\nthis value as its issuer's commonname.", + "maxLength": 64, + "type": "string" + }, + "privateKeySecretRef": { + "description": "PrivateKey is the name of a Kubernetes Secret resource that will be used to\nstore the automatically generated ACME account private key.\nOptionally, a `key` may be specified to select a specific entry within\nthe named Secret resource.\nIf `key` is not specified, a default of `tls.key` will be used.", + "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 allows requesting a certificate profile from the ACME server.\nSupported profiles are listed by the server's ACME directory URL.", + "type": "string" + }, + "server": { + "description": "Server is the URL used to access the ACME server's 'directory' endpoint.\nFor example, for Let's Encrypt's staging endpoint, you would use:\n\"https://acme-staging-v02.api.letsencrypt.org/directory\".\nOnly ACME v2 endpoints (i.e. RFC 8555) are supported.", + "type": "string" + }, + "skipTLSVerify": { + "description": "INSECURE: Enables or disables validation of the ACME server TLS certificate.\nIf true, requests to the ACME server will not have the TLS certificate chain\nvalidated.\nMutually exclusive with CABundle; prefer using CABundle to prevent various\nkinds of security vulnerabilities.\nOnly enable this option in development environments.\nIf CABundle and SkipTLSVerify are unset, the system certificate bundle inside\nthe container is used to validate the TLS connection.\nDefaults to false.", + "type": "boolean" + }, + "solvers": { + "description": "Solvers is a list of challenge solvers that will be used to solve\nACME challenges for the matching domains.\nSolver configurations must be provided in order to obtain certificates\nfrom an ACME server.\nFor more information, see: https://cert-manager.io/docs/configuration/acme/", + "items": { + "description": "An ACMEChallengeSolver describes how to solve ACME challenges for the issuer it is part of.\nA selector may be provided to use different solving strategies for different DNS names.\nOnly one of HTTP01 or DNS01 must be provided.", + "type": "object", + "properties": { + "dns01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the DNS01 challenge flow.", + "type": "object", + "properties": { + "acmeDNS": { + "description": "Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage\nDNS01 challenge records.", + "type": "object", + "required": [ + "accountSecretRef", + "host" + ], + "properties": { + "accountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "host": { + "type": "string" + } + } + }, + "akamai": { + "description": "Use the Akamai DNS zone management API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "accessTokenSecretRef", + "clientSecretSecretRef", + "clientTokenSecretRef", + "serviceConsumerDomain" + ], + "properties": { + "accessTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "clientSecretSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "clientTokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "serviceConsumerDomain": { + "type": "string" + } + } + }, + "azureDNS": { + "description": "Use the Microsoft Azure DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "resourceGroupName", + "subscriptionID" + ], + "properties": { + "clientID": { + "description": "Auth: Azure Service Principal:\nThe ClientID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientSecret and TenantID must also be set.", + "type": "string" + }, + "clientSecretSecretRef": { + "description": "Auth: Azure Service Principal:\nA reference to a Secret containing the password associated with the Service Principal.\nIf set, ClientID and TenantID must also be set.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "environment": { + "description": "name of the Azure environment (default AzurePublicCloud)", + "type": "string", + "enum": [ + "AzurePublicCloud", + "AzureChinaCloud", + "AzureGermanCloud", + "AzureUSGovernmentCloud" + ] + }, + "hostedZoneName": { + "description": "name of the DNS zone that should be used", + "type": "string" + }, + "managedIdentity": { + "description": "Auth: Azure Workload Identity or Azure Managed Service Identity:\nSettings to enable Azure Workload Identity or Azure Managed Service Identity\nIf set, ClientID, ClientSecret and TenantID must not be set.", + "type": "object", + "properties": { + "clientID": { + "description": "client ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + }, + "resourceID": { + "description": "resource ID of the managed identity, cannot be used at the same time as clientID\nCannot be used for Azure Managed Service Identity", + "type": "string" + }, + "tenantID": { + "description": "tenant ID of the managed identity, cannot be used at the same time as resourceID", + "type": "string" + } + } + }, + "resourceGroupName": { + "description": "resource group the DNS zone is located in", + "type": "string" + }, + "subscriptionID": { + "description": "ID of the Azure subscription", + "type": "string" + }, + "tenantID": { + "description": "Auth: Azure Service Principal:\nThe TenantID of the Azure Service Principal used to authenticate with Azure DNS.\nIf set, ClientID and ClientSecret must also be set.", + "type": "string" + } + } + }, + "cloudDNS": { + "description": "Use the Google Cloud DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "project" + ], + "properties": { + "hostedZoneName": { + "description": "HostedZoneName is an optional field that tells cert-manager in which\nCloud DNS zone the challenge record has to be created.\nIf left empty cert-manager will automatically choose a zone.", + "type": "string" + }, + "project": { + "type": "string" + }, + "serviceAccountSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "cloudflare": { + "description": "Use the Cloudflare API to manage DNS01 challenge records.", + "type": "object", + "properties": { + "apiKeySecretRef": { + "description": "API key to use to authenticate with Cloudflare.\nNote: using an API token to authenticate is now the recommended method\nas it allows greater control of permissions.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "apiTokenSecretRef": { + "description": "API token used to authenticate with Cloudflare.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "email": { + "description": "Email of the account, only required when using API key based authentication.", + "type": "string" + } + } + }, + "cnameStrategy": { + "description": "CNAMEStrategy configures how the DNS01 provider should handle CNAME\nrecords when found in DNS zones.", + "type": "string", + "enum": [ + "None", + "Follow" + ] + }, + "digitalocean": { + "description": "Use the DigitalOcean DNS API to manage DNS01 challenge records.", + "type": "object", + "required": [ + "tokenSecretRef" + ], + "properties": { + "tokenSecretRef": { + "description": "A reference to a specific 'key' within a Secret resource.\nIn some instances, `key` is a required field.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "rfc2136": { + "description": "Use RFC2136 (\"Dynamic Updates in the Domain Name System\") (https://datatracker.ietf.org/doc/rfc2136/)\nto manage DNS01 challenge records.", + "type": "object", + "required": [ + "nameserver" + ], + "properties": { + "nameserver": { + "description": "The IP address or hostname of an authoritative DNS server supporting\nRFC2136 in the form host:port. If the host is an IPv6 address it must be\nenclosed in square brackets (e.g [2001:db8::1]) ; port is optional.\nThis field is required.", + "type": "string" + }, + "tsigAlgorithm": { + "description": "The TSIG Algorithm configured in the DNS supporting RFC2136. Used only\nwhen ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined.\nSupported values are (case-insensitive): ``HMACMD5`` (default),\n``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``.", + "type": "string" + }, + "tsigKeyName": { + "description": "The TSIG Key name configured in the DNS.\nIf ``tsigSecretSecretRef`` is defined, this field is required.", + "type": "string" + }, + "tsigSecretSecretRef": { + "description": "The name of the secret containing the TSIG value.\nIf ``tsigKeyName`` is defined, this field is required.", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "route53": { + "description": "Use the AWS Route53 API to manage DNS01 challenge records.", + "type": "object", + "properties": { + "accessKeyID": { + "description": "The AccessKeyID is used for authentication.\nCannot be set when SecretAccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "string" + }, + "accessKeyIDSecretRef": { + "description": "The SecretAccessKey is used for authentication. If set, pull the AWS\naccess key ID from a key within a Kubernetes Secret.\nCannot be set when AccessKeyID is set.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + }, + "auth": { + "description": "Auth configures how cert-manager authenticates.", + "type": "object", + "required": [ + "kubernetes" + ], + "properties": { + "kubernetes": { + "description": "Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity\nby passing a bound ServiceAccount token.", + "type": "object", + "required": [ + "serviceAccountRef" + ], + "properties": { + "serviceAccountRef": { + "description": "A reference to a service account that will be used to request a bound\ntoken (also known as \"projected token\"). To use this field, you must\nconfigure an RBAC rule to let cert-manager request a token.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "audiences": { + "description": "TokenAudiences is an optional list of audiences to include in the\ntoken passed to AWS. The default token consisting of the issuer's namespace\nand name is always included.\nIf unset the audience defaults to `sts.amazonaws.com`.", + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "description": "Name of the ServiceAccount used to request a token.", + "type": "string" + } + } + } + } + } + } + }, + "hostedZoneID": { + "description": "If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call.", + "type": "string" + }, + "region": { + "description": "Override the AWS region.\n\nRoute53 is a global service and does not have regional endpoints but the\nregion specified here (or via environment variables) is used as a hint to\nhelp compute the correct AWS credential scope and partition when it\nconnects to Route53. See:\n- [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html)\n- [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html)\n\nIf you omit this region field, cert-manager will use the region from\nAWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set\nin the cert-manager controller Pod.\n\nThe `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook).\nIn this case this `region` field value is ignored.\n\nThe `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html).\nInstead an AWS_REGION environment variable is added to the cert-manager controller Pod by:\n[Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent),\nIn this case this `region` field value is ignored.", + "type": "string" + }, + "role": { + "description": "Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey\nor the inferred credentials from environment variables, shared credentials file or AWS Instance metadata", + "type": "string" + }, + "secretAccessKeySecretRef": { + "description": "The SecretAccessKey is used for authentication.\nIf neither the Access Key nor Key ID are set, we fall-back to using env\nvars, shared credentials file or AWS Instance metadata,\nsee: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "type": "object", + "required": [ + "name" + ], + "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" + } + } + } + } + }, + "webhook": { + "description": "Configure an external webhook based DNS01 challenge solver to manage\nDNS01 challenge records.", + "type": "object", + "required": [ + "groupName", + "solverName" + ], + "properties": { + "config": { + "description": "Additional configuration that should be passed to the webhook apiserver\nwhen challenges are processed.\nThis can contain arbitrary JSON data.\nSecret values should not be specified in this stanza.\nIf secret values are needed (e.g., credentials for a DNS service), you\nshould use a SecretKeySelector to reference a Secret resource.\nFor details on the schema of this field, consult the webhook provider\nimplementation's documentation.", + "x-kubernetes-preserve-unknown-fields": true + }, + "groupName": { + "description": "The API group name that should be used when POSTing ChallengePayload\nresources to the webhook apiserver.\nThis should be the same as the GroupName specified in the webhook\nprovider implementation.", + "type": "string" + }, + "solverName": { + "description": "The name of the solver to use, as defined in the webhook provider\nimplementation.\nThis will typically be the name of the provider, e.g., 'cloudflare'.", + "type": "string" + } + } + } + } + }, + "http01": { + "description": "Configures cert-manager to attempt to complete authorizations by\nperforming the HTTP01 challenge flow.\nIt is not possible to obtain certificates for wildcard domain names\n(e.g., `*.example.com`) using the HTTP01 challenge mechanism.", + "type": "object", + "properties": { + "gatewayHTTPRoute": { + "description": "The Gateway API is a sig-network community API that models service networking\nin Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will\ncreate HTTPRoutes with the specified labels in the same namespace as the challenge.\nThis solver is experimental, and fields / behaviour may change in the future.", + "type": "object", + "properties": { + "labels": { + "description": "Custom labels that will be applied to HTTPRoutes created by cert-manager\nwhile solving HTTP-01 challenges.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "parentRefs": { + "description": "When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute.\ncert-manager needs to know which parentRefs should be used when creating\nthe HTTPRoute. Usually, the parentRef references a Gateway. See:\nhttps://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways", + "type": "array", + "items": { + "description": "ParentReference identifies an API object (usually a Gateway) that can be considered\na parent of this resource (usually a route). There are two kinds of parent resources\nwith \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nThis API may be extended in the future to support additional kinds of parent\nresources.\n\nThe API object must be valid in the cluster; the Group and Kind must\nbe registered in the cluster for this reference to be valid.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "group": { + "description": "Group is the group of the referent.\nWhen unspecified, \"gateway.networking.k8s.io\" is inferred.\nTo set the core API group (such as for a \"Service\" kind referent),\nGroup must be explicitly set to \"\" (empty string).\n\nSupport: Core", + "type": "string", + "default": "gateway.networking.k8s.io", + "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 referent.\n\nThere are two kinds of parent resources with \"Core\" support:\n\n* Gateway (Gateway conformance profile)\n* Service (Mesh conformance profile, ClusterIP Services only)\n\nSupport for other resources is Implementation-Specific.", + "type": "string", + "default": "Gateway", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$" + }, + "name": { + "description": "Name is the name of the referent.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1 + }, + "namespace": { + "description": "Namespace is the namespace of the referent. When unspecified, this refers\nto the local namespace of the Route.\n\nNote that there are specific rules for ParentRefs which cross namespace\nboundaries. Cross-namespace references are only valid if they are explicitly\nallowed by something in the namespace they are referring to. For example:\nGateway has the AllowedRoutes field, and ReferenceGrant provides a\ngeneric way to enable any other kind of cross-namespace reference.\n\n\nParentRefs from a Route to a Service in the same namespace are \"producer\"\nroutes, which apply default routing rules to inbound connections from\nany namespace to the Service.\n\nParentRefs from a Route to a Service in a different namespace are\n\"consumer\" routes, and these routing rules are only applied to outbound\nconnections originating from the same namespace as the Route, for which\nthe intended destination of the connections are a Service targeted as a\nParentRef of the Route.\n\n\nSupport: Core", + "type": "string", + "maxLength": 63, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "port": { + "description": "Port is the network port this Route targets. It can be interpreted\ndifferently based on the type of parent resource.\n\nWhen the parent resource is a Gateway, this targets all listeners\nlistening on the specified port that also support this kind of Route(and\nselect this Route). It's not recommended to set `Port` unless the\nnetworking behaviors specified in a Route must apply to a specific port\nas opposed to a listener(s) whose port(s) may be changed. When both Port\nand SectionName are specified, the name and port of the selected listener\nmust match both specified values.\n\n\nWhen the parent resource is a Service, this targets a specific port in the\nService spec. When both Port (experimental) and SectionName are specified,\nthe name and port of the selected port must match both specified values.\n\n\nImplementations MAY choose to support other parent resources.\nImplementations supporting other types of parent resources MUST clearly\ndocument how/if Port is interpreted.\n\nFor the purpose of status, an attachment is considered successful as\nlong as the parent resource accepts it partially. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment\nfrom the referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route,\nthe Route MUST be considered detached from the Gateway.\n\nSupport: Extended", + "type": "integer", + "format": "int32", + "maximum": 65535, + "minimum": 1 + }, + "sectionName": { + "description": "SectionName is the name of a section within the target resource. In the\nfollowing resources, SectionName is interpreted as the following:\n\n* Gateway: Listener name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n* Service: Port name. When both Port (experimental) and SectionName\nare specified, the name and port of the selected listener must match\nboth specified values.\n\nImplementations MAY choose to support attaching Routes to other resources.\nIf that is the case, they MUST clearly document how SectionName is\ninterpreted.\n\nWhen unspecified (empty string), this will reference the entire resource.\nFor the purpose of status, an attachment is considered successful if at\nleast one section in the parent resource accepts it. For example, Gateway\nlisteners can restrict which Routes can attach to them by Route kind,\nnamespace, or hostname. If 1 of 2 Gateway listeners accept attachment from\nthe referencing Route, the Route MUST be considered successfully\nattached. If no Gateway listeners accept attachment from this Route, the\nRoute MUST be considered detached from the Gateway.\n\nSupport: Core", + "type": "string", + "maxLength": 253, + "minLength": 1, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$" + } + } + } + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "type": "object", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + } + } + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + } + } + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "type": "array", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + } + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "type": "object", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + } + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "required": [ + "type" + ], + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + } + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + } + } + } + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "type": "array", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + } + } + } + } + } + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + } + }, + "ingress": { + "description": "The ingress based HTTP01 challenge solver will solve challenges by\ncreating or modifying Ingress resources in order to route requests for\n'/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are\nprovisioned by cert-manager for each Challenge to be completed.", + "type": "object", + "properties": { + "class": { + "description": "This field configures the annotation `kubernetes.io/ingress.class` when\ncreating Ingress resources to solve ACME challenges that use this\nchallenge solver. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "ingressClassName": { + "description": "This field configures the field `ingressClassName` on the created Ingress\nresources used to solve ACME challenges that use this challenge solver.\nThis is the recommended way of configuring the ingress class. Only one of\n`class`, `name` or `ingressClassName` may be specified.", + "type": "string" + }, + "ingressTemplate": { + "description": "Optional ingress template used to configure the ACME challenge solver\ningress used for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the ingress used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver ingress.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver ingress.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "name": { + "description": "The name of the ingress resource that should have ACME challenge solving\nroutes inserted into it in order to solve HTTP01 challenges.\nThis is typically used in conjunction with ingress controllers like\ningress-gce, which maintains a 1:1 mapping between external IPs and\ningress resources. Only one of `class`, `name` or `ingressClassName` may\nbe specified.", + "type": "string" + }, + "podTemplate": { + "description": "Optional pod template used to configure the ACME challenge solver pods\nused for HTTP01 challenges.", + "type": "object", + "properties": { + "metadata": { + "description": "ObjectMeta overrides for the pod used to solve HTTP01 challenges.\nOnly the 'labels' and 'annotations' fields may be set.\nIf labels or annotations overlap with in-built values, the values here\nwill override the in-built values.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels that should be added to the created ACME HTTP01 solver pods.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "spec": { + "description": "PodSpec defines overrides for the HTTP01 challenge solver pod.\nCheck ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields.\nAll other fields will be ignored.", + "type": "object", + "properties": { + "affinity": { + "description": "If specified, the pod's scheduling constraints", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "preference", + "weight" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-map-type": "atomic" + } + } + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "podAffinityTerm", + "weight" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", + "type": "string" + } + } + }, + "x-kubernetes-list-type": "atomic" + } + } + } + } + }, + "imagePullSecrets": { + "description": "If specified, the pod's imagePullSecrets", + "type": "array", + "items": { + "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string", + "default": "" + } + }, + "x-kubernetes-map-type": "atomic" + } + }, + "nodeSelector": { + "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "priorityClassName": { + "description": "If specified, the pod's priorityClassName.", + "type": "string" + }, + "securityContext": { + "description": "If specified, the pod's security context", + "type": "object", + "properties": { + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "string" + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": "boolean" + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "integer", + "format": "int64" + }, + "seLinuxOptions": { + "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": "string" + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": "string" + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": "string" + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": "string" + } + } + }, + "seccompProfile": { + "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "object", + "required": [ + "type" + ], + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": "string" + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", + "type": "string" + } + } + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "type": "integer", + "format": "int64" + } + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", + "type": "array", + "items": { + "description": "Sysctl defines a kernel parameter to be set", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + } + } + } + } + }, + "serviceAccountName": { + "description": "If specified, the pod's service account", + "type": "string" + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "type": "array", + "items": { + "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", + "type": "string" + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + } + } + } + } + } + }, + "serviceType": { + "description": "Optional service type for Kubernetes solver service. Supported values\nare NodePort or ClusterIP. If unset, defaults to NodePort.", + "type": "string" + } + } + } + } + }, + "selector": { + "description": "Selector selects a set of DNSNames on the Certificate resource that\nshould be solved using this challenge solver.\nIf not specified, the solver will be treated as the 'default' solver\nwith the lowest priority, i.e. if any other solver has a more specific\nmatch, it will be used instead.", + "type": "object", + "properties": { + "dnsNames": { + "description": "List of DNSNames that this solver will be used to solve.\nIf specified and a match is found, a dnsNames selector will take\nprecedence over a dnsZones selector.\nIf multiple solvers match with the same dnsNames value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "type": "array", + "items": { + "type": "string" + } + }, + "dnsZones": { + "description": "List of DNSZones that this solver will be used to solve.\nThe most specific DNS zone match specified here will take precedence\nover other DNS zone matches, so a solver specifying sys.example.com\nwill be selected over one specifying example.com for the domain\nwww.sys.example.com.\nIf multiple solvers match with the same dnsZones value, the solver\nwith the most matching labels in matchLabels will be selected.\nIf neither has more matches, the solver defined earlier in the list\nwill be selected.", + "type": "array", + "items": { + "type": "string" + } + }, + "matchLabels": { + "description": "A label selector that is used to refine the set of certificate's that\nthis challenge solver will apply to.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "type": "array" + } + }, + "required": [ + "privateKeySecretRef", + "server" + ], + "type": "object" + }, + "ca": { + "description": "CA configures this issuer to sign certificates using a signing CA keypair\nstored in a Secret resource.\nThis is used to build internal PKIs that are managed by cert-manager.", + "properties": { + "crlDistributionPoints": { + "description": "The CRL distribution points is an X.509 v3 certificate extension which identifies\nthe location of the CRL from which the revocation of this certificate can be checked.\nIf not set, certificates will be issued without distribution points set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "issuingCertificateURLs": { + "description": "IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates\nit creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details.\nAs an example, such a URL might be \"http://ca.domain.com/ca.crt\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "ocspServers": { + "description": "The OCSP server list is an X.509 v3 extension that defines a list of\nURLs of OCSP responders. The OCSP responders can be queried for the\nrevocation status of an issued certificate. If not set, the\ncertificate will be issued with no OCSP servers set. For example, an\nOCSP server URL could be \"http://ocsp.int-x3.letsencrypt.org\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "secretName": { + "description": "SecretName is the name of the secret used to sign Certificates issued\nby this Issuer.", + "type": "string" + } + }, + "required": [ + "secretName" + ], + "type": "object" + }, + "selfSigned": { + "description": "SelfSigned configures this issuer to 'self sign' certificates using the\nprivate key used to create the CertificateRequest object.", + "properties": { + "crlDistributionPoints": { + "description": "The CRL distribution points is an X.509 v3 certificate extension which identifies\nthe location of the CRL from which the revocation of this certificate can be checked.\nIf not set certificate will be issued without CDP. Values are strings.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "vault": { + "description": "Vault configures this issuer to sign certificates using a HashiCorp Vault\nPKI backend.", + "properties": { + "auth": { + "description": "Auth configures how cert-manager authenticates with the Vault server.", + "properties": { + "appRole": { + "description": "AppRole authenticates with Vault using the App Role auth mechanism,\nwith the role and secret stored in a Kubernetes Secret resource.", + "properties": { + "path": { + "description": "Path where the App Role authentication backend is mounted in Vault, e.g:\n\"approle\"", + "type": "string" + }, + "roleId": { + "description": "RoleID configured in the App Role authentication backend when setting\nup the authentication backend in Vault.", + "type": "string" + }, + "secretRef": { + "description": "Reference to a key in a Secret that contains the App Role secret used\nto authenticate with Vault.\nThe `key` field must be specified and denotes which entry within the Secret\nresource is used as the app role secret.", + "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": [ + "path", + "roleId", + "secretRef" + ], + "type": "object" + }, + "clientCertificate": { + "description": "ClientCertificate authenticates with Vault by presenting a client\ncertificate during the request's TLS handshake.\nWorks only when using HTTPS protocol.", + "properties": { + "mountPath": { + "description": "The Vault mountPath here is the mount path to use when authenticating with\nVault. For example, setting a value to `/v1/auth/foo`, will use the path\n`/v1/auth/foo/login` to authenticate with Vault. If unspecified, the\ndefault value \"/v1/auth/cert\" will be used.", + "type": "string" + }, + "name": { + "description": "Name of the certificate role to authenticate against.\nIf not set, matching any certificate role, if available.", + "type": "string" + }, + "secretName": { + "description": "Reference to Kubernetes Secret of type \"kubernetes.io/tls\" (hence containing\ntls.crt and tls.key) used to authenticate to Vault using TLS client\nauthentication.", + "type": "string" + } + }, + "type": "object" + }, + "kubernetes": { + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount\ntoken stored in the named Secret resource to the Vault server.", + "properties": { + "mountPath": { + "description": "The Vault mountPath here is the mount path to use when authenticating with\nVault. For example, setting a value to `/v1/auth/foo`, will use the path\n`/v1/auth/foo/login` to authenticate with Vault. If unspecified, the\ndefault value \"/v1/auth/kubernetes\" will be used.", + "type": "string" + }, + "role": { + "description": "A required field containing the Vault Role to assume. A Role binds a\nKubernetes ServiceAccount with a set of Vault policies.", + "type": "string" + }, + "secretRef": { + "description": "The required Secret field containing a Kubernetes ServiceAccount JWT used\nfor authenticating with Vault. Use of 'ambient credentials' is not\nsupported.", + "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" + }, + "serviceAccountRef": { + "description": "A reference to a service account that will be used to request a bound\ntoken (also known as \"projected token\"). Compared to using \"secretRef\",\nusing this field means that you don't rely on statically bound tokens. To\nuse this field, you must configure an RBAC rule to let cert-manager\nrequest a token.", + "properties": { + "audiences": { + "description": "TokenAudiences is an optional list of extra audiences to include in the token passed to Vault. The default token\nconsisting of the issuer's namespace and name is always included.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Name of the ServiceAccount used to request a token.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + } + }, + "required": [ + "role" + ], + "type": "object" + }, + "tokenSecretRef": { + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "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" + } + }, + "type": "object" + }, + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which will be used to validate the certificate\nchain presented by Vault. Only used if using HTTPS to connect to Vault and\nignored for HTTP connections.\nMutually exclusive with CABundleSecretRef.\nIf neither CABundle nor CABundleSecretRef are defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.", + "format": "byte", + "type": "string" + }, + "caBundleSecretRef": { + "description": "Reference to a Secret containing a bundle of PEM-encoded CAs to use when\nverifying the certificate chain presented by Vault when using HTTPS.\nMutually exclusive with CABundle.\nIf neither CABundle nor CABundleSecretRef are defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.\nIf no key for the Secret is specified, cert-manager will default to 'ca.crt'.", + "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" + }, + "clientCertSecretRef": { + "description": "Reference to a Secret containing a PEM-encoded Client Certificate to use when the\nVault server requires mTLS.", + "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" + }, + "clientKeySecretRef": { + "description": "Reference to a Secret containing a PEM-encoded Client Private Key to use when the\nVault server requires mTLS.", + "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" + }, + "namespace": { + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\"\nMore about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string" + }, + "path": { + "description": "Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g:\n\"my_pki_mount/sign/my-role-name\".", + "type": "string" + }, + "server": { + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string" + }, + "serverName": { + "description": "ServerName is used to verify the hostname on the returned certificates\nby the Vault server.", + "type": "string" + } + }, + "required": [ + "auth", + "path", + "server" + ], + "type": "object" + }, + "venafi": { + "description": "Venafi configures this issuer to sign certificates using a Venafi TPP\nor Venafi Cloud policy zone.", + "properties": { + "cloud": { + "description": "Cloud specifies the Venafi cloud configuration settings.\nOnly one of TPP or Cloud may be specified.", + "properties": { + "apiTokenSecretRef": { + "description": "APITokenSecretRef is a secret key selector for the Venafi Cloud API token.", + "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" + }, + "url": { + "description": "URL is the base URL for Venafi Cloud.\nDefaults to \"https://api.venafi.cloud/\".", + "type": "string" + } + }, + "required": [ + "apiTokenSecretRef" + ], + "type": "object" + }, + "tpp": { + "description": "TPP specifies Trust Protection Platform configuration settings.\nOnly one of TPP or Cloud may be specified.", + "properties": { + "caBundle": { + "description": "Base64-encoded bundle of PEM CAs which will be used to validate the certificate\nchain presented by the TPP server. Only used if using HTTPS; ignored for HTTP.\nIf undefined, the certificate bundle in the cert-manager controller container\nis used to validate the chain.", + "format": "byte", + "type": "string" + }, + "caBundleSecretRef": { + "description": "Reference to a Secret containing a base64-encoded bundle of PEM CAs\nwhich will be used to validate the certificate chain presented by the TPP server.\nOnly used if using HTTPS; ignored for HTTP. Mutually exclusive with CABundle.\nIf neither CABundle nor CABundleSecretRef is defined, the certificate bundle in\nthe cert-manager controller container is used to validate the TLS connection.", + "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" + }, + "credentialsRef": { + "description": "CredentialsRef is a reference to a Secret containing the Venafi TPP API credentials.\nThe secret must contain the key 'access-token' for the Access Token Authentication,\nor two keys, 'username' and 'password' for the API Keys Authentication.", + "properties": { + "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" + }, + "url": { + "description": "URL is the base URL for the vedsdk endpoint of the Venafi TPP instance,\nfor example: \"https://tpp.example.com/vedsdk\".", + "type": "string" + } + }, + "required": [ + "credentialsRef", + "url" + ], + "type": "object" + }, + "zone": { + "description": "Zone is the Venafi Policy Zone to use for this issuer.\nAll requests made to the Venafi platform will be restricted by the named\nzone policy.\nThis field is required.", + "type": "string" + } + }, + "required": [ + "zone" + ], + "type": "object" + } + }, + "type": "object" + }, + "status": { + "description": "Status of the Issuer. This is set and managed automatically.", + "properties": { + "acme": { + "description": "ACME specific status options.\nThis field should only be set if the Issuer is configured to use an ACME\nserver to issue certificates.", + "properties": { + "lastPrivateKeyHash": { + "description": "LastPrivateKeyHash is a hash of the private key associated with the latest\nregistered ACME account, in order to track changes made to registered account\nassociated with the Issuer", + "type": "string" + }, + "lastRegisteredEmail": { + "description": "LastRegisteredEmail is the email associated with the latest registered\nACME account, in order to track changes made to registered account\nassociated with the Issuer", + "type": "string" + }, + "uri": { + "description": "URI is the unique account identifier, which can also be used to retrieve\naccount details from the CA", + "type": "string" + } + }, + "type": "object" + }, + "conditions": { + "description": "List of status conditions to indicate the status of a CertificateRequest.\nKnown condition types are `Ready`.", + "items": { + "description": "IssuerCondition contains condition information for an Issuer.", + "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 Issuer.", + "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`).", + "type": "string" + } + } + }, + "type": "array", + "x_kubernetes_list_map_keys": [ + "type" + ], + "x_kubernetes_list_type": "map" + } + }, + "type": "object" + } + }, + "required": [ + "spec" + ], + "type": "object" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SIssuerV1.ts b/src/__generated__/resources/K8SIssuerV1.ts new file mode 100644 index 0000000..5825e10 --- /dev/null +++ b/src/__generated__/resources/K8SIssuerV1.ts @@ -0,0 +1,3066 @@ +/* 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. + */ + +/** + * An Issuer represents a certificate issuing authority which can be + * referenced as part of `issuerRef` fields. + * It is scoped to a single namespace and can therefore only be referenced by + * resources within the same namespace. + */ +export interface K8SIssuerV1 { + /** + * 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?: {}; + /** + * Desired state of the Issuer resource. + */ + spec: { + /** + * ACME configures this issuer to communicate with a RFC8555 (ACME) server + * to obtain signed x509 certificates. + */ + acme?: { + /** + * Base64-encoded bundle of PEM CAs which can be used to validate the certificate + * chain presented by the ACME server. + * Mutually exclusive with SkipTLSVerify; prefer using CABundle to prevent various + * kinds of security vulnerabilities. + * If CABundle and SkipTLSVerify are unset, the system certificate bundle inside + * the container is used to validate the TLS connection. + */ + caBundle?: string; + /** + * Enables or disables generating a new ACME account key. + * If true, the Issuer resource will *not* request a new account but will expect + * the account key to be supplied via an existing secret. + * If false, the cert-manager system will generate a new ACME account key + * for the Issuer. + * Defaults to false. + */ + disableAccountKeyGeneration?: boolean; + /** + * Email is the email address to be associated with the ACME account. + * This field is optional, but it is strongly recommended to be set. + * It will be used to contact you in case of issues with your account or + * certificates, including expiry notification emails. + * This field may be updated after the account is initially registered. + */ + email?: string; + /** + * Enables requesting a Not After date on certificates that matches the + * duration of the certificate. This is not supported by all ACME servers + * like Let's Encrypt. If set to true when the ACME server does not support + * it, it will create an error on the Order. + * Defaults to false. + */ + enableDurationFeature?: boolean; + /** + * ExternalAccountBinding is a reference to a CA external account of the ACME + * server. + * If set, upon registration cert-manager will attempt to associate the given + * external account credentials with the registered ACME account. + */ + externalAccountBinding?: { + /** + * Deprecated: keyAlgorithm field exists for historical compatibility + * reasons and should not be used. The algorithm is now hardcoded to HS256 + * in golang/x/crypto/acme. + */ + keyAlgorithm?: string; + /** + * keyID is the ID of the CA key that the External Account is bound to. + */ + keyID: string; + /** + * keySecretRef is a Secret Key Selector referencing a data item in a Kubernetes + * Secret which holds the symmetric MAC key of the External Account Binding. + * The `key` is the index string that is paired with the key data in the + * Secret and should not be confused with the key data itself, or indeed with + * the External Account Binding keyID above. + * The secret key stored in the Secret **must** be un-padded, base64 URL + * encoded data. + */ + keySecretRef: { + /** + * 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; + }; + }; + /** + * PreferredChain is the chain to use if the ACME server outputs multiple. + * PreferredChain is no guarantee that this one gets delivered by the ACME + * endpoint. + * For example, for Let's Encrypt's DST cross-sign you would use: + * "DST Root CA X3" or "ISRG Root X1" for the newer Let's Encrypt root CA. + * This value picks the first certificate bundle in the combined set of + * ACME default and alternative chains that has a root-most certificate with + * this value as its issuer's commonname. + */ + preferredChain?: string; + /** + * PrivateKey is the name of a Kubernetes Secret resource that will be used to + * store the automatically generated ACME account private key. + * Optionally, a `key` may be specified to select a specific entry within + * the named Secret resource. + * If `key` is not specified, a default of `tls.key` will be used. + */ + privateKeySecretRef: { + /** + * 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 allows requesting a certificate profile from the ACME server. + * Supported profiles are listed by the server's ACME directory URL. + */ + profile?: string; + /** + * Server is the URL used to access the ACME server's 'directory' endpoint. + * For example, for Let's Encrypt's staging endpoint, you would use: + * "https://acme-staging-v02.api.letsencrypt.org/directory". + * Only ACME v2 endpoints (i.e. RFC 8555) are supported. + */ + server: string; + /** + * INSECURE: Enables or disables validation of the ACME server TLS certificate. + * If true, requests to the ACME server will not have the TLS certificate chain + * validated. + * Mutually exclusive with CABundle; prefer using CABundle to prevent various + * kinds of security vulnerabilities. + * Only enable this option in development environments. + * If CABundle and SkipTLSVerify are unset, the system certificate bundle inside + * the container is used to validate the TLS connection. + * Defaults to false. + */ + skipTLSVerify?: boolean; + /** + * Solvers is a list of challenge solvers that will be used to solve + * ACME challenges for the matching domains. + * Solver configurations must be provided in order to obtain certificates + * from an ACME server. + * For more information, see: https://cert-manager.io/docs/configuration/acme/ + */ + solvers?: { + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the DNS01 challenge flow. + */ + dns01?: { + /** + * Use the 'ACME DNS' (https://github.com/joohoi/acme-dns) API to manage + * DNS01 challenge records. + */ + acmeDNS?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accountSecretRef: { + /** + * 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; + }; + host: string; + }; + /** + * Use the Akamai DNS zone management API to manage DNS01 challenge records. + */ + akamai?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + accessTokenSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientSecretSecretRef: { + /** + * 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; + }; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + clientTokenSecretRef: { + /** + * 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; + }; + serviceConsumerDomain: string; + }; + /** + * Use the Microsoft Azure DNS API to manage DNS01 challenge records. + */ + azureDNS?: { + /** + * Auth: Azure Service Principal: + * The ClientID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientSecret and TenantID must also be set. + */ + clientID?: string; + /** + * Auth: Azure Service Principal: + * A reference to a Secret containing the password associated with the Service Principal. + * If set, ClientID and TenantID must also be set. + */ + clientSecretSecretRef?: { + /** + * 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; + }; + /** + * name of the Azure environment (default AzurePublicCloud) + */ + environment?: "AzurePublicCloud" | "AzureChinaCloud" | "AzureGermanCloud" | "AzureUSGovernmentCloud"; + /** + * name of the DNS zone that should be used + */ + hostedZoneName?: string; + /** + * Auth: Azure Workload Identity or Azure Managed Service Identity: + * Settings to enable Azure Workload Identity or Azure Managed Service Identity + * If set, ClientID, ClientSecret and TenantID must not be set. + */ + managedIdentity?: { + /** + * client ID of the managed identity, cannot be used at the same time as resourceID + */ + clientID?: string; + /** + * resource ID of the managed identity, cannot be used at the same time as clientID + * Cannot be used for Azure Managed Service Identity + */ + resourceID?: string; + /** + * tenant ID of the managed identity, cannot be used at the same time as resourceID + */ + tenantID?: string; + }; + /** + * resource group the DNS zone is located in + */ + resourceGroupName: string; + /** + * ID of the Azure subscription + */ + subscriptionID: string; + /** + * Auth: Azure Service Principal: + * The TenantID of the Azure Service Principal used to authenticate with Azure DNS. + * If set, ClientID and ClientSecret must also be set. + */ + tenantID?: string; + }; + /** + * Use the Google Cloud DNS API to manage DNS01 challenge records. + */ + cloudDNS?: { + /** + * HostedZoneName is an optional field that tells cert-manager in which + * Cloud DNS zone the challenge record has to be created. + * If left empty cert-manager will automatically choose a zone. + */ + hostedZoneName?: string; + project: string; + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + serviceAccountSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the Cloudflare API to manage DNS01 challenge records. + */ + cloudflare?: { + /** + * API key to use to authenticate with Cloudflare. + * Note: using an API token to authenticate is now the recommended method + * as it allows greater control of permissions. + */ + apiKeySecretRef?: { + /** + * 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; + }; + /** + * API token used to authenticate with Cloudflare. + */ + apiTokenSecretRef?: { + /** + * 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; + }; + /** + * Email of the account, only required when using API key based authentication. + */ + email?: string; + }; + /** + * CNAMEStrategy configures how the DNS01 provider should handle CNAME + * records when found in DNS zones. + */ + cnameStrategy?: "None" | "Follow"; + /** + * Use the DigitalOcean DNS API to manage DNS01 challenge records. + */ + digitalocean?: { + /** + * A reference to a specific 'key' within a Secret resource. + * In some instances, `key` is a required field. + */ + tokenSecretRef: { + /** + * 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; + }; + }; + /** + * Use RFC2136 ("Dynamic Updates in the Domain Name System") (https://datatracker.ietf.org/doc/rfc2136/) + * to manage DNS01 challenge records. + */ + rfc2136?: { + /** + * The IP address or hostname of an authoritative DNS server supporting + * RFC2136 in the form host:port. If the host is an IPv6 address it must be + * enclosed in square brackets (e.g [2001:db8::1]) ; port is optional. + * This field is required. + */ + nameserver: string; + /** + * The TSIG Algorithm configured in the DNS supporting RFC2136. Used only + * when ``tsigSecretSecretRef`` and ``tsigKeyName`` are defined. + * Supported values are (case-insensitive): ``HMACMD5`` (default), + * ``HMACSHA1``, ``HMACSHA256`` or ``HMACSHA512``. + */ + tsigAlgorithm?: string; + /** + * The TSIG Key name configured in the DNS. + * If ``tsigSecretSecretRef`` is defined, this field is required. + */ + tsigKeyName?: string; + /** + * The name of the secret containing the TSIG value. + * If ``tsigKeyName`` is defined, this field is required. + */ + tsigSecretSecretRef?: { + /** + * 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; + }; + }; + /** + * Use the AWS Route53 API to manage DNS01 challenge records. + */ + route53?: { + /** + * The AccessKeyID is used for authentication. + * Cannot be set when SecretAccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyID?: string; + /** + * The SecretAccessKey is used for authentication. If set, pull the AWS + * access key ID from a key within a Kubernetes Secret. + * Cannot be set when AccessKeyID is set. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + accessKeyIDSecretRef?: { + /** + * 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; + }; + /** + * Auth configures how cert-manager authenticates. + */ + auth?: { + /** + * Kubernetes authenticates with Route53 using AssumeRoleWithWebIdentity + * by passing a bound ServiceAccount token. + */ + kubernetes: { + /** + * A reference to a service account that will be used to request a bound + * token (also known as "projected token"). To use this field, you must + * configure an RBAC rule to let cert-manager request a token. + */ + serviceAccountRef: { + /** + * TokenAudiences is an optional list of audiences to include in the + * token passed to AWS. The default token consisting of the issuer's namespace + * and name is always included. + * If unset the audience defaults to `sts.amazonaws.com`. + */ + audiences?: string[]; + /** + * Name of the ServiceAccount used to request a token. + */ + name: string; + }; + }; + }; + /** + * If set, the provider will manage only this zone in Route53 and will not do a lookup using the route53:ListHostedZonesByName api call. + */ + hostedZoneID?: string; + /** + * Override the AWS region. + * + * Route53 is a global service and does not have regional endpoints but the + * region specified here (or via environment variables) is used as a hint to + * help compute the correct AWS credential scope and partition when it + * connects to Route53. See: + * - [Amazon Route 53 endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/r53.html) + * - [Global services](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/global-services.html) + * + * If you omit this region field, cert-manager will use the region from + * AWS_REGION and AWS_DEFAULT_REGION environment variables, if they are set + * in the cert-manager controller Pod. + * + * The `region` field is not needed if you use [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Webhook](https://github.com/aws/amazon-eks-pod-identity-webhook). + * In this case this `region` field value is ignored. + * + * The `region` field is not needed if you use [EKS Pod Identities](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html). + * Instead an AWS_REGION environment variable is added to the cert-manager controller Pod by: + * [Amazon EKS Pod Identity Agent](https://github.com/aws/eks-pod-identity-agent), + * In this case this `region` field value is ignored. + */ + region?: string; + /** + * Role is a Role ARN which the Route53 provider will assume using either the explicit credentials AccessKeyID/SecretAccessKey + * or the inferred credentials from environment variables, shared credentials file or AWS Instance metadata + */ + role?: string; + /** + * The SecretAccessKey is used for authentication. + * If neither the Access Key nor Key ID are set, we fall-back to using env + * vars, shared credentials file or AWS Instance metadata, + * see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials + */ + secretAccessKeySecretRef?: { + /** + * 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; + }; + }; + /** + * Configure an external webhook based DNS01 challenge solver to manage + * DNS01 challenge records. + */ + webhook?: { + /** + * Additional configuration that should be passed to the webhook apiserver + * when challenges are processed. + * This can contain arbitrary JSON data. + * Secret values should not be specified in this stanza. + * If secret values are needed (e.g., credentials for a DNS service), you + * should use a SecretKeySelector to reference a Secret resource. + * For details on the schema of this field, consult the webhook provider + * implementation's documentation. + */ + config?: { + [k: string]: unknown; + }; + /** + * The API group name that should be used when POSTing ChallengePayload + * resources to the webhook apiserver. + * This should be the same as the GroupName specified in the webhook + * provider implementation. + */ + groupName: string; + /** + * The name of the solver to use, as defined in the webhook provider + * implementation. + * This will typically be the name of the provider, e.g., 'cloudflare'. + */ + solverName: string; + }; + }; + /** + * Configures cert-manager to attempt to complete authorizations by + * performing the HTTP01 challenge flow. + * It is not possible to obtain certificates for wildcard domain names + * (e.g., `*.example.com`) using the HTTP01 challenge mechanism. + */ + http01?: { + /** + * The Gateway API is a sig-network community API that models service networking + * in Kubernetes (https://gateway-api.sigs.k8s.io/). The Gateway solver will + * create HTTPRoutes with the specified labels in the same namespace as the challenge. + * This solver is experimental, and fields / behaviour may change in the future. + */ + gatewayHTTPRoute?: { + /** + * Custom labels that will be applied to HTTPRoutes created by cert-manager + * while solving HTTP-01 challenges. + */ + labels?: { + [k: string]: string; + }; + /** + * When solving an HTTP-01 challenge, cert-manager creates an HTTPRoute. + * cert-manager needs to know which parentRefs should be used when creating + * the HTTPRoute. Usually, the parentRef references a Gateway. See: + * https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways + */ + parentRefs?: { + /** + * Group is the group of the referent. + * When unspecified, "gateway.networking.k8s.io" is inferred. + * To set the core API group (such as for a "Service" kind referent), + * Group must be explicitly set to "" (empty string). + * + * Support: Core + */ + group?: string; + /** + * Kind is kind of the referent. + * + * There are two kinds of parent resources with "Core" support: + * + * * Gateway (Gateway conformance profile) + * * Service (Mesh conformance profile, ClusterIP Services only) + * + * Support for other resources is Implementation-Specific. + */ + kind?: string; + /** + * Name is the name of the referent. + * + * Support: Core + */ + name: string; + /** + * Namespace is the namespace of the referent. When unspecified, this refers + * to the local namespace of the Route. + * + * Note that there are specific rules for ParentRefs which cross namespace + * boundaries. Cross-namespace references are only valid if they are explicitly + * allowed by something in the namespace they are referring to. For example: + * Gateway has the AllowedRoutes field, and ReferenceGrant provides a + * generic way to enable any other kind of cross-namespace reference. + * + * + * ParentRefs from a Route to a Service in the same namespace are "producer" + * routes, which apply default routing rules to inbound connections from + * any namespace to the Service. + * + * ParentRefs from a Route to a Service in a different namespace are + * "consumer" routes, and these routing rules are only applied to outbound + * connections originating from the same namespace as the Route, for which + * the intended destination of the connections are a Service targeted as a + * ParentRef of the Route. + * + * + * Support: Core + */ + namespace?: string; + /** + * Port is the network port this Route targets. It can be interpreted + * differently based on the type of parent resource. + * + * When the parent resource is a Gateway, this targets all listeners + * listening on the specified port that also support this kind of Route(and + * select this Route). It's not recommended to set `Port` unless the + * networking behaviors specified in a Route must apply to a specific port + * as opposed to a listener(s) whose port(s) may be changed. When both Port + * and SectionName are specified, the name and port of the selected listener + * must match both specified values. + * + * + * When the parent resource is a Service, this targets a specific port in the + * Service spec. When both Port (experimental) and SectionName are specified, + * the name and port of the selected port must match both specified values. + * + * + * Implementations MAY choose to support other parent resources. + * Implementations supporting other types of parent resources MUST clearly + * document how/if Port is interpreted. + * + * For the purpose of status, an attachment is considered successful as + * long as the parent resource accepts it partially. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment + * from the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, + * the Route MUST be considered detached from the Gateway. + * + * Support: Extended + */ + port?: number; + /** + * SectionName is the name of a section within the target resource. In the + * following resources, SectionName is interpreted as the following: + * + * * Gateway: Listener name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * * Service: Port name. When both Port (experimental) and SectionName + * are specified, the name and port of the selected listener must match + * both specified values. + * + * Implementations MAY choose to support attaching Routes to other resources. + * If that is the case, they MUST clearly document how SectionName is + * interpreted. + * + * When unspecified (empty string), this will reference the entire resource. + * For the purpose of status, an attachment is considered successful if at + * least one section in the parent resource accepts it. For example, Gateway + * listeners can restrict which Routes can attach to them by Route kind, + * namespace, or hostname. If 1 of 2 Gateway listeners accept attachment from + * the referencing Route, the Route MUST be considered successfully + * attached. If no Gateway listeners accept attachment from this Route, the + * Route MUST be considered detached from the Gateway. + * + * Support: Core + */ + sectionName?: string; + }[]; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + /** + * The ingress based HTTP01 challenge solver will solve challenges by + * creating or modifying Ingress resources in order to route requests for + * '/.well-known/acme-challenge/XYZ' to 'challenge solver' pods that are + * provisioned by cert-manager for each Challenge to be completed. + */ + ingress?: { + /** + * This field configures the annotation `kubernetes.io/ingress.class` when + * creating Ingress resources to solve ACME challenges that use this + * challenge solver. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + class?: string; + /** + * This field configures the field `ingressClassName` on the created Ingress + * resources used to solve ACME challenges that use this challenge solver. + * This is the recommended way of configuring the ingress class. Only one of + * `class`, `name` or `ingressClassName` may be specified. + */ + ingressClassName?: string; + /** + * Optional ingress template used to configure the ACME challenge solver + * ingress used for HTTP01 challenges. + */ + ingressTemplate?: { + /** + * ObjectMeta overrides for the ingress used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver ingress. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver ingress. + */ + labels?: { + [k: string]: string; + }; + }; + }; + /** + * The name of the ingress resource that should have ACME challenge solving + * routes inserted into it in order to solve HTTP01 challenges. + * This is typically used in conjunction with ingress controllers like + * ingress-gce, which maintains a 1:1 mapping between external IPs and + * ingress resources. Only one of `class`, `name` or `ingressClassName` may + * be specified. + */ + name?: string; + /** + * Optional pod template used to configure the ACME challenge solver pods + * used for HTTP01 challenges. + */ + podTemplate?: { + /** + * ObjectMeta overrides for the pod used to solve HTTP01 challenges. + * Only the 'labels' and 'annotations' fields may be set. + * If labels or annotations overlap with in-built values, the values here + * will override the in-built values. + */ + metadata?: { + /** + * Annotations that should be added to the created ACME HTTP01 solver pods. + */ + annotations?: { + [k: string]: string; + }; + /** + * Labels that should be added to the created ACME HTTP01 solver pods. + */ + labels?: { + [k: string]: string; + }; + }; + /** + * PodSpec defines overrides for the HTTP01 challenge solver pod. + * Check ACMEChallengeSolverHTTP01IngressPodSpec to find out currently supported fields. + * All other fields will be ignored. + */ + spec?: { + /** + * If specified, the pod's scheduling constraints + */ + affinity?: { + /** + * Describes node affinity scheduling rules for the pod. + */ + nodeAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node matches the corresponding matchExpressions; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * A node selector term, associated with the corresponding weight. + */ + preference: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }; + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to an update), the system + * may or may not try to eventually evict the pod from its node. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A list of node selector terms. The terms are ORed. + */ + nodeSelectorTerms: { + /** + * A list of node selector requirements by node's labels. + */ + matchExpressions?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + /** + * A list of node selector requirements by node's fields. + */ + matchFields?: { + /** + * The label key that the selector applies to. + */ + key: string; + /** + * Represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + */ + operator: string; + /** + * An array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. If the operator is Gt or Lt, the values + * array must have a single element, which will be interpreted as an integer. + * This array is replaced during a strategic merge patch. + */ + values?: string[]; + }[]; + }[]; + }; + }; + /** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ + podAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + /** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ + podAntiAffinity?: { + /** + * The scheduler will prefer to schedule pods to nodes that satisfy + * the anti-affinity expressions specified by this field, but it may choose + * a node that violates one or more of the expressions. The node that is + * most preferred is the one with the greatest sum of weights, i.e. + * for each node that meets all of the scheduling requirements (resource + * request, requiredDuringScheduling anti-affinity expressions, etc.), + * compute a sum by iterating through the elements of this field and adding + * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + * node(s) with the highest sum are the most preferred. + */ + preferredDuringSchedulingIgnoredDuringExecution?: { + /** + * Required. A pod affinity term, associated with the corresponding weight. + */ + podAffinityTerm: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }; + /** + * weight associated with matching the corresponding podAffinityTerm, + * in the range 1-100. + */ + weight: number; + }[]; + /** + * If the anti-affinity requirements specified by this field are not met at + * scheduling time, the pod will not be scheduled onto the node. + * If the anti-affinity requirements specified by this field cease to be met + * at some point during pod execution (e.g. due to a pod label update), the + * system may or may not try to eventually evict the pod from its node. + * When there are multiple elements, the lists of nodes corresponding to each + * podAffinityTerm are intersected, i.e. all terms must be satisfied. + */ + requiredDuringSchedulingIgnoredDuringExecution?: { + /** + * A label query over a set of resources, in this case pods. + * If it's null, this PodAffinityTerm matches with no Pods. + */ + labelSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * MatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both matchLabelKeys and labelSelector. + * Also, matchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + matchLabelKeys?: string[]; + /** + * MismatchLabelKeys is a set of pod label keys to select which pods will + * be taken into consideration. The keys are used to lookup values from the + * incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` + * to select the group of existing pods which pods will be taken into consideration + * for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming + * pod labels will be ignored. The default value is empty. + * The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. + * Also, mismatchLabelKeys cannot be set when labelSelector isn't set. + * This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + */ + mismatchLabelKeys?: string[]; + /** + * A label query over the set of namespaces that the term applies to. + * The term is applied to the union of the namespaces selected by this field + * and the ones listed in the namespaces field. + * null selector and null or empty namespaces list means "this pod's namespace". + * An empty selector ({}) matches all namespaces. + */ + namespaceSelector?: { + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: { + /** + * key is the label key that the selector applies to. + */ + key: string; + /** + * operator represents a key's relationship to a set of values. + * Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator: string; + /** + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + */ + values?: string[]; + }[]; + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * namespaces specifies a static list of namespace names that the term applies to. + * The term is applied to the union of the namespaces listed in this field + * and the ones selected by namespaceSelector. + * null or empty namespaces list and null namespaceSelector means "this pod's namespace". + */ + namespaces?: string[]; + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + * the labelSelector in the specified namespaces, where co-located is defined as running on a node + * whose value of the label with key topologyKey matches that of any node on which any of the + * selected pods is running. + * Empty topologyKey is not allowed. + */ + topologyKey: string; + }[]; + }; + }; + /** + * If specified, the pod's imagePullSecrets + */ + imagePullSecrets?: { + /** + * Name of the referent. + * This field is effectively required, but due to backwards compatibility is + * allowed to be empty. Instances of this type with an empty value here are + * almost certainly wrong. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name?: string; + }[]; + /** + * NodeSelector is a selector which must be true for the pod to fit on a node. + * Selector which must match a node's labels for the pod to be scheduled on that node. + * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + */ + nodeSelector?: { + [k: string]: string; + }; + /** + * If specified, the pod's priorityClassName. + */ + priorityClassName?: string; + /** + * If specified, the pod's security context + */ + securityContext?: { + /** + * A special supplemental group that applies to all containers in a pod. + * Some volume types allow the Kubelet to change the ownership of that volume + * to be owned by the pod: + * + * 1. The owning GID will be the FSGroup + * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + * 3. The permission bits are OR'd with rw-rw---- + * + * If unset, the Kubelet will not modify the ownership and permissions of any volume. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroup?: number; + /** + * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume + * before being exposed inside Pod. This field will only apply to + * volume types which support fsGroup based ownership(and permissions). + * It will have no effect on ephemeral volume types such as: secret, configmaps + * and emptydir. + * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used. + * Note that this field cannot be set when spec.os.name is windows. + */ + fsGroupChangePolicy?: string; + /** + * The GID to run the entrypoint of the container process. + * Uses runtime default if unset. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsGroup?: number; + /** + * Indicates that the container must run as a non-root user. + * If true, the Kubelet will validate the image at runtime to ensure that it + * does not run as UID 0 (root) and fail to start the container if it does. + * If unset or false, no such validation will be performed. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence. + */ + runAsNonRoot?: boolean; + /** + * The UID to run the entrypoint of the container process. + * Defaults to user specified in image metadata if unspecified. + * May also be set in SecurityContext. If set in both SecurityContext and + * PodSecurityContext, the value specified in SecurityContext takes precedence + * for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + runAsUser?: number; + /** + * The SELinux context to be applied to all containers. + * If unspecified, the container runtime will allocate a random SELinux context for each + * container. May also be set in SecurityContext. If set in + * both SecurityContext and PodSecurityContext, the value specified in SecurityContext + * takes precedence for that container. + * Note that this field cannot be set when spec.os.name is windows. + */ + seLinuxOptions?: { + /** + * Level is SELinux level label that applies to the container. + */ + level?: string; + /** + * Role is a SELinux role label that applies to the container. + */ + role?: string; + /** + * Type is a SELinux type label that applies to the container. + */ + type?: string; + /** + * User is a SELinux user label that applies to the container. + */ + user?: string; + }; + /** + * The seccomp options to use by the containers in this pod. + * Note that this field cannot be set when spec.os.name is windows. + */ + seccompProfile?: { + /** + * localhostProfile indicates a profile defined in a file on the node should be used. + * The profile must be preconfigured on the node to work. + * Must be a descending path, relative to the kubelet's configured seccomp profile location. + * Must be set if type is "Localhost". Must NOT be set for any other type. + */ + localhostProfile?: string; + /** + * type indicates which kind of seccomp profile will be applied. + * Valid options are: + * + * Localhost - a profile defined in a file on the node should be used. + * RuntimeDefault - the container runtime default profile should be used. + * Unconfined - no profile should be applied. + */ + type: string; + }; + /** + * A list of groups applied to the first process run in each container, in addition + * to the container's primary GID, the fsGroup (if specified), and group memberships + * defined in the container image for the uid of the container process. If unspecified, + * no additional groups are added to any container. Note that group memberships + * defined in the container image for the uid of the container process are still effective, + * even if they are not included in this list. + * Note that this field cannot be set when spec.os.name is windows. + */ + supplementalGroups?: number[]; + /** + * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + * sysctls (by the container runtime) might fail to launch. + * Note that this field cannot be set when spec.os.name is windows. + */ + sysctls?: { + /** + * Name of a property to set + */ + name: string; + /** + * Value of a property to set + */ + value: string; + }[]; + }; + /** + * If specified, the pod's service account + */ + serviceAccountName?: string; + /** + * If specified, the pod's tolerations. + */ + tolerations?: { + /** + * Effect indicates the taint effect to match. Empty means match all taint effects. + * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + */ + effect?: string; + /** + * Key is the taint key that the toleration applies to. Empty means match all taint keys. + * If the key is empty, operator must be Exists; this combination means to match all values and all keys. + */ + key?: string; + /** + * Operator represents a key's relationship to the value. + * Valid operators are Exists and Equal. Defaults to Equal. + * Exists is equivalent to wildcard for value, so that a pod can + * tolerate all taints of a particular category. + */ + operator?: string; + /** + * TolerationSeconds represents the period of time the toleration (which must be + * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + * it is not set, which means tolerate the taint forever (do not evict). Zero and + * negative values will be treated as 0 (evict immediately) by the system. + */ + tolerationSeconds?: number; + /** + * Value is the taint value the toleration matches to. + * If the operator is Exists, the value should be empty, otherwise just a regular string. + */ + value?: string; + }[]; + }; + }; + /** + * Optional service type for Kubernetes solver service. Supported values + * are NodePort or ClusterIP. If unset, defaults to NodePort. + */ + serviceType?: string; + }; + }; + /** + * Selector selects a set of DNSNames on the Certificate resource that + * should be solved using this challenge solver. + * If not specified, the solver will be treated as the 'default' solver + * with the lowest priority, i.e. if any other solver has a more specific + * match, it will be used instead. + */ + selector?: { + /** + * List of DNSNames that this solver will be used to solve. + * If specified and a match is found, a dnsNames selector will take + * precedence over a dnsZones selector. + * If multiple solvers match with the same dnsNames value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsNames?: string[]; + /** + * List of DNSZones that this solver will be used to solve. + * The most specific DNS zone match specified here will take precedence + * over other DNS zone matches, so a solver specifying sys.example.com + * will be selected over one specifying example.com for the domain + * www.sys.example.com. + * If multiple solvers match with the same dnsZones value, the solver + * with the most matching labels in matchLabels will be selected. + * If neither has more matches, the solver defined earlier in the list + * will be selected. + */ + dnsZones?: string[]; + /** + * A label selector that is used to refine the set of certificate's that + * this challenge solver will apply to. + */ + matchLabels?: { + [k: string]: string; + }; + }; + }[]; + }; + /** + * CA configures this issuer to sign certificates using a signing CA keypair + * stored in a Secret resource. + * This is used to build internal PKIs that are managed by cert-manager. + */ + ca?: { + /** + * The CRL distribution points is an X.509 v3 certificate extension which identifies + * the location of the CRL from which the revocation of this certificate can be checked. + * If not set, certificates will be issued without distribution points set. + */ + crlDistributionPoints?: string[]; + /** + * IssuingCertificateURLs is a list of URLs which this issuer should embed into certificates + * it creates. See https://www.rfc-editor.org/rfc/rfc5280#section-4.2.2.1 for more details. + * As an example, such a URL might be "http://ca.domain.com/ca.crt". + */ + issuingCertificateURLs?: string[]; + /** + * The OCSP server list is an X.509 v3 extension that defines a list of + * URLs of OCSP responders. The OCSP responders can be queried for the + * revocation status of an issued certificate. If not set, the + * certificate will be issued with no OCSP servers set. For example, an + * OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org". + */ + ocspServers?: string[]; + /** + * SecretName is the name of the secret used to sign Certificates issued + * by this Issuer. + */ + secretName: string; + }; + /** + * SelfSigned configures this issuer to 'self sign' certificates using the + * private key used to create the CertificateRequest object. + */ + selfSigned?: { + /** + * The CRL distribution points is an X.509 v3 certificate extension which identifies + * the location of the CRL from which the revocation of this certificate can be checked. + * If not set certificate will be issued without CDP. Values are strings. + */ + crlDistributionPoints?: string[]; + }; + /** + * Vault configures this issuer to sign certificates using a HashiCorp Vault + * PKI backend. + */ + vault?: { + /** + * Auth configures how cert-manager authenticates with the Vault server. + */ + auth: { + /** + * AppRole authenticates with Vault using the App Role auth mechanism, + * with the role and secret stored in a Kubernetes Secret resource. + */ + appRole?: { + /** + * Path where the App Role authentication backend is mounted in Vault, e.g: + * "approle" + */ + path: string; + /** + * RoleID configured in the App Role authentication backend when setting + * up the authentication backend in Vault. + */ + roleId: string; + /** + * Reference to a key in a Secret that contains the App Role secret used + * to authenticate with Vault. + * The `key` field must be specified and denotes which entry within the Secret + * resource is used as the app role secret. + */ + secretRef: { + /** + * 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; + }; + }; + /** + * ClientCertificate authenticates with Vault by presenting a client + * certificate during the request's TLS handshake. + * Works only when using HTTPS protocol. + */ + clientCertificate?: { + /** + * The Vault mountPath here is the mount path to use when authenticating with + * Vault. For example, setting a value to `/v1/auth/foo`, will use the path + * `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the + * default value "/v1/auth/cert" will be used. + */ + mountPath?: string; + /** + * Name of the certificate role to authenticate against. + * If not set, matching any certificate role, if available. + */ + name?: string; + /** + * Reference to Kubernetes Secret of type "kubernetes.io/tls" (hence containing + * tls.crt and tls.key) used to authenticate to Vault using TLS client + * authentication. + */ + secretName?: string; + }; + /** + * Kubernetes authenticates with Vault by passing the ServiceAccount + * token stored in the named Secret resource to the Vault server. + */ + kubernetes?: { + /** + * The Vault mountPath here is the mount path to use when authenticating with + * Vault. For example, setting a value to `/v1/auth/foo`, will use the path + * `/v1/auth/foo/login` to authenticate with Vault. If unspecified, the + * default value "/v1/auth/kubernetes" will be used. + */ + mountPath?: string; + /** + * A required field containing the Vault Role to assume. A Role binds a + * Kubernetes ServiceAccount with a set of Vault policies. + */ + role: string; + /** + * The required Secret field containing a Kubernetes ServiceAccount JWT used + * for authenticating with Vault. Use of 'ambient credentials' is not + * supported. + */ + secretRef?: { + /** + * 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; + }; + /** + * A reference to a service account that will be used to request a bound + * token (also known as "projected token"). Compared to using "secretRef", + * using this field means that you don't rely on statically bound tokens. To + * use this field, you must configure an RBAC rule to let cert-manager + * request a token. + */ + serviceAccountRef?: { + /** + * TokenAudiences is an optional list of extra audiences to include in the token passed to Vault. The default token + * consisting of the issuer's namespace and name is always included. + */ + audiences?: string[]; + /** + * Name of the ServiceAccount used to request a token. + */ + name: string; + }; + }; + /** + * TokenSecretRef authenticates with Vault by presenting a token. + */ + tokenSecretRef?: { + /** + * 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; + }; + }; + /** + * Base64-encoded bundle of PEM CAs which will be used to validate the certificate + * chain presented by Vault. Only used if using HTTPS to connect to Vault and + * ignored for HTTP connections. + * Mutually exclusive with CABundleSecretRef. + * If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + */ + caBundle?: string; + /** + * Reference to a Secret containing a bundle of PEM-encoded CAs to use when + * verifying the certificate chain presented by Vault when using HTTPS. + * Mutually exclusive with CABundle. + * If neither CABundle nor CABundleSecretRef are defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + * If no key for the Secret is specified, cert-manager will default to 'ca.crt'. + */ + caBundleSecretRef?: { + /** + * 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; + }; + /** + * Reference to a Secret containing a PEM-encoded Client Certificate to use when the + * Vault server requires mTLS. + */ + clientCertSecretRef?: { + /** + * 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; + }; + /** + * Reference to a Secret containing a PEM-encoded Client Private Key to use when the + * Vault server requires mTLS. + */ + clientKeySecretRef?: { + /** + * 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; + }; + /** + * Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1" + * More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces + */ + namespace?: string; + /** + * Path is the mount path of the Vault PKI backend's `sign` endpoint, e.g: + * "my_pki_mount/sign/my-role-name". + */ + path: string; + /** + * Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200". + */ + server: string; + /** + * ServerName is used to verify the hostname on the returned certificates + * by the Vault server. + */ + serverName?: string; + }; + /** + * Venafi configures this issuer to sign certificates using a Venafi TPP + * or Venafi Cloud policy zone. + */ + venafi?: { + /** + * Cloud specifies the Venafi cloud configuration settings. + * Only one of TPP or Cloud may be specified. + */ + cloud?: { + /** + * APITokenSecretRef is a secret key selector for the Venafi Cloud API token. + */ + apiTokenSecretRef: { + /** + * 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; + }; + /** + * URL is the base URL for Venafi Cloud. + * Defaults to "https://api.venafi.cloud/". + */ + url?: string; + }; + /** + * TPP specifies Trust Protection Platform configuration settings. + * Only one of TPP or Cloud may be specified. + */ + tpp?: { + /** + * Base64-encoded bundle of PEM CAs which will be used to validate the certificate + * chain presented by the TPP server. Only used if using HTTPS; ignored for HTTP. + * If undefined, the certificate bundle in the cert-manager controller container + * is used to validate the chain. + */ + caBundle?: string; + /** + * Reference to a Secret containing a base64-encoded bundle of PEM CAs + * which will be used to validate the certificate chain presented by the TPP server. + * Only used if using HTTPS; ignored for HTTP. Mutually exclusive with CABundle. + * If neither CABundle nor CABundleSecretRef is defined, the certificate bundle in + * the cert-manager controller container is used to validate the TLS connection. + */ + caBundleSecretRef?: { + /** + * 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; + }; + /** + * CredentialsRef is a reference to a Secret containing the Venafi TPP API credentials. + * The secret must contain the key 'access-token' for the Access Token Authentication, + * or two keys, 'username' and 'password' for the API Keys Authentication. + */ + credentialsRef: { + /** + * Name of the resource being referred to. + * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + */ + name: string; + }; + /** + * URL is the base URL for the vedsdk endpoint of the Venafi TPP instance, + * for example: "https://tpp.example.com/vedsdk". + */ + url: string; + }; + /** + * Zone is the Venafi Policy Zone to use for this issuer. + * All requests made to the Venafi platform will be restricted by the named + * zone policy. + * This field is required. + */ + zone: string; + }; + }; + /** + * Status of the Issuer. This is set and managed automatically. + */ + status?: { + /** + * ACME specific status options. + * This field should only be set if the Issuer is configured to use an ACME + * server to issue certificates. + */ + acme?: { + /** + * LastPrivateKeyHash is a hash of the private key associated with the latest + * registered ACME account, in order to track changes made to registered account + * associated with the Issuer + */ + lastPrivateKeyHash?: string; + /** + * LastRegisteredEmail is the email associated with the latest registered + * ACME account, in order to track changes made to registered account + * associated with the Issuer + */ + lastRegisteredEmail?: string; + /** + * URI is the unique account identifier, which can also be used to retrieve + * account details from the CA + */ + uri?: string; + }; + /** + * List of status conditions to indicate the status of a CertificateRequest. + * Known condition types are `Ready`. + */ + 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 Issuer. + */ + 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`). + */ + type: string; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SOrderV1.json b/src/__generated__/resources/K8SOrderV1.json new file mode 100644 index 0000000..36c9a08 --- /dev/null +++ b/src/__generated__/resources/K8SOrderV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SOrderV1.ts b/src/__generated__/resources/K8SOrderV1.ts new file mode 100644 index 0000000..ee48ae1 --- /dev/null +++ b/src/__generated__/resources/K8SOrderV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SPeerAuthenticationV1.json b/src/__generated__/resources/K8SPeerAuthenticationV1.json new file mode 100644 index 0000000..e5ecf3c --- /dev/null +++ b/src/__generated__/resources/K8SPeerAuthenticationV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SPeerAuthenticationV1.ts b/src/__generated__/resources/K8SPeerAuthenticationV1.ts new file mode 100644 index 0000000..8e76140 --- /dev/null +++ b/src/__generated__/resources/K8SPeerAuthenticationV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SPeerAuthenticationV1beta1.json b/src/__generated__/resources/K8SPeerAuthenticationV1beta1.json new file mode 100644 index 0000000..e5ecf3c --- /dev/null +++ b/src/__generated__/resources/K8SPeerAuthenticationV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SPeerAuthenticationV1beta1.ts b/src/__generated__/resources/K8SPeerAuthenticationV1beta1.ts new file mode 100644 index 0000000..1f56802 --- /dev/null +++ b/src/__generated__/resources/K8SPeerAuthenticationV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SPostgresDatabaseV1.json b/src/__generated__/resources/K8SPostgresDatabaseV1.json new file mode 100644 index 0000000..0aa161a --- /dev/null +++ b/src/__generated__/resources/K8SPostgresDatabaseV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SPostgresDatabaseV1.ts b/src/__generated__/resources/K8SPostgresDatabaseV1.ts new file mode 100644 index 0000000..1341a3f --- /dev/null +++ b/src/__generated__/resources/K8SPostgresDatabaseV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SProxyConfigV1beta1.json b/src/__generated__/resources/K8SProxyConfigV1beta1.json new file mode 100644 index 0000000..99ac24a --- /dev/null +++ b/src/__generated__/resources/K8SProxyConfigV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SProxyConfigV1beta1.ts b/src/__generated__/resources/K8SProxyConfigV1beta1.ts new file mode 100644 index 0000000..b3bbd11 --- /dev/null +++ b/src/__generated__/resources/K8SProxyConfigV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SRequestAuthenticationV1.json b/src/__generated__/resources/K8SRequestAuthenticationV1.json new file mode 100644 index 0000000..87a31e6 --- /dev/null +++ b/src/__generated__/resources/K8SRequestAuthenticationV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SRequestAuthenticationV1.ts b/src/__generated__/resources/K8SRequestAuthenticationV1.ts new file mode 100644 index 0000000..9740907 --- /dev/null +++ b/src/__generated__/resources/K8SRequestAuthenticationV1.ts @@ -0,0 +1,2663 @@ +/* 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 K8SRequestAuthenticationV1 { + /** + * Request authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/request_authentication.html + */ + spec?: { + /** + * Define the list of JWTs that can be validated at the selected workloads' proxy. + * + * @maxItems 4096 + */ + jwtRules?: { + /** + * The list of JWT [audiences](https://tools.ietf.org/html/rfc7519#section-4.1.3) that are allowed to access. + */ + audiences?: string[]; + /** + * If set to true, the original token will be kept for the upstream request. + */ + forwardOriginalToken?: boolean; + /** + * List of cookie names from which JWT is expected. + */ + fromCookies?: string[]; + /** + * List of header locations from which JWT is expected. + */ + fromHeaders?: { + /** + * The HTTP header name. + */ + name: string; + /** + * The prefix that should be stripped before decoding the token. + */ + prefix?: string; + }[]; + /** + * List of query parameters from which JWT is expected. + */ + fromParams?: string[]; + /** + * Identifies the issuer that issued the JWT. + */ + issuer: string; + /** + * JSON Web Key Set of public keys to validate signature of the JWT. + */ + jwks?: string; + /** + * URL of the provider's public key set to validate signature of the JWT. + */ + jwksUri?: string; + /** + * URL of the provider's public key set to validate signature of the JWT. + */ + jwks_uri?: string; + /** + * This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. + */ + outputClaimToHeaders?: { + /** + * The name of the claim to be copied from. + */ + claim: string; + /** + * The name of the header to be created. + */ + header: string; + }[]; + /** + * This field specifies the header name to output a successfully verified JWT payload to the backend. + */ + outputPayloadToHeader?: string; + /** + * 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. + */ + timeout?: 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; + }; + }; + targetRef?: { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SRequestAuthenticationV1beta1.json b/src/__generated__/resources/K8SRequestAuthenticationV1beta1.json new file mode 100644 index 0000000..87a31e6 --- /dev/null +++ b/src/__generated__/resources/K8SRequestAuthenticationV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SRequestAuthenticationV1beta1.ts b/src/__generated__/resources/K8SRequestAuthenticationV1beta1.ts new file mode 100644 index 0000000..d5f8477 --- /dev/null +++ b/src/__generated__/resources/K8SRequestAuthenticationV1beta1.ts @@ -0,0 +1,2663 @@ +/* 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 K8SRequestAuthenticationV1Beta1 { + /** + * Request authentication configuration for workloads. See more details at: https://istio.io/docs/reference/config/security/request_authentication.html + */ + spec?: { + /** + * Define the list of JWTs that can be validated at the selected workloads' proxy. + * + * @maxItems 4096 + */ + jwtRules?: { + /** + * The list of JWT [audiences](https://tools.ietf.org/html/rfc7519#section-4.1.3) that are allowed to access. + */ + audiences?: string[]; + /** + * If set to true, the original token will be kept for the upstream request. + */ + forwardOriginalToken?: boolean; + /** + * List of cookie names from which JWT is expected. + */ + fromCookies?: string[]; + /** + * List of header locations from which JWT is expected. + */ + fromHeaders?: { + /** + * The HTTP header name. + */ + name: string; + /** + * The prefix that should be stripped before decoding the token. + */ + prefix?: string; + }[]; + /** + * List of query parameters from which JWT is expected. + */ + fromParams?: string[]; + /** + * Identifies the issuer that issued the JWT. + */ + issuer: string; + /** + * JSON Web Key Set of public keys to validate signature of the JWT. + */ + jwks?: string; + /** + * URL of the provider's public key set to validate signature of the JWT. + */ + jwksUri?: string; + /** + * URL of the provider's public key set to validate signature of the JWT. + */ + jwks_uri?: string; + /** + * This field specifies a list of operations to copy the claim to HTTP headers on a successfully verified token. + */ + outputClaimToHeaders?: { + /** + * The name of the claim to be copied from. + */ + claim: string; + /** + * The name of the header to be created. + */ + header: string; + }[]; + /** + * This field specifies the header name to output a successfully verified JWT payload to the backend. + */ + outputPayloadToHeader?: string; + /** + * 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. + */ + timeout?: 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; + }; + }; + targetRef?: { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SSecretRequestV1.json b/src/__generated__/resources/K8SSecretRequestV1.json new file mode 100644 index 0000000..5bf9e0a --- /dev/null +++ b/src/__generated__/resources/K8SSecretRequestV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SSecretRequestV1.ts b/src/__generated__/resources/K8SSecretRequestV1.ts new file mode 100644 index 0000000..2c425c7 --- /dev/null +++ b/src/__generated__/resources/K8SSecretRequestV1.ts @@ -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; + }; +} diff --git a/src/__generated__/resources/K8SServiceEntryV1.json b/src/__generated__/resources/K8SServiceEntryV1.json new file mode 100644 index 0000000..0b4f195 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SServiceEntryV1.ts b/src/__generated__/resources/K8SServiceEntryV1.ts new file mode 100644 index 0000000..055a5b4 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SServiceEntryV1alpha3.json b/src/__generated__/resources/K8SServiceEntryV1alpha3.json new file mode 100644 index 0000000..0b4f195 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SServiceEntryV1alpha3.ts b/src/__generated__/resources/K8SServiceEntryV1alpha3.ts new file mode 100644 index 0000000..cf65ad9 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SServiceEntryV1beta1.json b/src/__generated__/resources/K8SServiceEntryV1beta1.json new file mode 100644 index 0000000..0b4f195 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SServiceEntryV1beta1.ts b/src/__generated__/resources/K8SServiceEntryV1beta1.ts new file mode 100644 index 0000000..cd0f6c0 --- /dev/null +++ b/src/__generated__/resources/K8SServiceEntryV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SSidecarV1.json b/src/__generated__/resources/K8SSidecarV1.json new file mode 100644 index 0000000..31d3980 --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SSidecarV1.ts b/src/__generated__/resources/K8SSidecarV1.ts new file mode 100644 index 0000000..2f77f36 --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SSidecarV1alpha3.json b/src/__generated__/resources/K8SSidecarV1alpha3.json new file mode 100644 index 0000000..31d3980 --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SSidecarV1alpha3.ts b/src/__generated__/resources/K8SSidecarV1alpha3.ts new file mode 100644 index 0000000..ad3758e --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SSidecarV1beta1.json b/src/__generated__/resources/K8SSidecarV1beta1.json new file mode 100644 index 0000000..31d3980 --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SSidecarV1beta1.ts b/src/__generated__/resources/K8SSidecarV1beta1.ts new file mode 100644 index 0000000..c1f8d47 --- /dev/null +++ b/src/__generated__/resources/K8SSidecarV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8STelemetryV1.json b/src/__generated__/resources/K8STelemetryV1.json new file mode 100644 index 0000000..140e267 --- /dev/null +++ b/src/__generated__/resources/K8STelemetryV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8STelemetryV1.ts b/src/__generated__/resources/K8STelemetryV1.ts new file mode 100644 index 0000000..456c0e1 --- /dev/null +++ b/src/__generated__/resources/K8STelemetryV1.ts @@ -0,0 +1,2720 @@ +/* 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 K8STelemetryV1 { + /** + * Telemetry configuration for workloads. See more details at: https://istio.io/docs/reference/config/telemetry.html + */ + spec?: { + /** + * Optional. + */ + accessLogging?: { + /** + * Controls logging. + */ + disabled?: boolean; + /** + * Optional. + */ + filter?: { + /** + * CEL expression for selecting when requests/connections should be logged. + */ + expression?: string; + }; + /** + * Allows tailoring of logging behavior to specific conditions. + */ + match?: { + /** + * This determines whether or not to apply the access logging configuration based on the direction of traffic relative to the proxied workload. + * + * Valid Options: CLIENT_AND_SERVER, CLIENT, SERVER + */ + mode?: "CLIENT_AND_SERVER" | "CLIENT" | "SERVER"; + }; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + }[]; + /** + * Optional. + */ + metrics?: { + /** + * Optional. + */ + overrides?: { + /** + * Optional. + */ + disabled?: boolean; + /** + * Match allows providing the scope of the override. + */ + match?: { + [k: string]: unknown; + }; + /** + * Optional. + */ + tagOverrides?: { + [k: string]: { + /** + * Operation controls whether or not to update/add a tag, or to remove it. + * + * Valid Options: UPSERT, REMOVE + */ + operation?: "UPSERT" | "REMOVE"; + /** + * Value is only considered if the operation is `UPSERT`. + */ + value?: string; + }; + }; + }[]; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + /** + * Optional. + */ + reportingInterval?: 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; + }; + }; + targetRef?: { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ]; + /** + * Optional. + */ + tracing?: { + /** + * Optional. + */ + customTags?: { + [k: string]: { + [k: string]: unknown; + }; + }; + /** + * Controls span reporting. + */ + disableSpanReporting?: boolean; + /** + * Allows tailoring of behavior to specific conditions. + */ + match?: { + /** + * This determines whether or not to apply the tracing configuration based on the direction of traffic relative to the proxied workload. + * + * Valid Options: CLIENT_AND_SERVER, CLIENT, SERVER + */ + mode?: "CLIENT_AND_SERVER" | "CLIENT" | "SERVER"; + }; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + /** + * Controls the rate at which traffic will be selected for tracing if no prior sampling decision has been made. + */ + randomSamplingPercentage?: number; + useRequestIdForTraceSampling?: boolean; + }[]; + }; + 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8STelemetryV1alpha1.json b/src/__generated__/resources/K8STelemetryV1alpha1.json new file mode 100644 index 0000000..140e267 --- /dev/null +++ b/src/__generated__/resources/K8STelemetryV1alpha1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8STelemetryV1alpha1.ts b/src/__generated__/resources/K8STelemetryV1alpha1.ts new file mode 100644 index 0000000..52b7d5b --- /dev/null +++ b/src/__generated__/resources/K8STelemetryV1alpha1.ts @@ -0,0 +1,2720 @@ +/* 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 K8STelemetryV1Alpha1 { + /** + * Telemetry configuration for workloads. See more details at: https://istio.io/docs/reference/config/telemetry.html + */ + spec?: { + /** + * Optional. + */ + accessLogging?: { + /** + * Controls logging. + */ + disabled?: boolean; + /** + * Optional. + */ + filter?: { + /** + * CEL expression for selecting when requests/connections should be logged. + */ + expression?: string; + }; + /** + * Allows tailoring of logging behavior to specific conditions. + */ + match?: { + /** + * This determines whether or not to apply the access logging configuration based on the direction of traffic relative to the proxied workload. + * + * Valid Options: CLIENT_AND_SERVER, CLIENT, SERVER + */ + mode?: "CLIENT_AND_SERVER" | "CLIENT" | "SERVER"; + }; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + }[]; + /** + * Optional. + */ + metrics?: { + /** + * Optional. + */ + overrides?: { + /** + * Optional. + */ + disabled?: boolean; + /** + * Match allows providing the scope of the override. + */ + match?: { + [k: string]: unknown; + }; + /** + * Optional. + */ + tagOverrides?: { + [k: string]: { + /** + * Operation controls whether or not to update/add a tag, or to remove it. + * + * Valid Options: UPSERT, REMOVE + */ + operation?: "UPSERT" | "REMOVE"; + /** + * Value is only considered if the operation is `UPSERT`. + */ + value?: string; + }; + }; + }[]; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + /** + * Optional. + */ + reportingInterval?: 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; + }; + }; + targetRef?: { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ]; + /** + * Optional. + */ + tracing?: { + /** + * Optional. + */ + customTags?: { + [k: string]: { + [k: string]: unknown; + }; + }; + /** + * Controls span reporting. + */ + disableSpanReporting?: boolean; + /** + * Allows tailoring of behavior to specific conditions. + */ + match?: { + /** + * This determines whether or not to apply the tracing configuration based on the direction of traffic relative to the proxied workload. + * + * Valid Options: CLIENT_AND_SERVER, CLIENT, SERVER + */ + mode?: "CLIENT_AND_SERVER" | "CLIENT" | "SERVER"; + }; + /** + * Optional. + */ + providers?: { + /** + * Required. + */ + name: string; + }[]; + /** + * Controls the rate at which traffic will be selected for tracing if no prior sampling decision has been made. + */ + randomSamplingPercentage?: number; + useRequestIdForTraceSampling?: boolean; + }[]; + }; + 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SVirtualServiceV1.json b/src/__generated__/resources/K8SVirtualServiceV1.json new file mode 100644 index 0000000..6c1d22e --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1.json @@ -0,0 +1,1476 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this virtual service is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "gateways": { + "description": "The names of gateways and sidecars that should apply these routes.", + "items": { + "type": "string" + }, + "type": "array" + }, + "hosts": { + "description": "The destination hosts to which traffic is being sent.", + "items": { + "type": "string" + }, + "type": "array" + }, + "http": { + "description": "An ordered list of route rules for HTTP traffic.", + "items": { + "type": "object", + "properties": { + "corsPolicy": { + "description": "Cross-Origin Resource Sharing policy (CORS).", + "type": "object", + "properties": { + "allowCredentials": { + "description": "Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.", + "type": "boolean", + "nullable": true + }, + "allowHeaders": { + "description": "List of HTTP headers that can be used when requesting the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "description": "List of HTTP methods allowed to access the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigin": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigins": { + "description": "String patterns that match allowed origins.", + "type": "array", + "items": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "exposeHeaders": { + "description": "A list of HTTP headers that the browsers are allowed to access.", + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "description": "Specifies how long the results of a preflight request can be cached.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "unmatchedPreflights": { + "description": "Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.\n\nValid Options: FORWARD, IGNORE", + "type": "string", + "enum": [ + "UNSPECIFIED", + "FORWARD", + "IGNORE" + ] + } + } + }, + "delegate": { + "description": "Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.", + "type": "object", + "properties": { + "name": { + "description": "Name specifies the name of the delegate VirtualService.", + "type": "string" + }, + "namespace": { + "description": "Namespace specifies the namespace where the delegate VirtualService resides.", + "type": "string" + } + } + }, + "directResponse": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "required": [ + "status" + ], + "properties": { + "body": { + "description": "Specifies the content of the response body.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ] + } + }, + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ], + "properties": { + "bytes": { + "description": "response body as base64 encoded bytes.", + "type": "string", + "format": "binary" + }, + "string": { + "type": "string" + } + } + }, + "status": { + "description": "Specifies the HTTP response status to be returned.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "fault": { + "description": "Fault injection policy to apply on HTTP traffic at the client side.", + "type": "object", + "properties": { + "abort": { + "description": "Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ] + } + }, + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ], + "properties": { + "grpcStatus": { + "description": "GRPC status code to use to abort the request.", + "type": "string" + }, + "http2Error": { + "type": "string" + }, + "httpStatus": { + "description": "HTTP status code to use to abort the Http request.", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests to be aborted with the error code provided.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + }, + "delay": { + "description": "Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ] + } + }, + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ], + "properties": { + "exponentialDelay": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "fixedDelay": { + "description": "Add a fixed delay before forwarding the request.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "percent": { + "description": "Percentage of requests on which the delay will be injected (0-100).", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests on which the delay will be injected.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "authority": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "headers": { + "description": "The header keys must be lowercase and use hyphen as the separator, e.g.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "ignoreUriCase": { + "description": "Flag to specify whether the URI matching should be case-insensitive.", + "type": "boolean" + }, + "method": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "name": { + "description": "The name assigned to a match.", + "type": "string" + }, + "port": { + "description": "Specifies the ports on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "queryParams": { + "description": "Query parameters for matching.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "scheme": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "statPrefix": { + "description": "The human readable prefix to use when emitting statistics for this route.", + "type": "string" + }, + "uri": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "withoutHeaders": { + "description": "withoutHeader has the same syntax with the header, but has opposite meaning.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + } + } + } + }, + "mirror": { + "description": "Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "mirrorPercent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrorPercentage": { + "description": "Percentage of the traffic to be mirrored by the `mirror` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + }, + "mirror_percent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrors": { + "description": "Specifies the destinations to mirror HTTP traffic in addition to the original destination.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination specifies the target of the mirror operation.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "percentage": { + "description": "Percentage of the traffic to be mirrored by the `destination` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + }, + "name": { + "description": "The name assigned to the route for debugging purposes.", + "type": "string" + }, + "redirect": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ] + } + }, + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ], + "properties": { + "authority": { + "description": "On a redirect, overwrite the Authority/Host portion of the URL with this value.", + "type": "string" + }, + "derivePort": { + "description": "On a redirect, dynamically set the port: * FROM_PROTOCOL_DEFAULT: automatically set to 80 for HTTP and 443 for HTTPS.\n\nValid Options: FROM_PROTOCOL_DEFAULT, FROM_REQUEST_PORT", + "type": "string", + "enum": [ + "FROM_PROTOCOL_DEFAULT", + "FROM_REQUEST_PORT" + ] + }, + "port": { + "description": "On a redirect, overwrite the port portion of the URL with this value.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "redirectCode": { + "description": "On a redirect, Specifies the HTTP status code to use in the redirect response.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "scheme": { + "description": "On a redirect, overwrite the scheme portion of the URL with this value.", + "type": "string" + }, + "uri": { + "description": "On a redirect, overwrite the Path portion of the URL with this value.", + "type": "string" + } + } + }, + "retries": { + "description": "Retry policy for HTTP requests.", + "type": "object", + "properties": { + "attempts": { + "description": "Number of retries to be allowed for a given request.", + "type": "integer", + "format": "int32" + }, + "perTryTimeout": { + "description": "Timeout per attempt for a given request, including the initial call and any retries.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "retryOn": { + "description": "Specifies the conditions under which retry takes place.", + "type": "string" + }, + "retryRemoteLocalities": { + "description": "Flag to specify whether the retries should retry to other localities.", + "type": "boolean", + "nullable": true + } + } + }, + "rewrite": { + "description": "Rewrite HTTP URIs and Authority headers.", + "type": "object", + "properties": { + "authority": { + "description": "rewrite the Authority/Host header with this value.", + "type": "string" + }, + "uri": { + "description": "rewrite the path (or the prefix) portion of the URI with this value.", + "type": "string" + }, + "uriRegexRewrite": { + "description": "rewrite the path portion of the URI with the specified regex.", + "type": "object", + "properties": { + "match": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + }, + "rewrite": { + "description": "The string that should replace into matching portions of original URI.", + "type": "string" + } + } + } + } + }, + "route": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + }, + "timeout": { + "description": "Timeout for HTTP requests, default is disabled.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "type": "array" + }, + "tcp": { + "description": "An ordered list of route rules for opaque TCP traffic.", + "items": { + "type": "object", + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "sourceSubnet": { + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "type": "array" + }, + "tls": { + "description": "An ordered list of route rule for non-terminated TLS & HTTPS traffic.", + "items": { + "type": "object", + "required": [ + "match" + ], + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "required": [ + "sniHosts" + ], + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sniHosts": { + "description": "SNI (server name indicator) to match on.", + "type": "array", + "items": { + "type": "string" + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SVirtualServiceV1.ts b/src/__generated__/resources/K8SVirtualServiceV1.ts new file mode 100644 index 0000000..b63f1b0 --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SVirtualServiceV1alpha3.json b/src/__generated__/resources/K8SVirtualServiceV1alpha3.json new file mode 100644 index 0000000..6c1d22e --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1alpha3.json @@ -0,0 +1,1476 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this virtual service is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "gateways": { + "description": "The names of gateways and sidecars that should apply these routes.", + "items": { + "type": "string" + }, + "type": "array" + }, + "hosts": { + "description": "The destination hosts to which traffic is being sent.", + "items": { + "type": "string" + }, + "type": "array" + }, + "http": { + "description": "An ordered list of route rules for HTTP traffic.", + "items": { + "type": "object", + "properties": { + "corsPolicy": { + "description": "Cross-Origin Resource Sharing policy (CORS).", + "type": "object", + "properties": { + "allowCredentials": { + "description": "Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.", + "type": "boolean", + "nullable": true + }, + "allowHeaders": { + "description": "List of HTTP headers that can be used when requesting the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "description": "List of HTTP methods allowed to access the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigin": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigins": { + "description": "String patterns that match allowed origins.", + "type": "array", + "items": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "exposeHeaders": { + "description": "A list of HTTP headers that the browsers are allowed to access.", + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "description": "Specifies how long the results of a preflight request can be cached.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "unmatchedPreflights": { + "description": "Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.\n\nValid Options: FORWARD, IGNORE", + "type": "string", + "enum": [ + "UNSPECIFIED", + "FORWARD", + "IGNORE" + ] + } + } + }, + "delegate": { + "description": "Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.", + "type": "object", + "properties": { + "name": { + "description": "Name specifies the name of the delegate VirtualService.", + "type": "string" + }, + "namespace": { + "description": "Namespace specifies the namespace where the delegate VirtualService resides.", + "type": "string" + } + } + }, + "directResponse": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "required": [ + "status" + ], + "properties": { + "body": { + "description": "Specifies the content of the response body.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ] + } + }, + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ], + "properties": { + "bytes": { + "description": "response body as base64 encoded bytes.", + "type": "string", + "format": "binary" + }, + "string": { + "type": "string" + } + } + }, + "status": { + "description": "Specifies the HTTP response status to be returned.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "fault": { + "description": "Fault injection policy to apply on HTTP traffic at the client side.", + "type": "object", + "properties": { + "abort": { + "description": "Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ] + } + }, + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ], + "properties": { + "grpcStatus": { + "description": "GRPC status code to use to abort the request.", + "type": "string" + }, + "http2Error": { + "type": "string" + }, + "httpStatus": { + "description": "HTTP status code to use to abort the Http request.", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests to be aborted with the error code provided.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + }, + "delay": { + "description": "Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ] + } + }, + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ], + "properties": { + "exponentialDelay": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "fixedDelay": { + "description": "Add a fixed delay before forwarding the request.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "percent": { + "description": "Percentage of requests on which the delay will be injected (0-100).", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests on which the delay will be injected.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "authority": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "headers": { + "description": "The header keys must be lowercase and use hyphen as the separator, e.g.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "ignoreUriCase": { + "description": "Flag to specify whether the URI matching should be case-insensitive.", + "type": "boolean" + }, + "method": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "name": { + "description": "The name assigned to a match.", + "type": "string" + }, + "port": { + "description": "Specifies the ports on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "queryParams": { + "description": "Query parameters for matching.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "scheme": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "statPrefix": { + "description": "The human readable prefix to use when emitting statistics for this route.", + "type": "string" + }, + "uri": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "withoutHeaders": { + "description": "withoutHeader has the same syntax with the header, but has opposite meaning.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + } + } + } + }, + "mirror": { + "description": "Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "mirrorPercent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrorPercentage": { + "description": "Percentage of the traffic to be mirrored by the `mirror` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + }, + "mirror_percent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrors": { + "description": "Specifies the destinations to mirror HTTP traffic in addition to the original destination.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination specifies the target of the mirror operation.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "percentage": { + "description": "Percentage of the traffic to be mirrored by the `destination` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + }, + "name": { + "description": "The name assigned to the route for debugging purposes.", + "type": "string" + }, + "redirect": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ] + } + }, + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ], + "properties": { + "authority": { + "description": "On a redirect, overwrite the Authority/Host portion of the URL with this value.", + "type": "string" + }, + "derivePort": { + "description": "On a redirect, dynamically set the port: * FROM_PROTOCOL_DEFAULT: automatically set to 80 for HTTP and 443 for HTTPS.\n\nValid Options: FROM_PROTOCOL_DEFAULT, FROM_REQUEST_PORT", + "type": "string", + "enum": [ + "FROM_PROTOCOL_DEFAULT", + "FROM_REQUEST_PORT" + ] + }, + "port": { + "description": "On a redirect, overwrite the port portion of the URL with this value.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "redirectCode": { + "description": "On a redirect, Specifies the HTTP status code to use in the redirect response.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "scheme": { + "description": "On a redirect, overwrite the scheme portion of the URL with this value.", + "type": "string" + }, + "uri": { + "description": "On a redirect, overwrite the Path portion of the URL with this value.", + "type": "string" + } + } + }, + "retries": { + "description": "Retry policy for HTTP requests.", + "type": "object", + "properties": { + "attempts": { + "description": "Number of retries to be allowed for a given request.", + "type": "integer", + "format": "int32" + }, + "perTryTimeout": { + "description": "Timeout per attempt for a given request, including the initial call and any retries.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "retryOn": { + "description": "Specifies the conditions under which retry takes place.", + "type": "string" + }, + "retryRemoteLocalities": { + "description": "Flag to specify whether the retries should retry to other localities.", + "type": "boolean", + "nullable": true + } + } + }, + "rewrite": { + "description": "Rewrite HTTP URIs and Authority headers.", + "type": "object", + "properties": { + "authority": { + "description": "rewrite the Authority/Host header with this value.", + "type": "string" + }, + "uri": { + "description": "rewrite the path (or the prefix) portion of the URI with this value.", + "type": "string" + }, + "uriRegexRewrite": { + "description": "rewrite the path portion of the URI with the specified regex.", + "type": "object", + "properties": { + "match": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + }, + "rewrite": { + "description": "The string that should replace into matching portions of original URI.", + "type": "string" + } + } + } + } + }, + "route": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + }, + "timeout": { + "description": "Timeout for HTTP requests, default is disabled.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "type": "array" + }, + "tcp": { + "description": "An ordered list of route rules for opaque TCP traffic.", + "items": { + "type": "object", + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "sourceSubnet": { + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "type": "array" + }, + "tls": { + "description": "An ordered list of route rule for non-terminated TLS & HTTPS traffic.", + "items": { + "type": "object", + "required": [ + "match" + ], + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "required": [ + "sniHosts" + ], + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sniHosts": { + "description": "SNI (server name indicator) to match on.", + "type": "array", + "items": { + "type": "string" + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SVirtualServiceV1alpha3.ts b/src/__generated__/resources/K8SVirtualServiceV1alpha3.ts new file mode 100644 index 0000000..68095df --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SVirtualServiceV1beta1.json b/src/__generated__/resources/K8SVirtualServiceV1beta1.json new file mode 100644 index 0000000..6c1d22e --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1beta1.json @@ -0,0 +1,1476 @@ +{ + "properties": { + "spec": { + "description": "Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html", + "properties": { + "exportTo": { + "description": "A list of namespaces to which this virtual service is exported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "gateways": { + "description": "The names of gateways and sidecars that should apply these routes.", + "items": { + "type": "string" + }, + "type": "array" + }, + "hosts": { + "description": "The destination hosts to which traffic is being sent.", + "items": { + "type": "string" + }, + "type": "array" + }, + "http": { + "description": "An ordered list of route rules for HTTP traffic.", + "items": { + "type": "object", + "properties": { + "corsPolicy": { + "description": "Cross-Origin Resource Sharing policy (CORS).", + "type": "object", + "properties": { + "allowCredentials": { + "description": "Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.", + "type": "boolean", + "nullable": true + }, + "allowHeaders": { + "description": "List of HTTP headers that can be used when requesting the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "description": "List of HTTP methods allowed to access the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigin": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowOrigins": { + "description": "String patterns that match allowed origins.", + "type": "array", + "items": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "exposeHeaders": { + "description": "A list of HTTP headers that the browsers are allowed to access.", + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "description": "Specifies how long the results of a preflight request can be cached.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "unmatchedPreflights": { + "description": "Indicates whether preflight requests not matching the configured allowed origin shouldn't be forwarded to the upstream.\n\nValid Options: FORWARD, IGNORE", + "type": "string", + "enum": [ + "UNSPECIFIED", + "FORWARD", + "IGNORE" + ] + } + } + }, + "delegate": { + "description": "Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute.", + "type": "object", + "properties": { + "name": { + "description": "Name specifies the name of the delegate VirtualService.", + "type": "string" + }, + "namespace": { + "description": "Namespace specifies the namespace where the delegate VirtualService resides.", + "type": "string" + } + } + }, + "directResponse": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "required": [ + "status" + ], + "properties": { + "body": { + "description": "Specifies the content of the response body.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ] + } + }, + { + "required": [ + "string" + ] + }, + { + "required": [ + "bytes" + ] + } + ], + "properties": { + "bytes": { + "description": "response body as base64 encoded bytes.", + "type": "string", + "format": "binary" + }, + "string": { + "type": "string" + } + } + }, + "status": { + "description": "Specifies the HTTP response status to be returned.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "fault": { + "description": "Fault injection policy to apply on HTTP traffic at the client side.", + "type": "object", + "properties": { + "abort": { + "description": "Abort Http request attempts and return error codes back to downstream service, giving the impression that the upstream service is faulty.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ] + } + }, + { + "required": [ + "httpStatus" + ] + }, + { + "required": [ + "grpcStatus" + ] + }, + { + "required": [ + "http2Error" + ] + } + ], + "properties": { + "grpcStatus": { + "description": "GRPC status code to use to abort the request.", + "type": "string" + }, + "http2Error": { + "type": "string" + }, + "httpStatus": { + "description": "HTTP status code to use to abort the Http request.", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests to be aborted with the error code provided.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + }, + "delay": { + "description": "Delay requests before forwarding, emulating various failures such as network issues, overloaded upstream service, etc.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ] + } + }, + { + "required": [ + "fixedDelay" + ] + }, + { + "required": [ + "exponentialDelay" + ] + } + ], + "properties": { + "exponentialDelay": { + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "fixedDelay": { + "description": "Add a fixed delay before forwarding the request.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "percent": { + "description": "Percentage of requests on which the delay will be injected (0-100).", + "type": "integer", + "format": "int32" + }, + "percentage": { + "description": "Percentage of requests on which the delay will be injected.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "authority": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "headers": { + "description": "The header keys must be lowercase and use hyphen as the separator, e.g.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "ignoreUriCase": { + "description": "Flag to specify whether the URI matching should be case-insensitive.", + "type": "boolean" + }, + "method": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "name": { + "description": "The name assigned to a match.", + "type": "string" + }, + "port": { + "description": "Specifies the ports on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "queryParams": { + "description": "Query parameters for matching.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + }, + "scheme": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to source (client) workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "statPrefix": { + "description": "The human readable prefix to use when emitting statistics for this route.", + "type": "string" + }, + "uri": { + "description": "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).", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + }, + "withoutHeaders": { + "description": "withoutHeader has the same syntax with the header, but has opposite meaning.", + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ] + } + }, + { + "required": [ + "exact" + ] + }, + { + "required": [ + "prefix" + ] + }, + { + "required": [ + "regex" + ] + } + ], + "properties": { + "exact": { + "type": "string" + }, + "prefix": { + "type": "string" + }, + "regex": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + } + } + } + } + } + } + }, + "mirror": { + "description": "Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "mirrorPercent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrorPercentage": { + "description": "Percentage of the traffic to be mirrored by the `mirror` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + }, + "mirror_percent": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0, + "nullable": true + }, + "mirrors": { + "description": "Specifies the destinations to mirror HTTP traffic in addition to the original destination.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination specifies the target of the mirror operation.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "percentage": { + "description": "Percentage of the traffic to be mirrored by the `destination` field.", + "type": "object", + "properties": { + "value": { + "type": "number", + "format": "double" + } + } + } + } + } + }, + "name": { + "description": "The name assigned to the route for debugging purposes.", + "type": "string" + }, + "redirect": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "object", + "oneOf": [ + { + "not": { + "anyOf": [ + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ] + } + }, + { + "required": [ + "port" + ] + }, + { + "required": [ + "derivePort" + ] + } + ], + "properties": { + "authority": { + "description": "On a redirect, overwrite the Authority/Host portion of the URL with this value.", + "type": "string" + }, + "derivePort": { + "description": "On a redirect, dynamically set the port: * FROM_PROTOCOL_DEFAULT: automatically set to 80 for HTTP and 443 for HTTPS.\n\nValid Options: FROM_PROTOCOL_DEFAULT, FROM_REQUEST_PORT", + "type": "string", + "enum": [ + "FROM_PROTOCOL_DEFAULT", + "FROM_REQUEST_PORT" + ] + }, + "port": { + "description": "On a redirect, overwrite the port portion of the URL with this value.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "redirectCode": { + "description": "On a redirect, Specifies the HTTP status code to use in the redirect response.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "scheme": { + "description": "On a redirect, overwrite the scheme portion of the URL with this value.", + "type": "string" + }, + "uri": { + "description": "On a redirect, overwrite the Path portion of the URL with this value.", + "type": "string" + } + } + }, + "retries": { + "description": "Retry policy for HTTP requests.", + "type": "object", + "properties": { + "attempts": { + "description": "Number of retries to be allowed for a given request.", + "type": "integer", + "format": "int32" + }, + "perTryTimeout": { + "description": "Timeout per attempt for a given request, including the initial call and any retries.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + }, + "retryOn": { + "description": "Specifies the conditions under which retry takes place.", + "type": "string" + }, + "retryRemoteLocalities": { + "description": "Flag to specify whether the retries should retry to other localities.", + "type": "boolean", + "nullable": true + } + } + }, + "rewrite": { + "description": "Rewrite HTTP URIs and Authority headers.", + "type": "object", + "properties": { + "authority": { + "description": "rewrite the Authority/Host header with this value.", + "type": "string" + }, + "uri": { + "description": "rewrite the path (or the prefix) portion of the URI with this value.", + "type": "string" + }, + "uriRegexRewrite": { + "description": "rewrite the path portion of the URI with the specified regex.", + "type": "object", + "properties": { + "match": { + "description": "[RE2 style regex-based match](https://github.com/google/re2/wiki/Syntax).", + "type": "string" + }, + "rewrite": { + "description": "The string that should replace into matching portions of original URI.", + "type": "string" + } + } + } + } + }, + "route": { + "description": "A HTTP rule can either return a direct_response, redirect or forward (default) traffic.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "headers": { + "type": "object", + "properties": { + "request": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "response": { + "type": "object", + "properties": { + "add": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "remove": { + "type": "array", + "items": { + "type": "string" + } + }, + "set": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + }, + "timeout": { + "description": "Timeout for HTTP requests, default is disabled.", + "type": "string", + "x-kubernetes-validations": [ + { + "rule": "duration(self) >= duration('1ms')", + "message": "must be a valid duration greater than 1ms" + } + ] + } + } + }, + "type": "array" + }, + "tcp": { + "description": "An ordered list of route rules for opaque TCP traffic.", + "items": { + "type": "object", + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + }, + "sourceSubnet": { + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "type": "array" + }, + "tls": { + "description": "An ordered list of route rule for non-terminated TLS & HTTPS traffic.", + "items": { + "type": "object", + "required": [ + "match" + ], + "properties": { + "match": { + "description": "Match conditions to be satisfied for the rule to be activated.", + "type": "array", + "items": { + "type": "object", + "required": [ + "sniHosts" + ], + "properties": { + "destinationSubnets": { + "description": "IPv4 or IPv6 ip addresses of destination with optional subnet.", + "type": "array", + "items": { + "type": "string" + } + }, + "gateways": { + "description": "Names of gateways where the rule should be applied.", + "type": "array", + "items": { + "type": "string" + } + }, + "port": { + "description": "Specifies the port on the host that is being addressed.", + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + }, + "sniHosts": { + "description": "SNI (server name indicator) to match on.", + "type": "array", + "items": { + "type": "string" + } + }, + "sourceLabels": { + "description": "One or more labels that constrain the applicability of a rule to workloads with the given labels.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sourceNamespace": { + "description": "Source namespace constraining the applicability of a rule to workloads in that namespace.", + "type": "string" + } + } + } + }, + "route": { + "description": "The destination to which the connection should be forwarded to.", + "type": "array", + "items": { + "type": "object", + "required": [ + "destination" + ], + "properties": { + "destination": { + "description": "Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.", + "type": "object", + "required": [ + "host" + ], + "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.", + "type": "object", + "properties": { + "number": { + "type": "integer", + "maximum": 4294967295, + "minimum": 0 + } + } + }, + "subset": { + "description": "The name of a subset within the service.", + "type": "string" + } + } + }, + "weight": { + "description": "Weight specifies the relative proportion of traffic to be forwarded to the destination.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SVirtualServiceV1beta1.ts b/src/__generated__/resources/K8SVirtualServiceV1beta1.ts new file mode 100644 index 0000000..67caa3e --- /dev/null +++ b/src/__generated__/resources/K8SVirtualServiceV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWasmPluginV1alpha1.json b/src/__generated__/resources/K8SWasmPluginV1alpha1.json new file mode 100644 index 0000000..42813ac --- /dev/null +++ b/src/__generated__/resources/K8SWasmPluginV1alpha1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWasmPluginV1alpha1.ts b/src/__generated__/resources/K8SWasmPluginV1alpha1.ts new file mode 100644 index 0000000..bd0391f --- /dev/null +++ b/src/__generated__/resources/K8SWasmPluginV1alpha1.ts @@ -0,0 +1,2682 @@ +/* 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 K8SWasmPluginV1Alpha1 { + /** + * 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 + */ + spec: { + /** + * Specifies the failure behavior for the plugin due to fatal errors. + * + * Valid Options: FAIL_CLOSE, FAIL_OPEN + */ + failStrategy?: string; + /** + * The pull behaviour to be applied when fetching Wasm module by either OCI image or `http/https`. + * + * Valid Options: IfNotPresent, Always + */ + imagePullPolicy?: string; + /** + * Credentials to use for OCI image pulling. + */ + imagePullSecret?: string; + /** + * Specifies the criteria to determine which traffic is passed to WasmPlugin. + */ + match?: { + /** + * Criteria for selecting traffic by their direction. + * + * Valid Options: CLIENT, SERVER, CLIENT_AND_SERVER + */ + mode?: "UNDEFINED" | "CLIENT" | "SERVER" | "CLIENT_AND_SERVER"; + /** + * Criteria for selecting traffic by their destination port. + */ + ports?: { + number: number; + }[]; + }[]; + /** + * Determines where in the filter chain this `WasmPlugin` is to be injected. + * + * Valid Options: AUTHN, AUTHZ, STATS + */ + phase?: string; + /** + * The configuration that will be passed on to the plugin. + */ + pluginConfig?: {}; + /** + * The plugin name to be used in the Envoy configuration (used to be called `rootID`). + */ + pluginName?: string; + /** + * Determines ordering of `WasmPlugins` in the same `phase`. + */ + priority?: number; + /** + * Criteria used to select the specific set of pods/VMs on which this plugin configuration should be applied. + */ + selector?: { + /** + * One or more labels that indicate a specific set of pods/VMs on which a policy should be applied. + */ + matchLabels?: { + [k: string]: string; + }; + }; + /** + * SHA256 checksum that will be used to verify Wasm module or OCI container. + */ + sha256?: string; + targetRef?: { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }; + /** + * Optional. + * + * @maxItems 16 + */ + targetRefs?: + | [] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ] + | [ + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + }, + { + /** + * group is the group of the target resource. + */ + group?: string; + /** + * kind is kind of the target resource. + */ + kind: string; + /** + * name is the name of the target resource. + */ + name: string; + /** + * namespace is the namespace of the referent. + */ + namespace?: string; + } + ]; + /** + * Specifies the type of Wasm Extension to be used. + * + * Valid Options: HTTP, NETWORK + */ + type?: string; + /** + * URL of a Wasm module or OCI container. + */ + url: string; + verificationKey?: string; + /** + * Configuration for a Wasm VM. + */ + vmConfig?: { + /** + * Specifies environment variables to be injected to this VM. + * + * @maxItems 256 + */ + env?: { + /** + * Name of the environment variable. + */ + name: string; + /** + * Value for the environment variable. + */ + value?: string; + /** + * Source for the environment variable's value. + * + * Valid Options: INLINE, HOST + */ + valueFrom?: "INLINE" | "HOST"; + }[]; + }; + }; + 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadEntryV1.json b/src/__generated__/resources/K8SWorkloadEntryV1.json new file mode 100644 index 0000000..71b91b2 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadEntryV1.ts b/src/__generated__/resources/K8SWorkloadEntryV1.ts new file mode 100644 index 0000000..4c6a889 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadEntryV1alpha3.json b/src/__generated__/resources/K8SWorkloadEntryV1alpha3.json new file mode 100644 index 0000000..71b91b2 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadEntryV1alpha3.ts b/src/__generated__/resources/K8SWorkloadEntryV1alpha3.ts new file mode 100644 index 0000000..e56d2ec --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1alpha3.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadEntryV1beta1.json b/src/__generated__/resources/K8SWorkloadEntryV1beta1.json new file mode 100644 index 0000000..71b91b2 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadEntryV1beta1.ts b/src/__generated__/resources/K8SWorkloadEntryV1beta1.ts new file mode 100644 index 0000000..2aeb91e --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadEntryV1beta1.ts @@ -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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadGroupV1.json b/src/__generated__/resources/K8SWorkloadGroupV1.json new file mode 100644 index 0000000..ad22a27 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadGroupV1.ts b/src/__generated__/resources/K8SWorkloadGroupV1.ts new file mode 100644 index 0000000..3839c6a --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1.ts @@ -0,0 +1,128 @@ +/* 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 K8SWorkloadGroupV1 { + /** + * Describes a collection of workload instances. See more details at: https://istio.io/docs/reference/config/networking/workload-group.html + */ + spec: { + /** + * Metadata that will be used for all corresponding `WorkloadEntries`. + */ + metadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + /** + * `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. + */ + probe?: { + [k: string]: unknown; + }; + /** + * Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. + */ + template: { + /** + * 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadGroupV1alpha3.json b/src/__generated__/resources/K8SWorkloadGroupV1alpha3.json new file mode 100644 index 0000000..ad22a27 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1alpha3.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadGroupV1alpha3.ts b/src/__generated__/resources/K8SWorkloadGroupV1alpha3.ts new file mode 100644 index 0000000..a05918e --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1alpha3.ts @@ -0,0 +1,128 @@ +/* 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 K8SWorkloadGroupV1Alpha3 { + /** + * Describes a collection of workload instances. See more details at: https://istio.io/docs/reference/config/networking/workload-group.html + */ + spec: { + /** + * Metadata that will be used for all corresponding `WorkloadEntries`. + */ + metadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + /** + * `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. + */ + probe?: { + [k: string]: unknown; + }; + /** + * Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. + */ + template: { + /** + * 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; + }; + }[]; + }; +} diff --git a/src/__generated__/resources/K8SWorkloadGroupV1beta1.json b/src/__generated__/resources/K8SWorkloadGroupV1beta1.json new file mode 100644 index 0000000..ad22a27 --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1beta1.json @@ -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" +} \ No newline at end of file diff --git a/src/__generated__/resources/K8SWorkloadGroupV1beta1.ts b/src/__generated__/resources/K8SWorkloadGroupV1beta1.ts new file mode 100644 index 0000000..b67e5ec --- /dev/null +++ b/src/__generated__/resources/K8SWorkloadGroupV1beta1.ts @@ -0,0 +1,128 @@ +/* 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 K8SWorkloadGroupV1Beta1 { + /** + * Describes a collection of workload instances. See more details at: https://istio.io/docs/reference/config/networking/workload-group.html + */ + spec: { + /** + * Metadata that will be used for all corresponding `WorkloadEntries`. + */ + metadata?: { + annotations?: { + [k: string]: string; + }; + labels?: { + [k: string]: string; + }; + }; + /** + * `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. + */ + probe?: { + [k: string]: unknown; + }; + /** + * Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. + */ + template: { + /** + * 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; + }; + }[]; + }; +} diff --git a/src/crds/authentik/client/client.ts b/src/crds/authentik/client/client.ts deleted file mode 100644 index e0fab58..0000000 --- a/src/crds/authentik/client/client.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { SubModeEnum } from '@goauthentik/api'; -import { z } from 'zod'; - -import { CustomResource, type CustomResourceHandlerOptions } from '../../../custom-resource/custom-resource.base.ts'; -import { AuthentikService } from '../../../services/authentik/authentik.service.ts'; -import { K8sService } from '../../../services/k8s.ts'; -import { GROUP } from '../../../utils/consts.ts'; - -const authentikClientSpec = z.object({ - authentik: z.object({ - name: z.string(), - namespace: z.string().optional(), - }), - subMode: z.enum(SubModeEnum).optional(), - clientType: z.enum(['confidential', 'public']).optional(), - redirectUris: z.array( - z.object({ - url: z.string(), - matchingMode: z.enum(['strict', 'regex']), - }), - ), -}); -const authentikClientSecret = z.object({ - clientSecret: z.string(), -}); - -class AuthentikClient extends CustomResource { - constructor() { - super({ - kind: 'AuthentikClient', - names: { - singular: 'authentikclient', - plural: 'authentikclients', - }, - spec: authentikClientSpec, - }); - } - - public update = async (options: CustomResourceHandlerOptions) => { - const { request, services, ensureSecret } = options; - const k8s = services.get(K8sService); - const { spec } = request; - - const serverNamespace = spec.authentik.namespace ?? request.metadata.namespace ?? 'default'; - - const server = await k8s.get({ - apiVersion: `${GROUP}/v1`, - kind: 'AuthentikServer', - namespace: serverNamespace, - name: spec.authentik.name, - }); - - if (!server) { - throw new Error(`AuthentikServer ${spec.authentik.name} not found in namespace ${serverNamespace}`); - } - - const serverSecret = await k8s.getSecret<{ - token: string; - }>(spec.authentik.name, spec.authentik.namespace); - if (!serverSecret) { - throw new Error( - `Secret for AuthentikServer ${spec.authentik.name} not found in namespace ${spec.authentik.namespace}`, - ); - } - - const domainNamespace = server.spec.domain.namespace || server.metadata.namespace || 'default'; - - const domain = await k8s.get({ - apiVersion: `${GROUP}/v1`, - kind: 'Domain', - name: server.spec.domain.name, - namespace: domainNamespace, - }); - - if (!domain) { - throw new Error(`Domain ${server.spec.domain.name} not found in namespace ${domainNamespace}`); - } - - const internalUrl = `http://${server.metadata.name}.${spec.authentik.namespace || 'default'}.svc.cluster.local:9000`; - const externalUrl = `https://${server.spec.subdomain}.${domain.spec.domain}`; - const authentikService = services.get(AuthentikService); - const { clientSecret } = await ensureSecret({ - name: `authentik-client-${request.metadata.name}`, - namespace: request.metadata.namespace ?? 'default', - schema: authentikClientSecret, - generator: async () => ({ - clientSecret: crypto.randomUUID(), - }), - }); - const authentik = await authentikService.get({ - url: { - internal: internalUrl, - external: externalUrl, - }, - token: serverSecret.token, - }); - const client = await authentik.upsertClient({ - name: request.metadata.name, - secret: clientSecret, - subMode: request.spec.subMode, - clientType: request.spec.clientType, - redirectUris: request.spec.redirectUris.map((rule) => ({ - url: rule.url, - matchingMode: rule.matchingMode ?? 'strict', - })), - }); - console.log(client.config); - }; -} - -export { AuthentikClient }; diff --git a/src/crds/authentik/server/server.schema.ts b/src/crds/authentik/server/server.schema.ts deleted file mode 100644 index 4492393..0000000 --- a/src/crds/authentik/server/server.schema.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { z } from 'zod'; - -const authentikServerSpecSchema = z.object({ - domain: z.object({ - name: z.string(), - namespace: z.string().optional(), - }), - subdomain: z.string(), -}); - -type AuthentikServerSpec = z.infer; - -export { authentikServerSpecSchema, type AuthentikServerSpec }; diff --git a/src/crds/authentik/server/server.setup.ts b/src/crds/authentik/server/server.setup.ts deleted file mode 100644 index b8bac67..0000000 --- a/src/crds/authentik/server/server.setup.ts +++ /dev/null @@ -1,250 +0,0 @@ -import z from 'zod'; - -import type { CustomResourceHandlerOptions } from '../../../custom-resource/custom-resource.base.ts'; -import { K8sService } from '../../../services/k8s.ts'; -import { PostgresService } from '../../../services/postgres/postgres.service.ts'; -import { FIELDS, GROUP } from '../../../utils/consts.ts'; - -import type { authentikServerSpecSchema } from './server.schema.ts'; - -const toPostgresSafeName = (inputString: string): string => { - let safeName = inputString.toLowerCase(); - safeName = safeName.replace(/[^a-z0-9_]/g, '_'); - safeName = safeName.replace(/^_+|_+$/g, ''); - if (safeName === '') { - return 'default_name'; // Or throw new Error("Input resulted in an empty safe name."); - } - - if (/^[0-9]/.test(safeName)) { - safeName = '_' + safeName; - } - - const MAX_PG_IDENTIFIER_LENGTH = 63; - if (safeName.length > MAX_PG_IDENTIFIER_LENGTH) { - safeName = safeName.substring(0, MAX_PG_IDENTIFIER_LENGTH); - } - - return safeName; -}; - -const setupAuthentik = async ({ - services, - request, - ensureSecret, -}: CustomResourceHandlerOptions) => { - const { name, namespace } = request.metadata; - - const k8sService = services.get(K8sService); - const postgresService = services.get(PostgresService); - - const domainNamespace = request.spec.domain.namespace || namespace || 'default'; - - const domain = await k8sService.get({ - apiVersion: `${GROUP}/v1`, - kind: 'Domain', - name: request.spec.domain.name, - namespace: domainNamespace, - }); - - if (!domain) { - throw new Error(`Domain ${request.spec.domain.name} not found in namespace ${domainNamespace || 'default'}`); - } - - const secretData = await ensureSecret({ - name: name, - namespace: namespace || 'default', - schema: z.object({ - secret: z.string(), - token: z.string(), - password: z.string(), - }), - generator: async () => ({ - secret: Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString('hex'), - token: Buffer.from(crypto.getRandomValues(new Uint8Array(16))).toString('hex'), - password: Buffer.from(crypto.getRandomValues(new Uint8Array(16))).toString('hex'), - }), - }); - - const hostname = `${request.spec.subdomain}.${domain.spec.domain}`; - - const db = { - name: toPostgresSafeName(`${namespace}_${name}`), - user: toPostgresSafeName(`${namespace}_${name}_user`), - password: 'sdf908sad0sdf7g98', - }; - - await postgresService.upsertRole({ - name: db.user, - password: db.password, - }); - - await postgresService.upsertDatabase({ - name: db.name, - owner: db.user, - }); - - const createManifest = (command: string) => ({ - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: `${name}-${command}`, - namespace: namespace, - labels: { - 'app.kubernetes.io/name': `${name}-${command}`, - 'argocd.argoproj.io/instance': 'homelab', - }, - annotations: { - [FIELDS.domain.domainId]: domain.dependencyId, - }, - ownerReferences: [request.objectRef], - }, - spec: { - replicas: 1, - selector: { - matchLabels: { - 'app.kubernetes.io/name': `${name}-${command}`, - }, - }, - template: { - metadata: { - labels: { - 'app.kubernetes.io/name': `${name}-${command}`, - }, - }, - spec: { - containers: [ - { - name: `${name}-${command}`, - image: 'ghcr.io/goauthentik/server:2025.6.4', - // imagePullPolicy: 'ifNot' - args: [command], - env: [ - { name: 'AUTHENTIK_SECRET_KEY', value: secretData.secret }, - { name: 'AUTHENTIK_POSTGRESQL__HOST', value: 'postgres-postgresql.postgres.svc.cluster.local' }, - { - name: 'AUTHENTIK_POSTGRESQL__PORT', - value: '5432', - }, - { - name: 'AUTHENTIK_POSTGRESQL__NAME', - value: db.name, - }, - { - name: 'AUTHENTIK_POSTGRESQL__USER', - value: db.user, - }, - { - name: 'AUTHENTIK_POSTGRESQL__PASSWORD', - value: db.password, - }, - { - name: 'AUTHENTIK_REDIS__HOST', - value: 'redis.redis.svc.cluster.local', - }, - { - name: 'AUTHENTIK_BOOTSTRAP_PASSWORD', - value: secretData.password, - }, - { - name: 'AUTHENTIK_BOOTSTRAP_TOKEN', - value: secretData.token, - }, - { - name: 'AUTHENTIK_BOOTSTRAP_EMAIL', - value: `admin@${hostname}`, - }, - // { - // name: 'AUTHENTIK_REDIS__PORT', - // value: '' - // } - ], - ports: [ - { - name: 'http', - containerPort: 9000, - protocol: 'TCP', - }, - ], - }, - ], - }, - }, - }, - }); - - await k8sService.upsert(createManifest('server')); - await k8sService.upsert(createManifest('worker')); - await k8sService.upsert({ - apiVersion: 'v1', - kind: 'Service', - metadata: { - name, - namespace, - labels: { - 'app.kubernetes.io/name': `${name}-server`, - }, - ownerReferences: [request.objectRef], - }, - spec: { - type: 'ClusterIP', - ports: [ - { - port: 9000, - targetPort: 9000, - protocol: 'TCP', - name: 'http', - }, - ], - selector: { - 'app.kubernetes.io/name': `${name}-server`, - }, - }, - }); - - await k8sService.upsert({ - apiVersion: 'networking.istio.io/v1', - kind: 'DestinationRule', - metadata: { - name, - namespace, - labels: { - 'app.kubernetes.io/name': `${name}-server`, - }, - ownerReferences: [request.objectRef], - }, - spec: { - host: `${name}.${namespace || 'default'}.svc.cluster.local`, - trafficPolicy: { - tls: { - mode: 'DISABLE', - }, - }, - }, - }); - - await k8sService.upsert({ - apiVersion: `${GROUP}/v1`, - kind: 'DomainEndpoint', - metadata: { - name: request.metadata.name, - namespace: request.metadata.namespace ?? 'default', - labels: { - 'app.kubernetes.io/name': `${name}-domain-endpoint`, - }, - ownerReferences: [request.objectRef], - }, - spec: { - domain: 'homelab/homelab', - subdomain: request.spec.subdomain, - destination: { - name, - namespace: namespace ?? 'default', - port: { - number: 9000, - }, - }, - }, - }); -}; - -export { setupAuthentik }; diff --git a/src/crds/authentik/server/server.ts b/src/crds/authentik/server/server.ts deleted file mode 100644 index e1c4177..0000000 --- a/src/crds/authentik/server/server.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { createCustomResource } from '../../../custom-resource/custom-resource.base.ts'; - -import { authentikServerSpecSchema } from './server.schema.ts'; -import { setupAuthentik } from './server.setup.ts'; - -const AuthentikServer = createCustomResource({ - kind: 'AuthentikServer', - names: { - plural: 'authentikservers', - singular: 'authentikserver', - }, - spec: authentikServerSpecSchema, - update: async (options) => { - await setupAuthentik(options); - }, -}); - -export { AuthentikServer }; diff --git a/src/crds/backup/backup-report/backup-report.ts b/src/crds/backup/backup-report/backup-report.ts deleted file mode 100644 index 11f22ef..0000000 --- a/src/crds/backup/backup-report/backup-report.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { z } from 'zod'; - -import { createCustomResource } from '../../../custom-resource/custom-resource.base.ts'; - -const backupReportSchema = z.object({ - spec: z.object({ - startedAt: z.string().datetime(), - finishedAt: z.string().datetime(), - status: z.enum(['success', 'failed', 'in-progress']), - error: z.string().optional(), - message: z.string().optional(), - }), -}); - -const BackupReport = createCustomResource({ - kind: 'BackupReport', - spec: backupReportSchema, - names: { - plural: 'backupreports', - singular: 'backupreport', - }, -}); - -export { BackupReport }; diff --git a/src/crds/domain/domain/domain.ts b/src/crds/domain/domain/domain.ts deleted file mode 100644 index ddc2863..0000000 --- a/src/crds/domain/domain/domain.ts +++ /dev/null @@ -1,133 +0,0 @@ -import z from 'zod'; - -import { createCustomResource } from '../../../custom-resource/custom-resource.base.ts'; -import { K8sService } from '../../../services/k8s.ts'; -import { ConfigService } from '../../../services/config/config.ts'; -import { CustomResourceRegistry } from '../../../custom-resource/custom-resource.registry.ts'; -import { GROUP } from '../../../utils/consts.ts'; - -const Domain = createCustomResource({ - kind: 'Domain', - names: { - singular: 'domain', - plural: 'domains', - }, - spec: z.object({ - domain: z.string(), - }), - update: async ({ request, services }) => { - const k8s = services.get(K8sService); - const config = services.get(ConfigService); - const secretName = `certificate-${request.metadata.name}`; - - request.addEvent({ - type: 'Normal', - message: 'Creating certificate', - reason: 'CreateCertificate', - action: 'Create', - }); - await k8s.upsert({ - apiVersion: 'cert-manager.io/v1', - kind: 'Certificate', - metadata: { - name: request.metadata.name, - namespace: 'istio-ingress', - }, - spec: { - secretName, - dnsNames: [`*.${request.spec.domain}`], - issuerRef: { - name: config.certManager, - kind: 'ClusterIssuer', - }, - }, - }); - request.addEvent({ - type: 'Normal', - message: 'Created certificate', - reason: 'CreatedCertificate', - action: 'Create', - }); - - request.addEvent({ - type: 'Normal', - message: 'Creating gateway', - reason: 'CreateGateway', - action: 'Create', - }); - await k8s.upsert({ - apiVersion: 'networking.istio.io/v1alpha3', - kind: 'Gateway', - metadata: { - name: request.metadata.name, - namespace: request.metadata.namespace, - ownerReferences: [request.objectRef], - }, - spec: { - selector: { - app: config.istio.gateway, - }, - servers: [ - { - port: { - number: 80, - name: 'http', - protocol: 'HTTP', - }, - hosts: [`*.${request.spec.domain}`], - tls: { - httpsRedirect: true, - }, - }, - { - port: { - number: 443, - name: 'https', - protocol: 'HTTPS', - }, - hosts: [`*.${request.spec.domain}`], - tls: { - mode: 'SIMPLE', - credentialName: secretName, - }, - }, - ], - }, - }); - request.addEvent({ - type: 'Normal', - message: 'Created gateway', - reason: 'CreatedGateway', - action: 'Create', - }); - const registryService = services.get(CustomResourceRegistry); - const endpoints = registryService.objects.filter( - (obj) => - obj.manifest.kind === 'DomainEndpoint' && - obj.manifest.apiVersion === `${GROUP}/v1` && - obj.manifest.spec.domain === `${request.metadata.namespace}/${request.metadata.name}`, - ); - const expectedDomainId = [request.metadata.uid, request.metadata.generation].join('.'); - for (const endpoint of endpoints) { - const domainId = endpoint.manifest.metadata[`${GROUP}/domain-id`]; - if (domainId === expectedDomainId) { - continue; - } - request.addEvent({ - type: 'Normal', - message: `Updating dependent endpoint: ${endpoint.manifest.metadata.namespace}/${endpoint.manifest.metadata.name}`, - reason: 'UpdateDependant', - action: 'Update', - }); - await endpoint.manifest.patch({ - metadata: { - annotations: { - [`${GROUP}/generation`]: expectedDomainId, - }, - }, - }); - } - }, -}); - -export { Domain }; diff --git a/src/crds/domain/endpoint/endpoint.ts b/src/crds/domain/endpoint/endpoint.ts deleted file mode 100644 index 451ed61..0000000 --- a/src/crds/domain/endpoint/endpoint.ts +++ /dev/null @@ -1,80 +0,0 @@ -import z from 'zod'; - -import { createCustomResource } from '../../../custom-resource/custom-resource.base.ts'; -import { K8sService } from '../../../services/k8s.ts'; -import { getWithNamespace } from '../../../utils/naming.ts'; -import { GROUP } from '../../../utils/consts.ts'; - -const DomainEndpoint = createCustomResource({ - kind: 'DomainEndpoint', - names: { - plural: 'domainendpoints', - singular: 'domainendpoint', - }, - spec: z.object({ - domain: z.string(), - subdomain: z.string(), - destination: z.object({ - name: z.string(), - namespace: z.string().optional(), - port: z.object({ - number: z.number(), - }), - }), - }), - update: async ({ request, services }) => { - const k8s = services.get(K8sService); - const domainName = getWithNamespace(request.spec.domain); - const domain = await k8s.get({ - apiVersion: `${GROUP}/v1`, - kind: 'Domain', - name: domainName.name, - namespace: domainName.namespace, - }); - if (!domain) { - throw new Error(`Domain ${request.spec.domain} could not be found`); - } - const host = `${request.spec.subdomain}.${domain.spec.domain}`; - await k8s.upsert({ - apiVersion: 'networking.istio.io/v1alpha3', - kind: 'VirtualService', - metadata: { - name: request.metadata.name, - namespace: request.metadata.namespace, - ownerReferences: [request.objectRef], - labels: { - app: request.spec.destination.name, - }, - annotations: { - [`${GROUP}/domain-id`]: [domain.metadata.uid, domain.metadata.generation].join('.'), - }, - }, - spec: { - hosts: [host], - gateways: [`${domain.metadata.namespace}/${domain.metadata.name}`], - http: [ - { - match: [ - { - uri: { - prefix: '/', - }, - }, - ], - route: [ - { - destination: { - host: `${request.spec.destination.name}.${request.spec.destination.namespace || request.metadata.namespace || 'default'}.svc.cluster.local`, - protocol: 'HTTP', - port: request.spec.destination.port, - }, - }, - ], - }, - ], - }, - }); - }, -}); - -export { DomainEndpoint }; diff --git a/src/crds/postgres/postgres.database.ts b/src/crds/postgres/postgres.database.ts deleted file mode 100644 index ab9adf7..0000000 --- a/src/crds/postgres/postgres.database.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { z } from 'zod'; - -import { CustomResource, type CustomResourceHandlerOptions } from '../../custom-resource/custom-resource.base.ts'; -import { PostgresService } from '../../services/postgres/postgres.service.ts'; - -const postgresDatabaseSpecSchema = z.object({}); - -class PostgresDatabase extends CustomResource { - constructor() { - super({ - kind: 'PostgresDatabase', - spec: postgresDatabaseSpecSchema, - names: { - plural: 'postgresdatabases', - singular: 'postgresdatabase', - }, - }); - } - - public update = async (options: CustomResourceHandlerOptions) => { - const { request, services, ensureSecret } = options; - const variables = await ensureSecret({ - name: `postgres-database-${request.metadata.name}`, - namespace: request.metadata.namespace ?? 'default', - schema: z.object({ - name: z.string(), - user: z.string(), - password: z.string(), - }), - generator: async () => ({ - name: `${request.metadata.namespace || 'default'}_${request.metadata.name}`, - user: `${request.metadata.namespace || 'default'}_${request.metadata.name}`, - password: `password_${Buffer.from(crypto.getRandomValues(new Uint8Array(12))).toString('hex')}`, - }), - }); - const postgresService = services.get(PostgresService); - await postgresService.upsertRole({ - name: variables.user, - password: variables.password, - }); - - await postgresService.upsertDatabase({ - name: variables.name, - owner: variables.user, - }); - - await request.addEvent({ - type: 'Normal', - reason: 'DatabaseUpserted', - message: 'Database has been upserted', - action: 'UPSERT', - }); - }; -} - -export { PostgresDatabase }; diff --git a/src/crds/secrets/secrets.request.ts b/src/crds/secrets/secrets.request.ts deleted file mode 100644 index f8c14b6..0000000 --- a/src/crds/secrets/secrets.request.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { z } from 'zod'; - -import { CustomResource, type CustomResourceHandlerOptions } from '../../custom-resource/custom-resource.base.ts'; - -const stringValueSchema = z.object({ - key: z.string(), - chars: z.string().optional(), - length: z.number().optional(), - encoding: z.enum(['utf-8', 'base64', 'base64url', 'hex']).optional(), - value: z.string().optional(), -}); - -const secretRequestSpec = z.object({ - secretName: z.string().optional(), - data: z.array(stringValueSchema), -}); - -class SecretRequest extends CustomResource { - constructor() { - super({ - kind: 'SecretRequest', - spec: secretRequestSpec, - names: { - plural: 'secretrequests', - singular: 'secretrequest', - }, - }); - } - - public update = async (options: CustomResourceHandlerOptions) => { - const { request, ensureSecret } = options; - const { secretName = request.metadata.name } = request.spec; - const { namespace = request.metadata.namespace ?? 'default' } = request.metadata; - await ensureSecret({ - name: secretName, - namespace, - schema: z.object({}).passthrough(), - generator: async () => ({ - hello: 'world', - }), - }); - }; -} - -export { SecretRequest }; diff --git a/src/crds/backup/backup/backup.ts b/src/custom-resouces/authentik-client/authentik-client.create-manifest.ts similarity index 100% rename from src/crds/backup/backup/backup.ts rename to src/custom-resouces/authentik-client/authentik-client.create-manifest.ts diff --git a/src/custom-resouces/authentik-client/authentik-client.resource.ts b/src/custom-resouces/authentik-client/authentik-client.resource.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/custom-resouces/authentik-client/authentik-client.schemas.ts b/src/custom-resouces/authentik-client/authentik-client.schemas.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/custom-resouces/authentik-client/authentik-client.ts b/src/custom-resouces/authentik-client/authentik-client.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/custom-resouces/authentik-server/authentik-server.create-manifests.ts b/src/custom-resouces/authentik-server/authentik-server.create-manifests.ts new file mode 100644 index 0000000..ede68f0 --- /dev/null +++ b/src/custom-resouces/authentik-server/authentik-server.create-manifests.ts @@ -0,0 +1,176 @@ +import type { CustomResourceObject } from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { API_VERSION, CONTROLLED_LABEL } from '../../utils/consts.ts'; +import type { domainServiceSpecSchema } from '../domain-service/domain-service.schemas.ts'; + +type CreateContainerManifestOptions = { + name: string; + namespace: string; + command: string; + owner: ExpectedAny; + secret: string; + bootstrap: { + email: string; + password: string; + token: string; + }; + posgtres: { + host: string; + port: string; + name: string; + user: string; + password: string; + }; + redis: { + host: string; + port: string; + }; +}; +const createManifest = (options: CreateContainerManifestOptions) => ({ + apiVersion: 'apps/v1', + kind: 'Deployment', + metadata: { + name: options.name, + namespace: options.namespace, + labels: { + 'app.kubernetes.io/name': options.name, + ...CONTROLLED_LABEL, + }, + ownerReferences: [options.owner], + }, + spec: { + replicas: 1, + selector: { + matchLabels: { + 'app.kubernetes.io/name': options.name, + }, + }, + template: { + metadata: { + labels: { + 'app.kubernetes.io/name': options.name, + }, + }, + spec: { + containers: [ + { + name: options.name, + image: 'ghcr.io/goauthentik/server:2025.6.4', + args: [options.command], + env: [ + { name: 'AUTHENTIK_SECRET_KEY', value: options.secret }, + { name: 'AUTHENTIK_POSTGRESQL__HOST', value: options.posgtres.host }, + { + name: 'AUTHENTIK_POSTGRESQL__PORT', + value: '5432', + }, + { + name: 'AUTHENTIK_POSTGRESQL__NAME', + value: options.posgtres.name, + }, + { + name: 'AUTHENTIK_POSTGRESQL__USER', + value: options.posgtres.user, + }, + { + name: 'AUTHENTIK_POSTGRESQL__PASSWORD', + value: options.posgtres.password, + }, + { + name: 'AUTHENTIK_REDIS__HOST', + value: options.redis.host, + }, + { + name: 'AUTHENTIK_REDIS__PORT', + value: options.redis.port, + }, + { + name: 'AUTHENTIK_BOOTSTRAP_PASSWORD', + value: options.bootstrap.password, + }, + { + name: 'AUTHENTIK_BOOTSTRAP_TOKEN', + value: options.bootstrap.token, + }, + { + name: 'AUTHENTIK_BOOTSTRAP_EMAIL', + value: options.bootstrap.email, + }, + ], + ports: [ + { + name: 'http', + containerPort: 9000, + protocol: 'TCP', + }, + ], + }, + ], + }, + }, + }, +}); + +type CreateServiceManifestOptions = { + name: string; + namespace: string; + owner: ExpectedAny; + appName: string; +}; +const createServiceManifest = (options: CreateServiceManifestOptions) => ({ + apiVersion: 'v1', + kind: 'Service', + metadata: { + name: options.name, + namespace: options.namespace, + labels: { + ...CONTROLLED_LABEL, + }, + ownerReferences: [options.owner], + }, + spec: { + type: 'ClusterIP', + ports: [ + { + port: 9000, + targetPort: 9000, + protocol: 'TCP', + name: 'http', + }, + ], + selector: { + 'app.kubernetes.io/name': options.appName, + }, + }, +}); + +type CreateDomainServiceOptions = { + name: string; + namespace: string; + owner: ExpectedAny; + subdomain: string; + host: string; + domain: string; +}; +const createDomainService = ( + options: CreateDomainServiceOptions, +): Omit, 'status'> => ({ + apiVersion: API_VERSION, + kind: 'DomainService', + metadata: { + name: options.name, + namespace: options.namespace, + ownerReferences: [options.owner], + }, + spec: { + domain: options.domain, + subdomain: options.subdomain, + destination: { + host: options.host, + port: { + number: 9000, + }, + }, + }, +}); + +export { createManifest, createServiceManifest, createDomainService }; diff --git a/src/custom-resouces/authentik-server/authentik-server.resource.ts b/src/custom-resouces/authentik-server/authentik-server.resource.ts new file mode 100644 index 0000000..de0eb66 --- /dev/null +++ b/src/custom-resouces/authentik-server/authentik-server.resource.ts @@ -0,0 +1,385 @@ +import type { V1Service, V1Deployment, V1Secret } from '@kubernetes/client-node'; +import { z } from 'zod'; +import deepEqual from 'deep-equal'; + +import { + CustomResource, + type CustomResourceObject, + type CustomResourceOptions, + type SubresourceResult, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { ResourceReference } from '../../services/resources/resources.ref.ts'; +import { ResourceService, type Resource } from '../../services/resources/resources.ts'; +import type { domainSpecSchema } from '../domain/domain.schemas.ts'; +import type { domainServiceSpecSchema } from '../domain-service/domain-service.schemas.ts'; +import type { EnsuredSecret } from '../../services/secrets/secrets.secret.ts'; +import { getWithNamespace } from '../../utils/naming.ts'; +import { API_VERSION } from '../../utils/consts.ts'; +import { SecretService } from '../../services/secrets/secrets.ts'; +import { decodeSecret } from '../../utils/secrets.ts'; +import type { postgresDatabaseSecretSchema } from '../postgres-database/postgres-database.resource.ts'; +import type { redisConnectionSpecSchema } from '../redis-connection/redis-connection.schemas.ts'; + +import { authentikServerSecretSchema, type authentikServerSpecSchema } from './authentik-server.scemas.ts'; +import { createDomainService, createManifest, createServiceManifest } from './authentik-server.create-manifests.ts'; + +class AuthentikServerResource extends CustomResource { + #domainResource: ResourceReference>; + #databaseSecretResource: ResourceReference; + #redisResource: ResourceReference>; + #redisSecretResource: ResourceReference; + #deploymentServerResource: Resource; + #deploymentWorkerResource: Resource; + #service: Resource; + #domainServiceResource: Resource>; + #secret: EnsuredSecret; + + constructor(options: CustomResourceOptions) { + super(options); + const domainNames = getWithNamespace(this.spec.domain, this.namespace); + const databaseNames = getWithNamespace(this.spec.database, this.namespace); + + const resourceService = this.services.get(ResourceService); + const secretService = this.services.get(SecretService); + + this.#domainResource = new ResourceReference(); + this.#databaseSecretResource = new ResourceReference(); + this.#redisResource = new ResourceReference(); + this.#redisSecretResource = new ResourceReference(); + + this.#deploymentServerResource = resourceService.get({ + apiVersion: 'apps/v1', + kind: 'Deployment', + name: this.#serverName, + namespace: this.namespace, + }); + + this.#deploymentWorkerResource = resourceService.get({ + apiVersion: 'apps/v1', + kind: 'Deployment', + name: this.#workerName, + namespace: this.namespace, + }); + + this.#domainServiceResource = resourceService.get({ + apiVersion: API_VERSION, + kind: 'DomainService', + name: this.name, + namespace: this.namespace, + }); + + this.#service = resourceService.get({ + apiVersion: 'v1', + kind: 'Service', + name: this.name, + namespace: this.namespace, + }); + + this.#secret = secretService.ensure({ + name: this.name, + namespace: this.namespace, + schema: authentikServerSecretSchema, + generator: () => ({ + secret: crypto.randomUUID(), + token: crypto.randomUUID(), + password: crypto.randomUUID(), + }), + }); + + this.#domainServiceResource = resourceService.get({ + apiVersion: API_VERSION, + kind: 'DomainService', + name: this.name, + namespace: this.namespace, + }); + + this.#updateResources(); + + this.#domainResource.on('changed', this.queueReconcile); + this.#databaseSecretResource.on('changed', this.queueReconcile); + this.#redisResource.on('changed', this.queueReconcile); + this.#redisSecretResource.on('changed', this.queueReconcile); + this.#deploymentServerResource.on('changed', this.queueReconcile); + this.#deploymentWorkerResource.on('changed', this.queueReconcile); + this.#domainServiceResource.on('changed', this.queueReconcile); + this.#service.on('changed', this.queueReconcile); + this.#secret.resouce.on('changed', this.queueReconcile); + } + + get #databaseSecretName() { + const { name } = getWithNamespace(this.spec.database); + return `postgres-database-${name}`; + } + + get #workerName() { + return `${this.name}-worker`; + } + + get #serverName() { + return `${this.name}-server`; + } + + #updateResources = () => { + if (!this.isValidSpec) { + return; + } + const resourceService = this.services.get(ResourceService); + const redisNames = getWithNamespace(this.spec.redis, this.namespace); + const redisResource = resourceService.get>({ + apiVersion: API_VERSION, + kind: 'RedisConnection', + name: redisNames.name, + namespace: redisNames.namespace, + }); + this.#redisResource.current = redisResource; + const redis = this.#redisResource.current; + + if (redis.exists && redis.spec) { + const redisSecretNames = getWithNamespace(redis.spec.secret, redis.namespace); + this.#redisSecretResource.current = resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: redisSecretNames.name, + namespace: redisSecretNames.namespace, + }); + } else { + this.#redisSecretResource.current = undefined; + } + + const domainNames = getWithNamespace(this.spec.domain, this.namespace); + const databaseNames = getWithNamespace(this.spec.database, this.namespace); + + this.#domainResource.current = resourceService.get({ + apiVersion: API_VERSION, + kind: 'Domain', + name: domainNames.name, + namespace: domainNames.namespace, + }); + + this.#databaseSecretResource.current = resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: this.#databaseSecretName, + namespace: databaseNames.namespace, + }); + }; + + #reconcileWorkerDeployment = async (): Promise => { + const domainService = this.#domainResource.current; + if (!domainService?.exists || !domainService.spec) { + return { + ready: false, + failed: true, + reason: 'MissingDomain', + }; + } + const databaseSecret = decodeSecret>( + this.#databaseSecretResource.current?.data, + ); + if (!databaseSecret) { + return { + ready: false, + failed: true, + reason: 'MissingDatabase', + }; + } + const secret = this.#secret.value; + if (!this.#secret.isValid || !secret) { + return { + ready: false, + syncing: true, + reason: 'WaitingForSecret', + }; + } + + const redisSecret = decodeSecret(this.#redisSecretResource.current?.data); + if (!redisSecret || !redisSecret.host) { + return { + ready: false, + failed: true, + reason: 'MissingRedisSecret', + }; + } + + const email = `admin@${domainService.spec.hostname}`; + const manifest = createManifest({ + name: this.#workerName, + namespace: this.namespace, + secret: secret.secret, + command: 'worker', + owner: this.ref, + bootstrap: { + email, + token: secret.token, + password: secret.password, + }, + redis: { + host: redisSecret.host, + port: redisSecret.port ?? '6379', + }, + posgtres: { + host: databaseSecret.host, + port: databaseSecret.port || '5432', + name: databaseSecret.database, + user: databaseSecret.user, + password: databaseSecret.password, + }, + }); + if (!deepEqual(this.#deploymentWorkerResource.spec, manifest.spec)) { + await this.#deploymentWorkerResource.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'ManifestNeedsPatching', + }; + } + return { + ready: true, + }; + }; + + #reconcileServerDeployment = async (): Promise => { + const domainService = this.#domainResource.current; + if (!domainService?.exists || !domainService.spec) { + return { + ready: false, + failed: true, + reason: 'MissingDomain', + }; + } + const databaseSecret = decodeSecret>( + this.#databaseSecretResource.current?.data, + ); + if (!databaseSecret) { + return { + ready: false, + failed: true, + reason: 'MissingDatabase', + }; + } + const secret = this.#secret.value; + if (!this.#secret.isValid || !secret) { + return { + ready: false, + syncing: true, + reason: 'WaitingForSecret', + }; + } + + const redisSecret = decodeSecret(this.#redisSecretResource.current?.data); + if (!redisSecret || !redisSecret.host) { + return { + ready: false, + failed: true, + reason: 'MissingRedisSecret', + }; + } + + const email = `admin@${domainService.spec.hostname}`; + const manifest = createManifest({ + name: this.#serverName, + namespace: this.namespace, + secret: secret.secret, + command: 'server', + owner: this.ref, + bootstrap: { + email, + token: secret.token, + password: secret.password, + }, + redis: { + host: redisSecret.host, + port: redisSecret.port ?? '6379', + }, + posgtres: { + host: databaseSecret.host, + port: databaseSecret.port || '5432', + name: databaseSecret.database, + user: databaseSecret.user, + password: databaseSecret.password, + }, + }); + if (!deepEqual(this.#deploymentServerResource.spec, manifest.spec)) { + await this.#deploymentServerResource.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'ManifestNeedsPatching', + }; + } + return { + ready: true, + }; + }; + + #reconcileService = async (): Promise => { + const manifest = createServiceManifest({ + name: this.name, + namespace: this.namespace, + owner: this.ref, + appName: this.#serverName, + }); + + if (!deepEqual(this.#service.manifest, manifest.spec)) { + await this.#service.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'UpdatingManifest', + }; + } + return { + ready: true, + }; + }; + + #reconcileDomainService = async (): Promise => { + const manifest = createDomainService({ + name: this.name, + namespace: this.namespace, + owner: this.ref, + domain: this.spec.domain, + host: `${this.name}.${this.namespace}.svc.cluster.local`, + subdomain: 'authentik', + }); + if (!deepEqual(manifest.spec, this.#domainServiceResource.spec)) { + await this.#domainServiceResource.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'UpdatingManifest', + }; + } + return { + ready: true, + }; + }; + + public reconcile = async () => { + if (!this.isValidSpec) { + await this.conditions.set('Ready', { + status: 'False', + reason: 'Invalid spec', + }); + } + this.#updateResources(); + + await Promise.allSettled([ + this.reconcileSubresource('Worker', this.#reconcileWorkerDeployment), + this.reconcileSubresource('Server', this.#reconcileServerDeployment), + this.reconcileSubresource('Service', this.#reconcileService), + this.reconcileSubresource('DomainService', this.#reconcileDomainService), + ]); + + const workerReady = this.conditions.get('Worker')?.status === 'True'; + const serverReady = this.conditions.get('Server')?.status === 'True'; + const serviceReady = this.conditions.get('Service')?.status === 'True'; + const domainServiceReady = this.conditions.get('DomainService')?.status === 'True'; + + await this.conditions.set('Ready', { + status: workerReady && serverReady && serviceReady && domainServiceReady ? 'True' : 'False', + }); + }; +} + +export { AuthentikServerResource }; diff --git a/src/custom-resouces/authentik-server/authentik-server.scemas.ts b/src/custom-resouces/authentik-server/authentik-server.scemas.ts new file mode 100644 index 0000000..9ac0c1f --- /dev/null +++ b/src/custom-resouces/authentik-server/authentik-server.scemas.ts @@ -0,0 +1,15 @@ +import { z } from 'zod'; + +const authentikServerSpecSchema = z.object({ + domain: z.string(), + database: z.string(), + redis: z.string(), +}); + +const authentikServerSecretSchema = z.object({ + secret: z.string(), + password: z.string(), + token: z.string(), +}); + +export { authentikServerSpecSchema, authentikServerSecretSchema }; diff --git a/src/custom-resouces/authentik-server/authentik-server.ts b/src/custom-resouces/authentik-server/authentik-server.ts new file mode 100644 index 0000000..cef54a1 --- /dev/null +++ b/src/custom-resouces/authentik-server/authentik-server.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { AuthentikServerResource } from './authentik-server.resource.ts'; +import { authentikServerSpecSchema } from './authentik-server.scemas.ts'; + +const authentikServerDefinition = createCustomResourceDefinition({ + group: GROUP, + version: 'v1', + kind: 'AuthentikServer', + names: { + plural: 'authentikservers', + singular: 'authentikserver', + }, + spec: authentikServerSpecSchema, + create: (options) => new AuthentikServerResource(options), +}); + +export { authentikServerDefinition }; diff --git a/src/custom-resouces/custom-resources.ts b/src/custom-resouces/custom-resources.ts new file mode 100644 index 0000000..5e435d3 --- /dev/null +++ b/src/custom-resouces/custom-resources.ts @@ -0,0 +1,17 @@ +import { authentikServerDefinition } from './authentik-server/authentik-server.ts'; +import { domainServiceDefinition } from './domain-service/domain-service.ts'; +import { domainDefinition } from './domain/domain.ts'; +import { postgresConnectionDefinition } from './postgres-connection/postgres-connection.ts'; +import { postgresDatabaseDefinition } from './postgres-database/postgres-database.ts'; +import { redisConnectionDefinition } from './redis-connection/redis-connection.ts'; + +const customResources = [ + domainDefinition, + domainServiceDefinition, + postgresConnectionDefinition, + postgresDatabaseDefinition, + redisConnectionDefinition, + authentikServerDefinition, +]; + +export { customResources }; diff --git a/src/custom-resouces/domain-service/domain-service.create-manifests.ts b/src/custom-resouces/domain-service/domain-service.create-manifests.ts new file mode 100644 index 0000000..399de07 --- /dev/null +++ b/src/custom-resouces/domain-service/domain-service.create-manifests.ts @@ -0,0 +1,86 @@ +import type { KubernetesObject } from '@kubernetes/client-node'; + +import type { K8SVirtualServiceV1 } from '../../__generated__/resources/K8SVirtualServiceV1.ts'; +import type { K8SDestinationRuleV1 } from '../../__generated__/resources/K8SDestinationRuleV1.ts'; +import { CONTROLLED_LABEL } from '../../utils/consts.ts'; + +type CreateVirtualServiceManifestOptions = { + name: string; + namespace: string; + owner: ExpectedAny; + host: string; + gateway: string; + destination: { + host: string; + port: { + number?: number; + name?: string; + }; + }; +}; +const createVirtualServiceManifest = ( + options: CreateVirtualServiceManifestOptions, +): KubernetesObject & K8SVirtualServiceV1 => ({ + apiVersion: 'networking.istio.io/v1', + kind: 'VirtualService', + metadata: { + name: options.name, + namespace: options.namespace, + ownerReferences: [options.owner], + labels: { + ...CONTROLLED_LABEL, + }, + }, + spec: { + hosts: [options.host], + gateways: [options.gateway], + http: [ + { + match: [ + { + uri: { + prefix: '/', + }, + }, + ], + route: [ + { + destination: { + host: options.destination.host, + port: options.destination.port, + }, + }, + ], + }, + ], + }, +}); + +type CreateDestinationRuleManifestOptions = { + name: string; + namespace: string; + host: string; +}; +const createDestinationRuleManifest = ( + options: CreateDestinationRuleManifestOptions, +): KubernetesObject & K8SDestinationRuleV1 => ({ + apiVersion: 'networking.istio.io/v1', + kind: 'DestinationRule', + metadata: { + name: options.name, + namespace: options.namespace, + labels: { + ...CONTROLLED_LABEL, + }, + }, + spec: { + host: options.host, + trafficPolicy: { + tls: { + mode: 'DISABLE', + }, + }, + }, +}); + +export { createVirtualServiceManifest, createDestinationRuleManifest }; diff --git a/src/custom-resouces/domain-service/domain-service.resource.ts b/src/custom-resouces/domain-service/domain-service.resource.ts new file mode 100644 index 0000000..dd59224 --- /dev/null +++ b/src/custom-resouces/domain-service/domain-service.resource.ts @@ -0,0 +1,169 @@ +import type { KubernetesObject } from '@kubernetes/client-node'; +import deepEqual from 'deep-equal'; + +import type { K8SVirtualServiceV1 } from '../../__generated__/resources/K8SVirtualServiceV1.ts'; +import { + CustomResource, + type CustomResourceObject, + type CustomResourceOptions, + type SubresourceResult, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { ResourceReference, ResourceService, type Resource } from '../../services/resources/resources.ts'; +import type { K8SDestinationRuleV1 } from '../../__generated__/resources/K8SDestinationRuleV1.ts'; +import type { domainSpecSchema } from '../domain/domain.schemas.ts'; +import { getWithNamespace } from '../../utils/naming.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import type { domainServiceSpecSchema } from './domain-service.schemas.ts'; +import { createDestinationRuleManifest, createVirtualServiceManifest } from './domain-service.create-manifests.ts'; + +const VIRTUAL_SERVICE_CONDITION = 'VirtualService'; +const DESTINAION_RULE_CONDITION = 'DestinationRule'; + +class DomainServiceResource extends CustomResource { + #virtualServiceResource: Resource; + #virtualServiceCRDResource: Resource; + #destinationRuleResource: Resource; + #destinationRuleCRDResource: Resource; + #domainResource: ResourceReference>; + + constructor(options: CustomResourceOptions) { + super(options); + const resourceService = this.services.get(ResourceService); + this.#virtualServiceResource = resourceService.get({ + apiVersion: 'networking.istio.io/v1', + kind: 'VirtualService', + name: this.name, + namespace: this.namespace, + }); + + this.#virtualServiceCRDResource = resourceService.get({ + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + name: 'virtualservices.networking.istio.io', + }); + + this.#destinationRuleResource = resourceService.get({ + apiVersion: 'networking.istio.io/v1', + kind: 'DestinationRule', + name: this.name, + namespace: this.namespace, + }); + + this.#destinationRuleCRDResource = resourceService.get({ + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + name: 'destinationrules.networking.istio.io', + }); + + const gatewayNames = getWithNamespace(this.spec.domain); + this.#domainResource = new ResourceReference( + resourceService.get({ + apiVersion: `${GROUP}/v1`, + kind: 'Domain', + name: gatewayNames.name, + namespace: gatewayNames.namespace, + }), + ); + + this.#virtualServiceResource.on('changed', this.queueReconcile); + this.#virtualServiceCRDResource.on('changed', this.queueReconcile); + this.#destinationRuleResource.on('changed', this.queueReconcile); + this.#destinationRuleCRDResource.on('changed', this.queueReconcile); + this.#domainResource.on('changed', this.queueReconcile); + } + + #reconcileVirtualService = async (): Promise => { + if (!this.#virtualServiceCRDResource.exists) { + return { + ready: false, + failed: true, + reason: 'MissingCRD', + }; + } + const domain = this.#domainResource.current; + if (!domain?.exists || !domain.spec) { + return { + ready: false, + failed: true, + reason: 'MissingDomain', + }; + } + const manifest = createVirtualServiceManifest({ + name: this.name, + namespace: this.namespace, + gateway: `${domain.namespace}/${domain.name}`, + owner: this.ref, + host: `${this.spec.subdomain}.${domain.spec.hostname}`, + destination: this.spec.destination, + }); + + if (!deepEqual(this.#virtualServiceResource.spec, manifest.spec)) { + await this.#virtualServiceResource.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'ManifestNeedsPatching', + }; + } + + return { + ready: true, + }; + }; + + #reconcileDestinationRule = async (): Promise => { + if (!this.#destinationRuleCRDResource.exists) { + return { + ready: false, + failed: true, + reason: 'MissingCRD', + }; + } + const manifest = createDestinationRuleManifest({ + name: this.name, + namespace: this.namespace, + host: this.spec.destination.host, + }); + + if (!deepEqual(this.#destinationRuleResource.spec, manifest.spec)) { + await this.#destinationRuleResource.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'ManifestNeedsPatching', + }; + } + + return { + ready: true, + }; + }; + + public reconcile = async () => { + if (!this.exists || this.metadata.deletionTimestamp) { + return; + } + const resourceService = this.services.get(ResourceService); + const gatewayNames = getWithNamespace(this.spec.domain, this.namespace); + + this.#domainResource.current = resourceService.get({ + apiVersion: `${GROUP}/v1`, + kind: 'Domain', + name: gatewayNames.name, + namespace: gatewayNames.namespace, + }); + + await this.reconcileSubresource(VIRTUAL_SERVICE_CONDITION, this.#reconcileVirtualService); + await this.reconcileSubresource(DESTINAION_RULE_CONDITION, this.#reconcileDestinationRule); + + const virtualServiceReady = this.conditions.get(VIRTUAL_SERVICE_CONDITION)?.status === 'True'; + const destinationruleReady = this.conditions.get(DESTINAION_RULE_CONDITION)?.status === 'True'; + + await this.conditions.set('Ready', { + status: virtualServiceReady && destinationruleReady ? 'True' : 'False', + }); + }; +} + +export { DomainServiceResource }; diff --git a/src/custom-resouces/domain-service/domain-service.schemas.ts b/src/custom-resouces/domain-service/domain-service.schemas.ts new file mode 100644 index 0000000..1ab1445 --- /dev/null +++ b/src/custom-resouces/domain-service/domain-service.schemas.ts @@ -0,0 +1,15 @@ +import { z } from 'zod'; + +const domainServiceSpecSchema = z.object({ + domain: z.string(), + subdomain: z.string(), + destination: z.object({ + host: z.string(), + port: z.object({ + number: z.number().optional(), + name: z.string().optional(), + }), + }), +}); + +export { domainServiceSpecSchema }; diff --git a/src/custom-resouces/domain-service/domain-service.ts b/src/custom-resouces/domain-service/domain-service.ts new file mode 100644 index 0000000..206433e --- /dev/null +++ b/src/custom-resouces/domain-service/domain-service.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { DomainServiceResource } from './domain-service.resource.ts'; +import { domainServiceSpecSchema } from './domain-service.schemas.ts'; + +const domainServiceDefinition = createCustomResourceDefinition({ + group: GROUP, + kind: 'DomainService', + version: 'v1', + spec: domainServiceSpecSchema, + names: { + plural: 'domainservices', + singular: 'domainservice', + }, + create: (options) => new DomainServiceResource(options), +}); + +export { domainServiceDefinition }; diff --git a/src/custom-resouces/domain/domain.create-manifests.ts b/src/custom-resouces/domain/domain.create-manifests.ts new file mode 100644 index 0000000..978f3da --- /dev/null +++ b/src/custom-resouces/domain/domain.create-manifests.ts @@ -0,0 +1,73 @@ +type CreateGatewayManifestOptions = { + name: string; + namespace: string; + ref: ExpectedAny; + gateway: string; + domain: string; + secretName: string; +}; +const createGatewayManifest = (options: CreateGatewayManifestOptions) => ({ + apiVersion: 'networking.istio.io/v1alpha3', + kind: 'Gateway', + metadata: { + name: options.name, + namespace: options.namespace, + ownerReferences: [options.ref], + }, + spec: { + selector: { + istio: options.gateway, + }, + servers: [ + { + port: { + number: 80, + name: 'http', + protocol: 'HTTP', + }, + hosts: [`*.${options.domain}`], + tls: { + httpsRedirect: true, + }, + }, + { + port: { + number: 443, + name: 'https', + protocol: 'HTTPS', + }, + hosts: [`*.${options.domain}`], + tls: { + mode: 'SIMPLE' as const, + credentialName: options.secretName, + }, + }, + ], + }, +}); + +type CreateCertificateManifestOptions = { + name: string; + namespace: string; + domain: string; + secretName: string; + issuer: string; +}; +const createCertificateManifest = (options: CreateCertificateManifestOptions) => ({ + apiVersion: 'cert-manager.io/v1', + kind: 'Certificate', + metadata: { + name: options.name, + namespace: 'istio-ingress', + }, + spec: { + secretName: options.secretName, + dnsNames: [`*.${options.domain}`], + issuerRef: { + name: options.issuer, + kind: 'ClusterIssuer', + }, + }, +}); + +export { createGatewayManifest, createCertificateManifest }; diff --git a/src/custom-resouces/domain/domain.resource.ts b/src/custom-resouces/domain/domain.resource.ts new file mode 100644 index 0000000..89e9cbc --- /dev/null +++ b/src/custom-resouces/domain/domain.resource.ts @@ -0,0 +1,174 @@ +import type { KubernetesObject } from '@kubernetes/client-node'; +import deepEqual from 'deep-equal'; + +import type { K8SGatewayV1 } from '../../__generated__/resources/K8SGatewayV1.ts'; +import { + CustomResource, + type CustomResourceOptions, + type SubresourceResult, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { ResourceReference, ResourceService } from '../../services/resources/resources.ts'; +import type { K8SCertificateV1 } from '../../__generated__/resources/K8SCertificateV1.ts'; +import { IstioService } from '../../services/istio/istio.ts'; + +import type { domainSpecSchema } from './domain.schemas.ts'; +import { createCertificateManifest, createGatewayManifest } from './domain.create-manifests.ts'; + +class DomainResource extends CustomResource { + #gatewayCrdResource = new ResourceReference(); + #gatewayResource = new ResourceReference(); + #certificateCrdResource = new ResourceReference(); + #certificateResource = new ResourceReference(); + + constructor(options: CustomResourceOptions) { + super(options); + const resourceService = this.services.get(ResourceService); + const istioService = this.services.get(IstioService); + + this.#gatewayCrdResource.current = resourceService.get({ + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + name: 'gateways.networking.istio.io', + }); + this.#gatewayResource.current = resourceService.get({ + apiVersion: 'networking.istio.io/v1', + kind: 'Gateway', + name: this.name, + namespace: this.namespace, + }); + + this.#certificateCrdResource.current = resourceService.get({ + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + name: 'certificates.cert-manager.io', + }); + + this.#certificateResource.current = resourceService.get({ + apiVersion: 'cert-manager.io/v1', + kind: 'Certificate', + name: `domain-${this.name}`, + namespace: 'istio-ingress', + }); + + this.#gatewayResource.on('changed', this.queueReconcile); + this.#certificateResource.on('changed', this.queueReconcile); + this.#gatewayCrdResource.on('changed', this.queueReconcile); + this.#certificateCrdResource.on('changed', this.queueReconcile); + + istioService.gateway.on('changed', this.queueReconcile); + } + + get #certSecret() { + return `cert-secret-${this.namespace}-${this.name}`; + } + + #reconcileGateway = async (): Promise => { + if (!this.#gatewayCrdResource.current?.exists) { + return { + ready: false, + failed: true, + reason: 'MissingCRD', + message: 'Missing Gateway CRD', + }; + } + const istioService = this.services.get(IstioService); + if (!istioService.gateway.current) { + return { + ready: false, + failed: true, + reason: 'MissingGatewayController', + message: 'No istio gateway controller could be found', + }; + } + const manifest = createGatewayManifest({ + name: this.name, + namespace: this.name, + domain: this.spec.hostname, + ref: this.ref, + gateway: istioService.gateway.current.metadata?.labels?.istio || 'ingress', + secretName: this.#certSecret, + }); + if (!deepEqual(this.#gatewayResource.current?.spec, manifest.spec)) { + await this.#gatewayResource.current?.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'ChangingGateway', + message: 'Gateway need changes', + }; + } + return { + ready: true, + }; + }; + + #reconcileCertificate = async (): Promise => { + if (!this.#certificateCrdResource.current?.exists) { + return { + ready: false, + syncing: false, + failed: true, + reason: 'MissingCRD', + message: 'Missing Certificate CRD', + }; + } + const current = this.#certificateResource.current; + if (!current || !current.namespace) { + throw new Error('Missing certificate resource'); + } + const istioService = this.services.get(IstioService); + if (!istioService.gateway.current) { + return { + ready: false, + syncing: false, + failed: true, + reason: 'MissingGatewayController', + message: 'No istio gateway controller could be found', + }; + } + const manifest = createCertificateManifest({ + name: current.name, + namespace: istioService.gateway.current.namespace || 'default', + domain: this.spec.hostname, + secretName: this.#certSecret, + issuer: this.spec.issuer, + }); + if (!this.#certificateResource.current?.exists) { + await current.patch(manifest); + return { + ready: false, + syncing: true, + reason: 'Creating', + message: 'Creating certificate resource', + }; + } + if (!deepEqual(current.spec, manifest.spec)) { + await this.conditions.set('CertificateReady', { + status: 'False', + reason: 'Changing', + message: 'Certificate need changes', + }); + await current.patch(manifest); + } + return { + ready: true, + }; + }; + + public reconcile = async () => { + if (!this.exists || this.metadata.deletionTimestamp) { + return; + } + await this.reconcileSubresource('Gateway', this.#reconcileGateway); + await this.reconcileSubresource('Certificate', this.#reconcileCertificate); + + const gatewayReady = this.conditions.get('Gateway')?.status === 'True'; + const certificateReady = this.conditions.get('Certificate')?.status === 'True'; + + await this.conditions.set('Ready', { + status: gatewayReady && certificateReady ? 'True' : 'False', + }); + }; +} + +export { DomainResource }; diff --git a/src/custom-resouces/domain/domain.schemas.ts b/src/custom-resouces/domain/domain.schemas.ts new file mode 100644 index 0000000..4c9d116 --- /dev/null +++ b/src/custom-resouces/domain/domain.schemas.ts @@ -0,0 +1,8 @@ +import { z } from 'zod'; + +const domainSpecSchema = z.object({ + hostname: z.string(), + issuer: z.string(), +}); + +export { domainSpecSchema }; diff --git a/src/custom-resouces/domain/domain.ts b/src/custom-resouces/domain/domain.ts new file mode 100644 index 0000000..89765eb --- /dev/null +++ b/src/custom-resouces/domain/domain.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { DomainResource } from './domain.resource.ts'; +import { domainSpecSchema } from './domain.schemas.ts'; + +const domainDefinition = createCustomResourceDefinition({ + version: 'v1', + kind: 'Domain', + group: GROUP, + names: { + plural: 'domains', + singular: 'domain', + }, + spec: domainSpecSchema, + create: (options) => new DomainResource(options), +}); + +export { domainDefinition }; diff --git a/src/custom-resouces/postgres-connection/posgtres-connection.schemas.ts b/src/custom-resouces/postgres-connection/posgtres-connection.schemas.ts new file mode 100644 index 0000000..d9756b5 --- /dev/null +++ b/src/custom-resouces/postgres-connection/posgtres-connection.schemas.ts @@ -0,0 +1,14 @@ +import { z } from 'zod'; + +const postgresConnectionSpecSchema = z.object({ + secret: z.string(), +}); + +const postgresConnectionSecretDataSchema = z.object({ + host: z.string(), + port: z.string().optional(), + user: z.string(), + password: z.string(), +}); + +export { postgresConnectionSpecSchema, postgresConnectionSecretDataSchema }; diff --git a/src/custom-resouces/postgres-connection/postgres-connection.resource.ts b/src/custom-resouces/postgres-connection/postgres-connection.resource.ts new file mode 100644 index 0000000..8a49d7e --- /dev/null +++ b/src/custom-resouces/postgres-connection/postgres-connection.resource.ts @@ -0,0 +1,87 @@ +import type { V1Secret } from '@kubernetes/client-node'; + +import { + CustomResource, + type CustomResourceOptions, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { ResourceReference } from '../../services/resources/resources.ref.ts'; +import { ResourceService } from '../../services/resources/resources.ts'; +import { getWithNamespace } from '../../utils/naming.ts'; +import { PostgresService } from '../../services/postgres/postgres.service.ts'; + +import type { postgresConnectionSpecSchema } from './posgtres-connection.schemas.ts'; + +class PostgresConnectionResource extends CustomResource { + #secret: ResourceReference; + + constructor(options: CustomResourceOptions) { + super(options); + const resourceService = this.services.get(ResourceService); + const secretNames = getWithNamespace(this.spec.secret, this.namespace); + this.#secret = new ResourceReference( + resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: secretNames.name, + namespace: secretNames.namespace, + }), + ); + this.#secret.on('changed', this.queueReconcile); + } + + public reconcile = async () => { + const resourceService = this.services.get(ResourceService); + const secretNames = getWithNamespace(this.spec.secret, this.namespace); + this.#secret.current = resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: secretNames.name, + namespace: secretNames.namespace, + }); + + const current = this.#secret.current; + if (!current?.exists || !current.data) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingSecret', + }); + } + const { host, user, password, port } = current.data; + if (!host) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingHost', + }); + } + if (!user) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingUser', + }); + } + if (!password) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingPassword', + }); + } + const postgresService = this.services.get(PostgresService); + const database = postgresService.get({ + host, + user, + port: port ? Number(port) : 5432, + password, + }); + if (!(await database.ping())) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'CanNotConnectToDatabase', + }); + } + await this.conditions.set('Ready', { + status: 'True', + }); + }; +} + +export { PostgresConnectionResource }; diff --git a/src/custom-resouces/postgres-connection/postgres-connection.ts b/src/custom-resouces/postgres-connection/postgres-connection.ts new file mode 100644 index 0000000..51fdcab --- /dev/null +++ b/src/custom-resouces/postgres-connection/postgres-connection.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { postgresConnectionSpecSchema } from './posgtres-connection.schemas.ts'; +import { PostgresConnectionResource } from './postgres-connection.resource.ts'; + +const postgresConnectionDefinition = createCustomResourceDefinition({ + group: GROUP, + version: 'v1', + kind: 'PostgresConnection', + names: { + plural: 'postgresconnections', + singular: 'postgresconnection', + }, + spec: postgresConnectionSpecSchema, + create: (options) => new PostgresConnectionResource(options), +}); + +export { postgresConnectionDefinition }; diff --git a/src/custom-resouces/postgres-database/portgres-database.schemas.ts b/src/custom-resouces/postgres-database/portgres-database.schemas.ts new file mode 100644 index 0000000..99b9978 --- /dev/null +++ b/src/custom-resouces/postgres-database/portgres-database.schemas.ts @@ -0,0 +1,7 @@ +import { z } from 'zod'; + +const postgresDatabaseSpecSchema = z.object({ + connection: z.string(), +}); + +export { postgresDatabaseSpecSchema }; diff --git a/src/custom-resouces/postgres-database/postgres-database.resource.ts b/src/custom-resouces/postgres-database/postgres-database.resource.ts new file mode 100644 index 0000000..aed5fe4 --- /dev/null +++ b/src/custom-resouces/postgres-database/postgres-database.resource.ts @@ -0,0 +1,206 @@ +import { z } from 'zod'; +import type { V1Secret } from '@kubernetes/client-node'; + +import { + CustomResource, + type CustomResourceObject, + type CustomResourceOptions, + type SubresourceResult, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { PostgresService } from '../../services/postgres/postgres.service.ts'; +import { + postgresConnectionSecretDataSchema, + type postgresConnectionSpecSchema, +} from '../postgres-connection/posgtres-connection.schemas.ts'; +import { ResourceReference } from '../../services/resources/resources.ref.ts'; +import { Resource, ResourceService } from '../../services/resources/resources.ts'; +import { getWithNamespace } from '../../utils/naming.ts'; +import { API_VERSION } from '../../utils/consts.ts'; +import { decodeSecret } from '../../utils/secrets.ts'; + +import type { postgresDatabaseSpecSchema } from './portgres-database.schemas.ts'; + +const SECRET_READY_CONDITION = 'Secret'; +const DATABASE_READY_CONDITION = 'Database'; + +const secretDataSchema = z.object({ + host: z.string(), + port: z.string().optional(), + database: z.string(), + user: z.string(), + password: z.string(), +}); + +class PostgresDatabaseResource extends CustomResource { + #secret: Resource; + #secretName: string; + #connection: ResourceReference>; + #connectionSecret: ResourceReference; + + constructor(options: CustomResourceOptions) { + super(options); + const resouceService = this.services.get(ResourceService); + + this.#secretName = `postgres-database-${this.name}`; + this.#secret = resouceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: this.#secretName, + namespace: this.namespace, + }); + + this.#connection = new ResourceReference(); + this.#connectionSecret = new ResourceReference(); + + this.#updateSecret(); + + this.#secret.on('changed', this.queueReconcile); + this.#connection.on('changed', this.queueReconcile); + this.#connectionSecret.on('changed', this.queueReconcile); + } + + get #dbName() { + return `${this.namespace}_${this.name}`; + } + + get #userName() { + return `${this.namespace}_${this.name}`; + } + + #updateSecret = () => { + const resouceService = this.services.get(ResourceService); + const connectionNames = getWithNamespace(this.spec.connection, this.namespace); + this.#connection.current = resouceService.get({ + apiVersion: API_VERSION, + kind: 'PostgresConnection', + name: connectionNames.name, + namespace: connectionNames.namespace, + }); + if (this.#connection.current?.exists && this.#connection.current.spec) { + const connectionSecretNames = getWithNamespace( + this.#connection.current.spec.secret, + this.#connection.current.namespace, + ); + this.#connectionSecret.current = resouceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: connectionSecretNames.name, + namespace: connectionSecretNames.namespace, + }); + } + }; + + #reconcileSecret = async (): Promise => { + const connectionSecret = this.#connectionSecret.current; + if (!connectionSecret?.exists || !connectionSecret.data) { + return { + ready: false, + failed: true, + reason: 'MissingConnectionSecret', + }; + } + + const connectionSecretData = decodeSecret(connectionSecret.data); + + const secret = this.#secret; + const parsed = secretDataSchema.safeParse(decodeSecret(secret.data)); + + if (!parsed.success) { + this.#secret.patch({ + data: { + host: Buffer.from(connectionSecretData?.host || '').toString('base64'), + port: connectionSecretData?.port ? Buffer.from(connectionSecretData.port).toString('base64') : undefined, + user: Buffer.from(this.#userName).toString('base64'), + database: Buffer.from(this.#dbName).toString('base64'), + password: Buffer.from(Buffer.from(crypto.randomUUID()).toString('hex')).toString('base64'), + }, + }); + return { + ready: false, + syncing: true, + }; + } + if (parsed.data?.host !== connectionSecretData?.host || parsed.data?.port !== connectionSecretData?.port) { + this.#secret.patch({ + data: { + host: Buffer.from(connectionSecretData?.host || '').toString('base64'), + port: connectionSecretData?.port ? Buffer.from(connectionSecretData.port).toString('base64') : undefined, + }, + }); + return { + ready: false, + syncing: true, + }; + } + + return { + ready: true, + }; + }; + + #reconcileDatabase = async (): Promise => { + const connectionSecret = this.#connectionSecret.current; + if (!connectionSecret?.exists || !connectionSecret.data) { + return { + ready: false, + failed: true, + reason: 'MissingConnectionSecret', + }; + } + + const connectionSecretData = postgresConnectionSecretDataSchema.safeParse(decodeSecret(connectionSecret.data)); + if (!connectionSecretData.success || !connectionSecretData.data) { + return { + ready: false, + syncing: true, + reason: 'ConnectionSecretMissing', + }; + } + + const secretData = secretDataSchema.safeParse(decodeSecret(this.#secret.data)); + if (!secretData.success || !secretData.data) { + return { + ready: false, + syncing: true, + reason: 'SecretMissing', + }; + } + + const postgresService = this.services.get(PostgresService); + const database = postgresService.get({ + ...connectionSecretData.data, + port: connectionSecretData.data.port ? Number(connectionSecretData.data.port) : 5432, + }); + await database.upsertRole({ + name: secretData.data.user, + password: secretData.data.password, + }); + await database.upsertDatabase({ + name: secretData.data.database, + owner: secretData.data.user, + }); + + return { + ready: true, + }; + }; + + public reconcile = async () => { + this.#updateSecret(); + if (!this.exists || this.metadata.deletionTimestamp) { + return; + } + await Promise.allSettled([ + await this.reconcileSubresource(DATABASE_READY_CONDITION, this.#reconcileDatabase), + await this.reconcileSubresource(SECRET_READY_CONDITION, this.#reconcileSecret), + ]); + + const secretReady = this.conditions.get(SECRET_READY_CONDITION)?.status === 'True'; + const databaseReady = this.conditions.get(DATABASE_READY_CONDITION)?.status === 'True'; + await this.conditions.set('Ready', { + status: secretReady && databaseReady ? 'True' : 'False', + }); + }; +} + +export { PostgresDatabaseResource, secretDataSchema as postgresDatabaseSecretSchema }; diff --git a/src/custom-resouces/postgres-database/postgres-database.ts b/src/custom-resouces/postgres-database/postgres-database.ts new file mode 100644 index 0000000..1baeb4c --- /dev/null +++ b/src/custom-resouces/postgres-database/postgres-database.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { postgresDatabaseSpecSchema } from './portgres-database.schemas.ts'; +import { PostgresDatabaseResource } from './postgres-database.resource.ts'; + +const postgresDatabaseDefinition = createCustomResourceDefinition({ + group: GROUP, + version: 'v1', + kind: 'PostgresDatabase', + names: { + plural: 'postgresdatabases', + singular: 'postgresdatabase', + }, + spec: postgresDatabaseSpecSchema, + create: (options) => new PostgresDatabaseResource(options), +}); + +export { postgresDatabaseDefinition }; diff --git a/src/custom-resouces/redis-connection/redis-connection.resource.ts b/src/custom-resouces/redis-connection/redis-connection.resource.ts new file mode 100644 index 0000000..f02c572 --- /dev/null +++ b/src/custom-resouces/redis-connection/redis-connection.resource.ts @@ -0,0 +1,61 @@ +import type { V1Secret } from '@kubernetes/client-node'; + +import { + CustomResource, + type CustomResourceOptions, +} from '../../services/custom-resources/custom-resources.custom-resource.ts'; +import { ResourceReference } from '../../services/resources/resources.ref.ts'; +import { ResourceService } from '../../services/resources/resources.ts'; +import { getWithNamespace } from '../../utils/naming.ts'; + +import type { redisConnectionSpecSchema } from './redis-connection.schemas.ts'; + +class RedisConnectionResource extends CustomResource { + #secret: ResourceReference; + + constructor(options: CustomResourceOptions) { + super(options); + const resourceService = this.services.get(ResourceService); + const secretNames = getWithNamespace(this.spec.secret, this.namespace); + this.#secret = new ResourceReference( + resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: secretNames.name, + namespace: secretNames.namespace, + }), + ); + this.#secret.on('changed', this.queueReconcile); + } + + public reconcile = async () => { + const resourceService = this.services.get(ResourceService); + const secretNames = getWithNamespace(this.spec.secret, this.namespace); + this.#secret.current = resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name: secretNames.name, + namespace: secretNames.namespace, + }); + + const current = this.#secret.current; + if (!current?.exists || !current.data) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingSecret', + }); + } + const { host } = current.data; + if (!host) { + return this.conditions.set('Ready', { + status: 'False', + reason: 'MissingHost', + }); + } + await this.conditions.set('Ready', { + status: 'True', + }); + }; +} + +export { RedisConnectionResource }; diff --git a/src/custom-resouces/redis-connection/redis-connection.schemas.ts b/src/custom-resouces/redis-connection/redis-connection.schemas.ts new file mode 100644 index 0000000..52c2c08 --- /dev/null +++ b/src/custom-resouces/redis-connection/redis-connection.schemas.ts @@ -0,0 +1,14 @@ +import { z } from 'zod'; + +const redisConnectionSpecSchema = z.object({ + secret: z.string(), +}); + +const redisConnectionSecretDataSchema = z.object({ + host: z.string(), + port: z.string().optional(), + user: z.string().optional(), + password: z.string().optional(), +}); + +export { redisConnectionSpecSchema, redisConnectionSecretDataSchema }; diff --git a/src/custom-resouces/redis-connection/redis-connection.ts b/src/custom-resouces/redis-connection/redis-connection.ts new file mode 100644 index 0000000..6e6e0f3 --- /dev/null +++ b/src/custom-resouces/redis-connection/redis-connection.ts @@ -0,0 +1,19 @@ +import { createCustomResourceDefinition } from '../../services/custom-resources/custom-resources.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { redisConnectionSpecSchema } from './redis-connection.schemas.ts'; +import { RedisConnectionResource } from './redis-connection.resource.ts'; + +const redisConnectionDefinition = createCustomResourceDefinition({ + group: GROUP, + version: 'v1', + kind: 'RedisConnection', + names: { + plural: 'redisconnections', + singular: 'redisconnection', + }, + spec: redisConnectionSpecSchema, + create: (options) => new RedisConnectionResource(options), +}); + +export { redisConnectionDefinition }; diff --git a/src/custom-resource/custom-resource.base.ts b/src/custom-resource/custom-resource.base.ts deleted file mode 100644 index 906d032..0000000 --- a/src/custom-resource/custom-resource.base.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { z, type ZodObject } from 'zod'; - -import { GROUP } from '../utils/consts.ts'; -import type { Services } from '../utils/service.ts'; - -import { customResourceStatusSchema, type CustomResourceRequest } from './custom-resource.request.ts'; - -type EnsureSecretOptions = { - schema: T; - name: string; - namespace: string; - generator: () => Promise>; -}; - -type CustomResourceHandlerOptions = { - request: CustomResourceRequest; - ensureSecret: (options: EnsureSecretOptions) => Promise>; - services: Services; -}; - -type CustomResourceConstructor = { - kind: string; - spec: TSpec; - names: { - plural: string; - singular: string; - }; -}; - -abstract class CustomResource { - #options: CustomResourceConstructor; - - constructor(options: CustomResourceConstructor) { - this.#options = options; - } - - public readonly version = 'v1'; - - public get name() { - return `${this.#options.names.plural}.${this.group}`; - } - - public get group() { - return GROUP; - } - - public get path() { - return `/apis/${this.group}/v1/${this.#options.names.plural}`; - } - - public get kind() { - return this.#options.kind; - } - - public get spec() { - return this.#options.spec; - } - - public get names() { - return this.#options.names; - } - - public update?(options: CustomResourceHandlerOptions): Promise; - public create?(options: CustomResourceHandlerOptions): Promise; - public delete?(options: CustomResourceHandlerOptions): Promise; - public reconcile?(options: CustomResourceHandlerOptions): Promise; - - public toManifest = () => { - return { - apiVersion: 'apiextensions.k8s.io/v1', - kind: 'CustomResourceDefinition', - metadata: { - name: this.name, - }, - spec: { - group: this.group, - names: { - kind: this.kind, - plural: this.#options.names.plural, - singular: this.#options.names.singular, - }, - scope: 'Namespaced', - versions: [ - { - name: this.version, - served: true, - storage: true, - schema: { - openAPIV3Schema: { - type: 'object', - properties: { - spec: { - ...z.toJSONSchema(this.spec.strict(), { io: 'input' }), - $schema: undefined, - additionalProperties: undefined, - } as ExpectedAny, - status: { - ...z.toJSONSchema(customResourceStatusSchema.strict(), { io: 'input' }), - $schema: undefined, - additionalProperties: undefined, - } as ExpectedAny, - }, - }, - }, - subresources: { - status: {}, - }, - }, - ], - }, - }; - }; -} - -const createCustomResource = ( - options: CustomResourceConstructor & { - update?: (options: CustomResourceHandlerOptions) => Promise; - create?: (options: CustomResourceHandlerOptions) => Promise; - delete?: (options: CustomResourceHandlerOptions) => Promise; - }, -) => { - return class extends CustomResource { - constructor() { - super(options); - } - - public update = options.update; - public create = options.create; - public delete = options.delete; - }; -}; - -export { - CustomResource, - type CustomResourceConstructor, - type CustomResourceHandlerOptions, - type EnsureSecretOptions, - createCustomResource, -}; diff --git a/src/custom-resource/custom-resource.registry.ts b/src/custom-resource/custom-resource.registry.ts deleted file mode 100644 index 8a752ab..0000000 --- a/src/custom-resource/custom-resource.registry.ts +++ /dev/null @@ -1,280 +0,0 @@ -import { ApiException, Watch } from '@kubernetes/client-node'; -import type { z, ZodObject } from 'zod'; - -import { K8sService } from '../services/k8s.ts'; -import type { Services } from '../utils/service.ts'; - -import { type CustomResource, type EnsureSecretOptions } from './custom-resource.base.ts'; -import { CustomResourceRequest } from './custom-resource.request.ts'; - -type ManifestCacheItem = { - kind: string; - namespace?: string; - name?: string; - manifest: CustomResourceRequest; -}; - -type ManifestChangeOptions = { - crd: CustomResource; - cacheKey: string; - manifest: ExpectedAny; -}; - -class CustomResourceRegistry { - #services: Services; - #resources = new Set>(); - #watchers = new Map(); - #cache = new Map(); - - constructor(services: Services) { - this.#services = services; - } - - public get kinds() { - return Array.from(this.#resources).map((r) => r.kind); - } - - public getByKind = (kind: string) => { - return Array.from(this.#resources).find((r) => r.kind === kind); - }; - - public register = (resource: CustomResource) => { - this.#resources.add(resource); - }; - - public unregister = (resource: CustomResource) => { - this.#resources.delete(resource); - this.#watchers.forEach((controller, kind) => { - if (kind === resource.kind) { - controller.abort(); - this.#watchers.delete(kind); - } - }); - }; - - public watch = async () => { - const k8sService = this.#services.get(K8sService); - const watcher = new Watch(k8sService.config); - for (const resource of this.#resources) { - if (this.#watchers.has(resource.kind)) { - continue; - } - const path = resource.path; - const controller = await watcher.watch(path, {}, this.#onResourceEvent, this.#onError); - this.#watchers.set(resource.kind, controller); - } - }; - - #ensureSecret = - (request: CustomResourceRequest) => - async (options: EnsureSecretOptions): Promise> => { - const { schema, name, namespace, generator } = options; - const { metadata } = request; - const k8sService = this.#services.get(K8sService); - let exists = false; - try { - const secret = await k8sService.api.readNamespacedSecret({ - name, - namespace, - }); - - exists = true; - if (secret?.data) { - const decoded = Object.fromEntries( - Object.entries(secret.data).map(([key, value]) => [key, Buffer.from(value, 'base64').toString('utf-8')]), - ); - if (schema.safeParse(decoded).success) { - return decoded as z.infer; - } - } - } catch (error) { - if (!(error instanceof ApiException && error.code === 404)) { - throw error; - } - } - const value = await generator(); - const data = Object.fromEntries( - Object.entries(value).map(([key, value]) => [key, Buffer.from(value as string).toString('base64')]), - ); - const body = { - kind: 'Secret', - metadata: { - name, - namespace, - ownerReferences: [ - { - apiVersion: request.apiVersion, - kind: request.kind, - name: metadata.name, - uid: metadata.uid, - }, - ], - }, - type: 'Opaque', - data, - }; - if (exists) { - await k8sService.api.replaceNamespacedSecret({ - name, - namespace, - body, - }); - } else { - await k8sService.api.createNamespacedSecret({ - namespace, - body, - }); - } - return value; - }; - - public get objects() { - return Array.from(this.#cache.values()); - } - - #onResourceUpdated = async (type: string, options: ManifestChangeOptions) => { - const { cacheKey, manifest, crd } = options; - const { kind, metadata } = manifest; - const request = new CustomResourceRequest({ - type: type as 'ADDED' | 'MODIFIED', - manifest: manifest, - services: this.#services, - }); - this.#cache.set(cacheKey, { - kind, - manifest: request, - }); - const status = await request.getStatus(); - if (status && (type === 'ADDED' || type === 'MODIFIED')) { - if (status.observedGeneration === metadata.generation) { - this.#services.log.debug('Skipping resource update', { - kind, - name: metadata.name, - namespace: metadata.namespace, - observedGeneration: status.observedGeneration, - generation: metadata.generation, - }); - await crd.reconcile?.({ - request, - services: this.#services, - ensureSecret: this.#ensureSecret(request) as ExpectedAny, - }); - return; - } - } - this.#services.log.debug('Updating resource', { - type, - kind, - name: metadata.name, - namespace: metadata.namespace, - observedGeneration: status?.observedGeneration, - generation: metadata.generation, - }); - await request.markSeen(); - const handler = type === 'ADDED' && crd.create ? crd.create : crd.update; - try { - await handler?.({ - request, - services: this.#services, - ensureSecret: this.#ensureSecret(request) as ExpectedAny, - }); - if (type === 'ADDED' || type === 'MODIFIED') { - await request.setCondition({ - type: 'Ready', - status: 'True', - message: 'Resource created', - }); - } - } catch (error) { - let message = 'Unknown error'; - - if (error instanceof ApiException) { - message = error.body; - this.#services.log.error('Error handling resource', { reason: error.body }, error); - } else if (error instanceof Error) { - message = error.message; - this.#services.log.error('Error handling resource', { reason: error.message }, error); - } else { - message = String(error); - this.#services.log.error('Error handling resource', { reason: String(error) }, error); - } - if (type === 'ADDED' || type === 'MODIFIED') { - await request.setCondition({ - type: 'Ready', - status: 'False', - reason: 'Error', - message, - }); - } - } - }; - - #onDelete = async (options: ManifestChangeOptions) => { - const { manifest, cacheKey } = options; - const { kind, metadata } = manifest; - - this.#services.log.debug('Deleting resource', { - kind, - name: metadata.name, - namespace: metadata.namespace, - observedGeneration: manifest.status?.observedGeneration, - generation: metadata.generation, - }); - this.#cache.delete(cacheKey); - }; - - #onResourceEvent = async (type: string, manifest: ExpectedAny) => { - const { kind, metadata } = manifest; - const { name, namespace } = metadata; - const cacheKey = [kind, name, namespace].join('___'); - const crd = this.getByKind(kind); - if (!crd) { - return; - } - - const input = { cacheKey, manifest, crd }; - - if (type === 'DELETE') { - await this.#onDelete(input); - } else { - await this.#onResourceUpdated(type, input); - } - }; - - #onError = (error: ExpectedAny) => { - this.#services.log.error('Error watching resource', { error }); - }; - - public install = async (replace = false) => { - const k8sService = this.#services.get(K8sService); - for (const crd of this.#resources) { - this.#services.log.info('Installing CRD', { kind: crd.kind }); - try { - const manifest = crd.toManifest(); - try { - await k8sService.extensionsApi.createCustomResourceDefinition({ - body: manifest, - }); - } catch (error) { - if (error instanceof ApiException && error.code === 409) { - if (replace) { - await k8sService.extensionsApi.patchCustomResourceDefinition({ - name: crd.name, - body: [{ op: 'replace', path: '/spec', value: manifest.spec }], - }); - } - continue; - } - throw error; - } - } catch (error) { - if (error instanceof ApiException) { - throw new Error(`Failed to install ${crd.kind}: ${error.body}`); - } - throw error; - } - } - }; -} - -export { CustomResourceRegistry }; diff --git a/src/custom-resource/custom-resource.request.ts b/src/custom-resource/custom-resource.request.ts deleted file mode 100644 index 0a344a2..0000000 --- a/src/custom-resource/custom-resource.request.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { z, type ZodObject } from 'zod'; -import { setHeaderOptions } from '@kubernetes/client-node'; - -import type { Services } from '../utils/service.ts'; -import { Manifest } from '../services/k8s/k8s.manifest.ts'; -import { K8sService } from '../services/k8s.ts'; - -import { CustomResourceRegistry } from './custom-resource.registry.ts'; - -type CustomResourceRequestOptions = { - type: 'ADDED' | 'DELETED' | 'MODIFIED'; - manifest: ExpectedAny; - services: Services; -}; - -const customResourceStatusSchema = z.object({ - observedGeneration: z.number(), - conditions: z.array( - z.object({ - type: z.string(), - status: z.enum(['True', 'False', 'Unknown']), - lastTransitionTime: z.string().datetime(), - reason: z.string().optional(), - message: z.string().optional(), - }), - ), -}); - -type CustomResourceStatus = z.infer; - -class CustomResourceRequest extends Manifest> { - #type: 'ADDED' | 'DELETED' | 'MODIFIED'; - - constructor({ type, ...options }: CustomResourceRequestOptions) { - super(options); - this.#type = type; - } - - public get schema() { - return undefined as unknown as z.infer; - } - - public get type(): 'ADDED' | 'DELETED' | 'MODIFIED' { - return this.#type; - } - - public markSeen = async () => { - await this.setStatus({ - observedGeneration: this.manifest.metadata.generation, - }); - }; - - public setCondition = async (condition: Omit) => { - const fullCondition = { - ...condition, - lastTransitionTime: new Date().toISOString(), - }; - const conditions: CustomResourceStatus['conditions'] = this.manifest?.status?.conditions || []; - const index = conditions.findIndex((c) => c.type === condition.type); - if (index === -1) { - conditions.push(fullCondition); - } else { - conditions[index] = fullCondition; - } - await this.setStatus({ - conditions, - }); - }; - - public getStatus = async () => { - return this.manifest?.status as CustomResourceStatus | undefined; - }; - - public setStatus = async (status: Partial) => { - const { kind, metadata } = this.manifest; - const registry = this.services.get(CustomResourceRegistry); - const crd = registry.getByKind(kind); - if (!crd) { - throw new Error(`Custom resource ${kind} not found`); - } - - const current = await this.manifest; - const k8sService = this.services.get(K8sService); - - const { namespace = 'default', name } = metadata; - - const response = await k8sService.customObjectsApi.patchNamespacedCustomObjectStatus( - { - group: crd.group, - version: crd.version, - namespace, - plural: crd.names.plural, - name, - body: { - status: { - observedGeneration: this.manifest.metadata.generation, - conditions: current?.status?.conditions || [], - ...current?.status, - ...status, - }, - }, - fieldValidation: 'Strict', - }, - { - ...setHeaderOptions('Content-Type', 'application/merge-patch+json'), - }, - ); - this.manifest = response; - return response; - }; -} - -export { CustomResourceRequest, customResourceStatusSchema }; diff --git a/src/database/database.service.ts b/src/database/database.service.ts deleted file mode 100644 index 90982d4..0000000 --- a/src/database/database.service.ts +++ /dev/null @@ -1,59 +0,0 @@ -import knex, { type Knex } from 'knex'; - -import { Services } from '../utils/service.ts'; -import { PostgresService } from '../services/postgres/postgres.service.ts'; -import { ConfigService } from '../services/config/config.ts'; - -import { migrationSource } from './migrations/migrations.ts'; - -const DATABASE_NAME = 'homelab'; - -class DatabaseService { - #services: Services; - #knex?: Promise; - - constructor(services: Services) { - this.#services = services; - } - - #setup = async () => { - const password = crypto.randomUUID(); - const postgresService = this.#services.get(PostgresService); - await postgresService.upsertRole({ - name: DATABASE_NAME, - password, - }); - await postgresService.upsertDatabase({ - name: DATABASE_NAME, - owner: DATABASE_NAME, - }); - const configService = this.#services.get(ConfigService); - const postgresConfig = configService.postgres; - const db = knex({ - client: 'pg', - connection: { - host: postgresConfig.host, - user: postgresConfig.user, - password: postgresConfig.password, - database: DATABASE_NAME, - }, - migrations: { - migrationSource, - }, - }); - - await db.migrate.latest(); - - return db; - }; - - public getDb = async () => { - if (!this.#knex) { - this.#knex = this.#setup(); - } - return this.#knex; - }; -} - -export { tableNames, type Table } from './migrations/migrations.ts'; -export { DatabaseService }; diff --git a/src/database/migrations/migrations-001.init.ts b/src/database/migrations/migrations-001.init.ts deleted file mode 100644 index b4c43bb..0000000 --- a/src/database/migrations/migrations-001.init.ts +++ /dev/null @@ -1,51 +0,0 @@ -import type { Migration } from './migrations.types.ts'; - -const tableNames = { - secrets: 'secrets', - postgresRoles: 'postgres_roles', -}; - -const init: Migration = { - name: 'init', - up: async (db) => { - await db.schema.createTable(tableNames.secrets, (table) => { - table.string('name').primary(); - table.string('namespace').notNullable(); - table.string('secretName').notNullable(); - table.json('template').notNullable(); - table.json('data').notNullable(); - table.primary(['name', 'namespace']); - }); - - await db.schema.createTable(tableNames.postgresRoles, (table) => { - table.string('name').primary(); - table.string('namespace').notNullable(); - table.text('password').notNullable(); - }); - }, - down: async (db) => { - await db.schema.dropTable(tableNames.secrets); - await db.schema.dropTable(tableNames.postgresRoles); - }, -}; - -type PostgresRoleRow = { - name: string; - namespace: string; - password: string; -}; - -type SecretRow = { - name: string; - namespace: string; - secretName: string; - template: Record; - data: Record; -}; - -type Table = { - secrets: SecretRow; - postgresRoles: PostgresRoleRow; -}; - -export { init, tableNames, type PostgresRoleRow, type SecretRow, type Table }; diff --git a/src/database/migrations/migrations.ts b/src/database/migrations/migrations.ts deleted file mode 100644 index ccf4c54..0000000 --- a/src/database/migrations/migrations.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Knex } from 'knex'; - -import { init } from './migrations-001.init.ts'; -import type { Migration } from './migrations.types.ts'; - -const migrations = [init] satisfies Migration[]; - -const migrationSource: Knex.MigrationSource = { - getMigrations: async () => migrations, - getMigrationName: (migration) => migration.name, - getMigration: async (migration) => migration, -}; - -export { tableNames, type Table } from './migrations-001.init.ts'; -export { migrationSource }; diff --git a/src/database/migrations/migrations.types.ts b/src/database/migrations/migrations.types.ts deleted file mode 100644 index 267fd12..0000000 --- a/src/database/migrations/migrations.types.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Knex } from 'knex'; - -type Migration = { - name: string; - up: (db: Knex) => Promise; - down: (db: Knex) => Promise; -}; - -export type { Migration }; diff --git a/src/index.ts b/src/index.ts index bc49ded..53dad35 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,11 @@ import 'dotenv/config'; import { ApiException } from '@kubernetes/client-node'; -import { CustomResourceRegistry } from './custom-resource/custom-resource.registry.ts'; import { Services } from './utils/service.ts'; -import { SecretRequest } from './crds/secrets/secrets.request.ts'; -import { PostgresDatabase } from './crds/postgres/postgres.database.ts'; -import { AuthentikClient } from './crds/authentik/client/client.ts'; -import { Domain } from './crds/domain/domain/domain.ts'; -import { DomainEndpoint } from './crds/domain/endpoint/endpoint.ts'; -import { AuthentikServer } from './crds/authentik/server/server.ts'; +import { CustomResourceService } from './services/custom-resources/custom-resources.ts'; +import { WatcherService } from './services/watchers/watchers.ts'; +import { IstioService } from './services/istio/istio.ts'; +import { customResources } from './custom-resouces/custom-resources.ts'; process.on('uncaughtException', (error) => { console.log('UNCAUGHT EXCEPTION'); @@ -22,7 +19,6 @@ process.on('uncaughtException', (error) => { process.on('unhandledRejection', (error) => { console.log('UNHANDLED REJECTION'); if (error instanceof Error) { - // show stack trace console.error(error.stack); } if (error instanceof ApiException) { @@ -33,14 +29,57 @@ process.on('unhandledRejection', (error) => { }); const services = new Services(); -const registry = services.get(CustomResourceRegistry); +const watcherService = services.get(WatcherService); +await watcherService + .create({ + path: '/apis/apiextensions.k8s.io/v1/customresourcedefinitions', + list: async (k8s) => { + return await k8s.extensionsApi.listCustomResourceDefinition(); + }, + verbs: ['add', 'update', 'delete'], + transform: (manifest) => ({ + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + ...manifest, + }), + }) + .start(); +await watcherService + .create({ + path: '/api/v1/secrets', + list: async (k8s) => { + return await k8s.api.listSecretForAllNamespaces(); + }, + verbs: ['add', 'update', 'delete'], + transform: (manifest) => ({ + apiVersion: 'v1', + kind: 'Secret', + ...manifest, + }), + }) + .start(); +await watcherService + .create({ + path: '/apis/apps/v1/deployments', + list: async (k8s) => { + return await k8s.apps.listDeploymentForAllNamespaces({}); + }, + verbs: ['add', 'update', 'delete'], + transform: (manifest) => ({ + apiVersion: 'apps/v1', + kind: 'Deployment', + ...manifest, + }), + }) + .start(); -registry.register(new SecretRequest()); -registry.register(new PostgresDatabase()); -registry.register(new AuthentikServer()); -registry.register(new AuthentikClient()); -registry.register(new Domain()); -registry.register(new DomainEndpoint()); +await watcherService.watchCustomGroup('networking.istio.io', 'v1', ['gateways', 'virtualservices', 'destinationrules']); -await registry.install(true); -await registry.watch(); +const istio = services.get(IstioService); +await istio.start(); + +const customResourceService = services.get(CustomResourceService); +customResourceService.register(...customResources); + +await customResourceService.install(true); +await customResourceService.watch(); diff --git a/src/scripts/update-manifests.ts b/src/scripts/update-manifests.ts new file mode 100644 index 0000000..3eccd50 --- /dev/null +++ b/src/scripts/update-manifests.ts @@ -0,0 +1,48 @@ +import { mkdir, writeFile } from 'node:fs/promises'; +import { join } from 'node:path'; + +import { compile } from 'json-schema-to-typescript'; + +import { K8sService } from '../services/k8s/k8s.ts'; +import { Services } from '../utils/service.ts'; + +const services = new Services(); +const k8s = services.get(K8sService); + +const manifests = await k8s.extensionsApi.listCustomResourceDefinition(); +const root = join(import.meta.dirname, '..', '__generated__', 'resources'); + +await mkdir(root, { recursive: true }); + +const firstUpsercase = (input: string) => { + const [first, ...rest] = input.split(''); + return [first.toUpperCase(), ...rest].join(''); +}; + +for (const manifest of manifests.items) { + for (const version of manifest.spec.versions) { + try { + const schema = version.schema?.openAPIV3Schema; + if (!schema) { + continue; + } + const cleanedSchema = JSON.parse(JSON.stringify(schema)); + const kind = manifest.spec.names.kind; + const typeName = `K8S${kind}${firstUpsercase(version.name)}`; + const jsonLocation = join(root, `${typeName}.json`); + await writeFile(jsonLocation, JSON.stringify(schema, null, 2)); + const file = await compile(cleanedSchema, typeName, { + declareExternallyReferenced: true, + additionalProperties: false, + $refOptions: { + continueOnError: true, + }, + }); + const fileLocation = join(root, `${typeName}.ts`); + await writeFile(fileLocation, file, 'utf8'); + } catch (err) { + console.error(err); + console.error(`${manifest.metadata?.name} ${version.name} failed`); + } + } +} diff --git a/src/services/config/config.ts b/src/services/config/config.ts deleted file mode 100644 index 6d902b1..0000000 --- a/src/services/config/config.ts +++ /dev/null @@ -1,34 +0,0 @@ -class ConfigService { - public get istio() { - const gateway = process.env.ISTIO_GATEWAY; - if (!gateway) { - throw new Error('ISTIO_GATEWAY must be set'); - } - return { - gateway: process.env.ISTIO_GATEWAY, - }; - } - - public get certManager() { - const certManager = process.env.CERT_MANAGER; - if (!certManager) { - throw new Error('CERT_MANAGER must be set'); - } - return certManager; - } - - public get postgres() { - const host = process.env.POSTGRES_HOST; - const user = process.env.POSTGRES_USER; - const password = process.env.POSTGRES_PASSWORD; - const port = process.env.POSTGRES_PORT ? parseInt(process.env.POSTGRES_PORT, 10) : 5432; - - if (!host || !user || !password) { - throw new Error('POSTGRES_HOST, POSTGRES_USER, and POSTGRES_PASSWORD must be set'); - } - - return { host, user, password, port }; - } -} - -export { ConfigService }; diff --git a/src/services/custom-resources/custom-resources.conditions.ts b/src/services/custom-resources/custom-resources.conditions.ts new file mode 100644 index 0000000..2183506 --- /dev/null +++ b/src/services/custom-resources/custom-resources.conditions.ts @@ -0,0 +1,91 @@ +import { EventEmitter } from 'eventemitter3'; +import equal from 'deep-equal'; + +import type { CustomResource } from './custom-resources.custom-resource.ts'; +import type { CustomResourceStatus } from './custom-resources.types.ts'; + +type CustomResourceStatusOptions = { + resource: CustomResource; +}; + +type CustomResourceConditionsEvents = { + changed: (type: string, condition: Condition) => void; +}; + +type Condition = { + lastTransitionTime: Date; + status: 'True' | 'False' | 'Unknown'; + syncing?: boolean; + failed?: boolean; + resource?: boolean; + reason?: string; + message?: string; + observedGeneration?: number; +}; + +class CustomResourceConditions extends EventEmitter { + #options: CustomResourceStatusOptions; + #conditions: Record; + + constructor(options: CustomResourceStatusOptions) { + super(); + this.#options = options; + this.#conditions = Object.fromEntries( + (options.resource.status?.conditions || []).map(({ type, lastTransitionTime, ...condition }) => [ + type, + { + ...condition, + lastTransitionTime: new Date(lastTransitionTime), + }, + ]), + ); + options.resource.on('changed', this.#handleChange); + } + + #handleChange = () => { + const { resource } = this.#options; + for (const { type, ...condition } of resource.status?.conditions || []) { + const next = { + ...condition, + lastTransitionTime: new Date(condition.lastTransitionTime), + }; + const current = this.#conditions[type]; + const isEqual = equal(current, next); + const isNewer = !current || next.lastTransitionTime > current.lastTransitionTime; + if (isEqual || !isNewer) { + return; + } + this.#conditions[type] = next; + this.emit('changed', type, next); + } + }; + + public get = (type: string): Condition | undefined => { + return this.#conditions[type]; + }; + + public set = async (type: string, condition: Omit) => { + const current = this.#conditions[type]; + this.#conditions[type] = { + ...condition, + + lastTransitionTime: current && current.status === condition.status ? current.lastTransitionTime : new Date(), + observedGeneration: this.#options.resource.metadata?.generation, + }; + await this.save(); + }; + + public save = async () => { + const { resource } = this.#options; + const status: CustomResourceStatus = { + conditions: Object.entries(this.#conditions).map(([type, condition]) => ({ + ...condition, + type, + lastTransitionTime: condition.lastTransitionTime.toISOString(), + })), + }; + await resource.patchStatus(status); + }; +} + +export { CustomResourceConditions }; diff --git a/src/services/custom-resources/custom-resources.custom-resource.ts b/src/services/custom-resources/custom-resources.custom-resource.ts new file mode 100644 index 0000000..0f0b22e --- /dev/null +++ b/src/services/custom-resources/custom-resources.custom-resource.ts @@ -0,0 +1,211 @@ +import type { z, ZodObject } from 'zod'; +import { ApiException, PatchStrategy, setHeaderOptions, type KubernetesObject } from '@kubernetes/client-node'; +import { EventEmitter } from 'eventemitter3'; + +import type { Resource } from '../resources/resources.resource.ts'; +import type { Services } from '../../utils/service.ts'; +import { K8sService } from '../k8s/k8s.ts'; +import { CoalescingQueued } from '../../utils/queues.ts'; + +import type { CustomResourceDefinition, CustomResourceStatus } from './custom-resources.types.ts'; +import { CustomResourceConditions } from './custom-resources.conditions.ts'; + +type CustomResourceObject = KubernetesObject & { + spec: z.infer; + status?: CustomResourceStatus; +}; + +type CustomResourceOptions = { + resource: Resource>; + services: Services; + definition: CustomResourceDefinition; +}; + +type CustomResourceEvents = { + changed: () => void; + changedStatus: (options: { previous: CustomResourceStatus; next: CustomResourceStatus }) => void; + changedMetadate: (options: { previous: KubernetesObject['metadata']; next: KubernetesObject['metadata'] }) => void; + changedSpec: (options: { previous: z.infer; next: z.infer }) => void; +}; + +type SubresourceResult = { + ready: boolean; + syncing?: boolean; + failed?: boolean; + reason?: string; + message?: string; +}; + +abstract class CustomResource extends EventEmitter> { + #options: CustomResourceOptions; + #conditions: CustomResourceConditions; + #queue: CoalescingQueued; + + constructor(options: CustomResourceOptions) { + super(); + this.#options = options; + this.#conditions = new CustomResourceConditions({ + resource: this, + }); + options.resource.on('changed', this.#handleChanged); + this.#queue = new CoalescingQueued({ + action: async () => { + console.log('Reconcileing', this.apiVersion, this.kind, this.namespace, this.name); + await this.reconcile?.(); + }, + }); + } + + public get conditions() { + return this.#conditions; + } + + public get names() { + return this.#options.definition.names; + } + + public get services() { + const { services } = this.#options; + return services; + } + + public get resource() { + const { resource } = this.#options; + return resource; + } + + public get apiVersion() { + const apiVersion = this.resource.apiVersion; + if (!apiVersion) { + throw new Error('Custom resources needs an apiVersion'); + } + return apiVersion; + } + + public get kind() { + const kind = this.resource.kind; + if (!kind) { + throw new Error('Custom resources needs a kind'); + } + return kind; + } + + public get metadata() { + const metadata = this.resource.metadata; + if (!metadata) { + throw new Error('Custom resources needs metadata'); + } + return metadata; + } + + public get name() { + const name = this.metadata.name; + if (!name) { + throw new Error('Custom resources needs a name'); + } + return name; + } + + public get namespace() { + const namespace = this.metadata.namespace; + if (!namespace) { + throw new Error('Custom resources needs a namespace'); + } + return namespace; + } + + public get exists() { + return this.resource.exists; + } + + public get ref() { + return this.resource.ref; + } + + public get spec(): z.infer { + return this.resource.spec as ExpectedAny; + } + + public get status() { + return this.resource.manifest?.status; + } + + public get isSeen() { + return this.metadata.generation === this.status?.observedGeneration; + } + + public get isValidSpec() { + const { success } = this.#options.definition.spec.safeParse(this.spec); + return success; + } + + public setup?: () => Promise; + public reconcile?: () => Promise; + + public markSeen = async () => { + if (this.isSeen) { + return; + } + await this.patchStatus({ + observedGeneration: this.metadata.generation, + }); + }; + + public queueReconcile = async () => { + return this.#queue.run(); + }; + + #handleChanged = () => { + this.emit('changed'); + }; + + public reconcileSubresource = async (name: string, action: () => Promise) => { + try { + const result = await action(); + await this.conditions.set(name, { + status: result.ready ? 'True' : 'False', + syncing: result.syncing, + failed: result.failed ?? false, + resource: true, + reason: result.reason, + message: result.message, + }); + } catch (err) { + console.error(err); + await this.conditions.set(name, { + status: 'False', + failed: true, + reason: 'Failed', + resource: true, + message: err instanceof Error ? err.message : String(err), + }); + } + }; + + public patchStatus = async (status: Partial) => { + const k8s = this.services.get(K8sService); + const [group, version] = this.apiVersion?.split('/') || []; + try { + await k8s.customObjectsApi.patchNamespacedCustomObjectStatus( + { + group, + version, + plural: this.names.plural, + name: this.name, + namespace: this.namespace, + body: { + status, + }, + }, + setHeaderOptions('Content-Type', PatchStrategy.MergePatch), + ); + } catch (err) { + if (err instanceof ApiException && err.code === 404) { + return; + } + throw err; + } + }; +} + +export { CustomResource, type CustomResourceOptions, type CustomResourceObject, type SubresourceResult }; diff --git a/src/services/custom-resources/custom-resources.ts b/src/services/custom-resources/custom-resources.ts new file mode 100644 index 0000000..38d6823 --- /dev/null +++ b/src/services/custom-resources/custom-resources.ts @@ -0,0 +1,128 @@ +import { ApiException, type KubernetesObject } from '@kubernetes/client-node'; +import type { ZodObject } from 'zod'; + +import type { Services } from '../../utils/service.ts'; +import type { Resource } from '../resources/resources.resource.ts'; +import { WatcherService } from '../watchers/watchers.ts'; +import { K8sService } from '../k8s/k8s.ts'; +import { Queue } from '../queue/queue.ts'; + +import type { CustomResourceDefinition } from './custom-resources.types.ts'; +import type { CustomResource } from './custom-resources.custom-resource.ts'; +import { createManifest } from './custom-resources.utils.ts'; + +type DefinitionItem = { + definition: CustomResourceDefinition; + queue: Queue; +}; + +class CustomResourceService { + #services: Services; + #definitions: DefinitionItem[]; + #resources: Map>; + + constructor(services: Services) { + this.#definitions = []; + this.#resources = new Map(); + this.#services = services; + } + + #handleChanged = async (resource: Resource) => { + const uid = resource.metadata?.uid; + if (!uid) { + return; + } + let current = this.#resources.get(uid); + if (!current) { + const entry = this.#definitions.find( + ({ definition: r }) => + r.version === resource.version && + r.group === resource.group && + r.version === resource.version && + r.kind === resource.kind, + ); + if (!entry) { + return; + } + const { definition } = entry; + current = definition.create({ + resource: resource as Resource, + services: this.#services, + definition, + }); + this.#resources.set(uid, current); + await current.setup?.(); + if (!current.isSeen) { + await current.markSeen(); + } + await current.queueReconcile(); + } else if (!current.isSeen) { + await current.markSeen(); + await current.queueReconcile(); + } + }; + + public register = (...resources: CustomResourceDefinition[]) => { + this.#definitions.push( + ...resources.map((definition) => ({ + definition, + queue: new Queue(), + })), + ); + }; + + public install = async (replace = false) => { + const k8sService = this.#services.get(K8sService); + for (const { definition: crd } of this.#definitions) { + this.#services.log.info('Installing CRD', { kind: crd.kind }); + try { + const manifest = createManifest(crd); + try { + await k8sService.extensionsApi.createCustomResourceDefinition({ + body: manifest, + }); + } catch (error) { + if (error instanceof ApiException && error.code === 409) { + if (replace) { + await k8sService.extensionsApi.patchCustomResourceDefinition({ + name: manifest.metadata.name, + body: [{ op: 'replace', path: '/spec', value: manifest.spec }], + }); + } + continue; + } + throw error; + } + } catch (error) { + if (error instanceof ApiException) { + throw new Error(`Failed to install ${crd.kind}: ${error.body}`); + } + throw error; + } + } + }; + + public watch = async () => { + const watcherService = this.#services.get(WatcherService); + for (const { definition, queue } of this.#definitions) { + const watcher = watcherService.create({ + path: `/apis/${definition.group}/${definition.version}/${definition.names.plural}`, + list: (k8s) => + k8s.customObjectsApi.listCustomObjectForAllNamespaces({ + version: definition.version, + group: definition.group, + plural: definition.names.plural, + }), + verbs: ['add', 'update', 'delete'], + }); + watcher.on('changed', (resource) => { + queue.add(() => this.#handleChanged(resource)); + }); + await watcher.start(); + } + }; +} + +const createCustomResourceDefinition = (options: CustomResourceDefinition) => options; + +export { CustomResourceService, createCustomResourceDefinition }; diff --git a/src/services/custom-resources/custom-resources.types.ts b/src/services/custom-resources/custom-resources.types.ts new file mode 100644 index 0000000..b17fbb3 --- /dev/null +++ b/src/services/custom-resources/custom-resources.types.ts @@ -0,0 +1,38 @@ +import { z, type ZodObject } from 'zod'; + +import type { CustomResource, CustomResourceOptions } from './custom-resources.custom-resource.ts'; + +type CustomResourceDefinition = { + group: string; + version: string; + kind: string; + names: { + plural: string; + singular: string; + }; + spec: TSpec; + create: (options: CustomResourceOptions) => CustomResource; +}; + +const customResourceStatusSchema = z.object({ + observedGeneration: z.number().optional(), + conditions: z + .array( + z.object({ + observedGeneration: z.number().optional(), + type: z.string(), + status: z.enum(['True', 'False', 'Unknown']), + lastTransitionTime: z.string().datetime(), + resource: z.boolean().optional(), + failed: z.boolean().optional(), + syncing: z.boolean().optional(), + reason: z.string().optional().optional(), + message: z.string().optional().optional(), + }), + ) + .optional(), +}); + +type CustomResourceStatus = z.infer; + +export { customResourceStatusSchema, type CustomResourceDefinition, type CustomResourceStatus }; diff --git a/src/services/custom-resources/custom-resources.utils.ts b/src/services/custom-resources/custom-resources.utils.ts new file mode 100644 index 0000000..d5101f2 --- /dev/null +++ b/src/services/custom-resources/custom-resources.utils.ts @@ -0,0 +1,51 @@ +import { z } from 'zod'; + +import { customResourceStatusSchema, type CustomResourceDefinition } from './custom-resources.types.ts'; + +const createManifest = (defintion: CustomResourceDefinition) => { + return { + apiVersion: 'apiextensions.k8s.io/v1', + kind: 'CustomResourceDefinition', + metadata: { + name: `${defintion.names.plural}.${defintion.group}`, + }, + spec: { + group: defintion.group, + names: { + kind: defintion.kind, + plural: defintion.names.plural, + singular: defintion.names.singular, + }, + scope: 'Namespaced', + versions: [ + { + name: defintion.version, + served: true, + storage: true, + schema: { + openAPIV3Schema: { + type: 'object', + properties: { + spec: { + ...z.toJSONSchema(defintion.spec.strict(), { io: 'input' }), + $schema: undefined, + additionalProperties: undefined, + } as ExpectedAny, + status: { + ...z.toJSONSchema(customResourceStatusSchema.strict(), { io: 'input' }), + $schema: undefined, + additionalProperties: undefined, + } as ExpectedAny, + }, + }, + }, + subresources: { + status: {}, + }, + }, + ], + }, + }; +}; + +export { createManifest }; diff --git a/src/services/istio/istio.ts b/src/services/istio/istio.ts new file mode 100644 index 0000000..3fb7381 --- /dev/null +++ b/src/services/istio/istio.ts @@ -0,0 +1,48 @@ +import type { V1Deployment } from '@kubernetes/client-node'; + +import type { Services } from '../../utils/service.ts'; +import { ResourceReference } from '../resources/resources.ref.ts'; +import type { Watcher } from '../watchers/watchers.watcher.ts'; +import { WatcherService } from '../watchers/watchers.ts'; +import type { Resource } from '../resources/resources.ts'; + +const ISTIO_APP_SELECTOR = 'istio=ingress'; + +class IstioService { + #gatewayResource: ResourceReference; + #gatewayWatcher: Watcher; + + constructor(services: Services) { + this.#gatewayResource = new ResourceReference(); + const watcherService = services.get(WatcherService); + this.#gatewayWatcher = watcherService.create({ + path: '/apis/apps/v1/deployments', + list: async (k8s) => { + return await k8s.apps.listDeploymentForAllNamespaces({ + labelSelector: ISTIO_APP_SELECTOR, + }); + }, + transform: (manifest) => ({ + apiVersion: 'apps/v1', + kind: 'Deployment', + ...manifest, + }), + verbs: ['add', 'update', 'delete'], + }); + this.#gatewayWatcher.on('changed', this.#handleChange); + } + + #handleChange = (resource: Resource) => { + this.#gatewayResource.current = resource; + }; + + public get gateway() { + return this.#gatewayResource; + } + + public start = async () => { + await this.#gatewayWatcher.start(); + }; +} + +export { IstioService }; diff --git a/src/services/k8s.ts b/src/services/k8s.ts deleted file mode 100644 index 1039124..0000000 --- a/src/services/k8s.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { - KubeConfig, - CoreV1Api, - ApiextensionsV1Api, - CustomObjectsApi, - EventsV1Api, - KubernetesObjectApi, - ApiException, - PatchStrategy, -} from '@kubernetes/client-node'; - -import type { Services } from '../utils/service.ts'; - -import { Manifest } from './k8s/k8s.manifest.ts'; - -class K8sService { - #services: Services; - #kc: KubeConfig; - #k8sApi: CoreV1Api; - #k8sExtensionsApi: ApiextensionsV1Api; - #k8sCustomObjectsApi: CustomObjectsApi; - #k8sEventsApi: EventsV1Api; - #k8sObjectsApi: KubernetesObjectApi; - - constructor(services: Services) { - this.#services = services; - this.#kc = new KubeConfig(); - this.#kc.loadFromDefault(); - this.#k8sApi = this.#kc.makeApiClient(CoreV1Api); - this.#k8sExtensionsApi = this.#kc.makeApiClient(ApiextensionsV1Api); - this.#k8sCustomObjectsApi = this.#kc.makeApiClient(CustomObjectsApi); - this.#k8sEventsApi = this.#kc.makeApiClient(EventsV1Api); - this.#k8sObjectsApi = this.#kc.makeApiClient(KubernetesObjectApi); - } - - public get config() { - return this.#kc; - } - - public get api() { - return this.#k8sApi; - } - - public get extensionsApi() { - return this.#k8sExtensionsApi; - } - - public get customObjectsApi() { - return this.#k8sCustomObjectsApi; - } - - public get eventsApi() { - return this.#k8sEventsApi; - } - - public get objectsApi() { - return this.#k8sObjectsApi; - } - - public exists = async (options: { apiVersion: string; kind: string; name: string; namespace?: string }) => { - try { - await this.objectsApi.read({ - apiVersion: options.apiVersion, - kind: options.kind, - metadata: { - name: options.name, - namespace: options.namespace, - }, - }); - return true; - } catch (err) { - if (!(err instanceof ApiException && err.code === 404)) { - throw err; - } - return false; - } - }; - - public get = async (options: { apiVersion: string; kind: string; name: string; namespace?: string }) => { - try { - const manifest = await this.objectsApi.read({ - apiVersion: options.apiVersion, - kind: options.kind, - metadata: { - name: options.name, - namespace: options.namespace, - }, - }); - return new Manifest({ - manifest, - services: this.#services, - }); - } catch (err) { - if (!(err instanceof ApiException && err.code === 404)) { - throw err; - } - return undefined; - } - }; - - public upsert = async (obj: ExpectedAny) => { - let current: unknown; - try { - current = await this.objectsApi.read({ - apiVersion: obj.apiVersion, - kind: obj.kind, - metadata: { - name: obj.metadata.name, - namespace: obj.metadata.namespace, - }, - }); - } catch (error) { - if (!(error instanceof ApiException && error.code === 404)) { - throw error; - } - } - - if (current) { - return new Manifest({ - manifest: await this.objectsApi.patch( - obj, - undefined, - undefined, - undefined, - undefined, - PatchStrategy.MergePatch, - ), - services: this.#services, - }); - } else { - return new Manifest({ - manifest: await this.objectsApi.create(obj), - services: this.#services, - }); - } - }; - - public getSecret = async >(name: string, namespace?: string) => { - const current = await this.get({ - apiVersion: 'v1', - kind: 'Secret', - name, - namespace, - }); - - if (!current) { - return undefined; - } - - const { data } = current.manifest || {}; - const decodedData = Object.fromEntries( - Object.entries(data).map(([key, value]) => [key, Buffer.from(String(value), 'base64').toString('utf-8')]), - ); - return decodedData as T; - }; -} - -export { K8sService }; diff --git a/src/services/k8s/k8s.manifest.ts b/src/services/k8s/k8s.manifest.ts deleted file mode 100644 index 782bb30..0000000 --- a/src/services/k8s/k8s.manifest.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { ApiException, PatchStrategy, V1MicroTime } from '@kubernetes/client-node'; - -import type { Services } from '../../utils/service.ts'; -import { K8sService } from '../k8s.ts'; -import { GROUP } from '../../utils/consts.ts'; -import { CustomResourceRegistry } from '../../custom-resource/custom-resource.registry.ts'; - -type ManifestOptions = { - manifest: ExpectedAny; - services: Services; -}; - -type ManifestMetadata = Record & { - name: string; - namespace?: string; - labels?: Record; - annotations?: Record; - uid: string; - resourceVersion: string; - creationTimestamp: string; - generation: number; -}; - -type EventOptions = { - reason: string; - message: string; - action: string; - type: 'Normal' | 'Warning' | 'Error'; -}; - -class Manifest { - #options: ManifestOptions; - - constructor(options: ManifestOptions) { - this.#options = { - ...options, - manifest: options.manifest, - }; - } - - public get objectRef() { - return { - apiVersion: this.apiVersion, - kind: this.kind, - name: this.metadata.name, - uid: this.metadata.uid, - namespace: this.metadata.namespace, - }; - } - - public get services(): Services { - return this.#options.services; - } - - public get manifest() { - return this.#options.manifest; - } - - protected set manifest(obj: ExpectedAny) { - this.#options.manifest = obj; - } - - public get dependencyId() { - return `${this.metadata.uid}-${this.metadata.generation}`; - } - - public get kind(): string { - return this.#options.manifest.kind; - } - - public get apiVersion(): string { - return this.#options.manifest.apiVersion; - } - - public get spec(): TSpec { - return this.#options.manifest.spec; - } - - public get metadata(): ManifestMetadata { - return this.#options.manifest.metadata; - } - - public isOwnerOf = (manifest: ExpectedAny) => { - const ownerRef = manifest?.metadata?.ownerReferences || []; - return ownerRef.some( - (ref: ExpectedAny) => - ref.apiVersion === this.apiVersion && - ref.kind === this.kind && - ref.name === this.metadata.name && - ref.uid === this.metadata.uid, - ); - }; - - public addEvent = async (event: EventOptions) => { - const { manifest, services } = this.#options; - const k8sService = services.get(K8sService); - - await k8sService.eventsApi.createNamespacedEvent({ - namespace: manifest.metadata.namespace, - body: { - kind: 'Event', - metadata: { - name: `${manifest.metadata.name}-${Date.now()}-${Buffer.from(crypto.getRandomValues(new Uint8Array(8))).toString('hex')}`, - namespace: manifest.metadata.namespace, - }, - eventTime: new V1MicroTime(), - note: event.message, - action: event.action, - reason: event.reason, - type: event.type, - reportingController: GROUP, - reportingInstance: manifest.metadata.name, - regarding: { - apiVersion: manifest.apiVersion, - resourceVersion: manifest.metadata.resourceVersion, - kind: manifest.kind, - name: manifest.metadata.name, - namespace: manifest.metadata.namespace, - uid: manifest.metadata.uid, - }, - }, - }); - }; - - public patch = async (manifest: ExpectedAny) => { - const { services } = this.#options; - const k8sService = services.get(K8sService); - this.manifest = await k8sService.objectsApi.patch( - { - apiVersion: this.apiVersion, - kind: this.kind, - metadata: { - name: this.metadata.name, - namespace: this.metadata.namespace, - ownerReferences: this.metadata.ownerReferences, - ...manifest.metadata, - labels: { - ...this.metadata.labels, - ...(manifest.metadata?.label || {}), - }, - annotations: { - ...this.metadata.annotations, - ...(manifest.metadata?.annotations || {}), - }, - }, - spec: manifest.spec || this.spec, - }, - undefined, - undefined, - undefined, - undefined, - PatchStrategy.MergePatch, - ); - }; - - public update = async () => { - const { manifest, services } = this.#options; - const k8sService = services.get(K8sService); - const registry = services.get(CustomResourceRegistry); - const crd = registry.getByKind(manifest.kind); - if (!crd) { - throw new Error(`Custom resource ${manifest.kind} not found`); - } - try { - const resource = await k8sService.objectsApi.read({ - apiVersion: this.apiVersion, - kind: this.kind, - metadata: { - name: this.metadata.name, - namespace: this.metadata.namespace, - }, - }); - this.#options.manifest = resource; - } catch (error) { - if (error instanceof ApiException && error.code === 404) { - return undefined; - } - throw error; - } - }; -} - -export { Manifest }; diff --git a/src/services/k8s/k8s.ts b/src/services/k8s/k8s.ts new file mode 100644 index 0000000..dbe3b80 --- /dev/null +++ b/src/services/k8s/k8s.ts @@ -0,0 +1,61 @@ +import { + KubeConfig, + CoreV1Api, + ApiextensionsV1Api, + CustomObjectsApi, + EventsV1Api, + KubernetesObjectApi, + ApiException, + AppsV1Api, +} from '@kubernetes/client-node'; + +class K8sService { + #kc: KubeConfig; + #k8sApi: CoreV1Api; + #k8sExtensionsApi: ApiextensionsV1Api; + #k8sCustomObjectsApi: CustomObjectsApi; + #k8sEventsApi: EventsV1Api; + #k8sObjectsApi: KubernetesObjectApi; + #k8sAppsApi: AppsV1Api; + + constructor() { + this.#kc = new KubeConfig(); + this.#kc.loadFromDefault(); + this.#k8sApi = this.#kc.makeApiClient(CoreV1Api); + this.#k8sExtensionsApi = this.#kc.makeApiClient(ApiextensionsV1Api); + this.#k8sCustomObjectsApi = this.#kc.makeApiClient(CustomObjectsApi); + this.#k8sEventsApi = this.#kc.makeApiClient(EventsV1Api); + this.#k8sObjectsApi = this.#kc.makeApiClient(KubernetesObjectApi); + this.#k8sAppsApi = this.#kc.makeApiClient(AppsV1Api); + } + + public get config() { + return this.#kc; + } + + public get api() { + return this.#k8sApi; + } + + public get extensionsApi() { + return this.#k8sExtensionsApi; + } + + public get customObjectsApi() { + return this.#k8sCustomObjectsApi; + } + + public get eventsApi() { + return this.#k8sEventsApi; + } + + public get objectsApi() { + return this.#k8sObjectsApi; + } + + public get apps() { + return this.#k8sAppsApi; + } +} + +export { K8sService }; diff --git a/src/services/postgres/postgres.instance.ts b/src/services/postgres/postgres.instance.ts new file mode 100644 index 0000000..d40d000 --- /dev/null +++ b/src/services/postgres/postgres.instance.ts @@ -0,0 +1,60 @@ +import knex, { type Knex } from 'knex'; + +import { Services } from '../../utils/service.ts'; + +import type { PostgresDatabase, PostgresRole } from './postgres.types.ts'; + +type PostgresInstanceOptions = { + services: Services; + host: string; + port?: number; + user: string; + password: string; +}; + +class PostgresInstance { + #db: Knex; + + constructor(options: PostgresInstanceOptions) { + this.#db = knex({ + client: 'pg', + connection: { + host: process.env.FORCE_PG_HOST ?? options.host, + user: process.env.FORCE_PG_USER ?? options.user, + password: process.env.FORCE_PG_PASSWORD ?? options.password, + port: process.env.FORCE_PG_PORT ? parseInt(process.env.FORCE_PG_PORT) : options.port, + }, + }); + } + + public ping = async () => { + try { + await this.#db.raw('SELECT 1'); + return true; + } catch { + return false; + } + }; + + public upsertRole = async (role: PostgresRole) => { + const existingRole = await this.#db.raw('SELECT 1 FROM pg_roles WHERE rolname = ?', [role.name]); + + if (existingRole.rows.length === 0) { + await this.#db.raw(`CREATE ROLE ${role.name} WITH LOGIN PASSWORD '${role.password}'`); + } else { + await this.#db.raw(`ALTER ROLE ${role.name} WITH PASSWORD '${role.password}'`); + } + }; + + public upsertDatabase = async (database: PostgresDatabase) => { + const existingDatabase = await this.#db.raw('SELECT * FROM pg_database WHERE datname = ?', [database.name]); + + if (existingDatabase.rows.length === 0) { + await this.#db.raw(`CREATE DATABASE ${database.name} OWNER ${database.owner}`); + } else { + await this.#db.raw(`ALTER DATABASE ${database.name} OWNER TO ${database.owner}`); + } + }; +} + +export { PostgresInstance, type PostgresInstanceOptions }; diff --git a/src/services/postgres/postgres.service.ts b/src/services/postgres/postgres.service.ts index e915046..5a4b795 100644 --- a/src/services/postgres/postgres.service.ts +++ b/src/services/postgres/postgres.service.ts @@ -1,52 +1,19 @@ -import knex, { type Knex } from 'knex'; - import { Services } from '../../utils/service.ts'; -import { ConfigService } from '../config/config.ts'; -import type { PostgresDatabase, PostgresRole } from './postgres.types.ts'; +import { PostgresInstance, type PostgresInstanceOptions } from './postgres.instance.ts'; class PostgresService { - #db: Knex; #services: Services; constructor(services: Services) { this.#services = services; - const configService = services.get(ConfigService); - const config = configService.postgres; - this.#db = knex({ - client: 'pg', - connection: { - host: config.host, - user: config.user, - password: config.password, - port: config.port, - }, + } + + public get = (options: Omit) => { + return new PostgresInstance({ + ...options, + services: this.#services, }); - } - - public get config() { - const configService = this.#services.get(ConfigService); - return configService.postgres; - } - - public upsertRole = async (role: PostgresRole) => { - const existingRole = await this.#db.raw('SELECT 1 FROM pg_roles WHERE rolname = ?', [role.name]); - - if (existingRole.rows.length === 0) { - await this.#db.raw(`CREATE ROLE ${role.name} WITH LOGIN PASSWORD '${role.password}'`); - } else { - await this.#db.raw(`ALTER ROLE ${role.name} WITH PASSWORD '${role.password}'`); - } - }; - - public upsertDatabase = async (database: PostgresDatabase) => { - const existingDatabase = await this.#db.raw('SELECT * FROM pg_database WHERE datname = ?', [database.name]); - - if (existingDatabase.rows.length === 0) { - await this.#db.raw(`CREATE DATABASE ${database.name} OWNER ${database.owner}`); - } else { - await this.#db.raw(`ALTER DATABASE ${database.name} OWNER TO ${database.owner}`); - } }; } diff --git a/src/services/queue/queue.ts b/src/services/queue/queue.ts new file mode 100644 index 0000000..9c074e4 --- /dev/null +++ b/src/services/queue/queue.ts @@ -0,0 +1,40 @@ +import PQueue from 'p-queue'; +import pRetry from 'p-retry'; + +type QueueCreateOptions = ConstructorParameters[0]; + +type QueueAddOptions = Parameters[1] & { + retries?: number; +}; + +type QueueOptions = QueueCreateOptions & { + retries?: number; +}; + +class Queue { + #options: QueueOptions; + #queue: PQueue; + + constructor(options: QueueOptions = {}) { + this.#options = options; + this.#queue = new PQueue(options); + } + + public get concurrency() { + return this.#queue.concurrency; + } + + public set concurrency(value: number) { + this.#queue.concurrency = value; + } + + public add = async (task: () => Promise, options: QueueAddOptions = {}) => { + const withRetry = () => + pRetry(task, { + retries: options.retries || this.#options.retries || 1, + }); + return this.#queue.add(withRetry); + }; +} + +export { Queue }; diff --git a/src/services/resources/resources.ref.ts b/src/services/resources/resources.ref.ts new file mode 100644 index 0000000..8a476ab --- /dev/null +++ b/src/services/resources/resources.ref.ts @@ -0,0 +1,81 @@ +import type { KubernetesObject } from '@kubernetes/client-node'; +import { EventEmitter } from 'eventemitter3'; + +import type { Resource } from './resources.ts'; +import type { ResourceEvents } from './resources.resource.ts'; + +type ResourceReferenceEvents = ResourceEvents & { + replaced: (options: { previous: Resource | undefined; next: Resource | undefined }) => void; +}; + +class ResourceReference extends EventEmitter< + ResourceReferenceEvents +> { + #current?: Resource; + #updatedEvent: ResourceEvents['updated']; + #changedEvent: ResourceEvents['changed']; + #changedMetadateEvent: ResourceEvents['changedMetadate']; + #changedSpecEvent: ResourceEvents['changedSpec']; + #changedStatusEvent: ResourceEvents['changedStatus']; + #deletedEvent: ResourceEvents['deleted']; + + constructor(current?: Resource) { + super(); + this.#updatedEvent = this.emit.bind(this, 'updated'); + this.#changedEvent = this.emit.bind(this, 'changed'); + this.#changedMetadateEvent = this.emit.bind(this, 'changedMetadate'); + this.#changedSpecEvent = this.emit.bind(this, 'changedSpec'); + this.#changedStatusEvent = this.emit.bind(this, 'changedStatus'); + this.#deletedEvent = this.emit.bind(this, 'deleted'); + this.current = current; + } + + public get current() { + return this.#current; + } + + public set current(next: Resource | undefined) { + const previous = this.#current; + if (next === previous) { + return; + } + if (this.#current) { + this.#current.off('updated', this.#updatedEvent); + this.#current.off('changed', this.#changedEvent); + this.#current.off('changedMetadate', this.#changedMetadateEvent); + this.#current.off('changedSpec', this.#changedSpecEvent); + this.#current.off('changedStatus', this.#changedStatusEvent); + this.#current.off('deleted', this.#deletedEvent); + } + + if (next) { + next.on('updated', this.#updatedEvent); + next.on('changed', this.#changedEvent); + next.on('changedMetadate', this.#changedMetadateEvent); + next.on('changedSpec', this.#changedSpecEvent); + next.on('changedStatus', this.#changedStatusEvent); + next.on('deleted', this.#deletedEvent); + } + this.#current = next; + this.emit('replaced', { + previous, + next, + }); + this.emit('changedStatus', { + previous: previous && 'status' in previous ? (previous.status as ExpectedAny) : undefined, + next: next && 'status' in next ? (next.status as ExpectedAny) : undefined, + }); + this.emit('changedMetadate', { + previous: previous && 'metadata' in previous ? (previous.metadata as ExpectedAny) : undefined, + next: next && 'metadata' in next ? (next.metadata as ExpectedAny) : undefined, + }); + this.emit('changedSpec', { + previous: previous && 'spec' in previous ? (previous.spec as ExpectedAny) : undefined, + next: next && 'spec' in next ? (next.spec as ExpectedAny) : undefined, + }); + this.emit('changed'); + this.emit('updated'); + } +} + +export { ResourceReference }; diff --git a/src/services/resources/resources.resource.ts b/src/services/resources/resources.resource.ts new file mode 100644 index 0000000..414159e --- /dev/null +++ b/src/services/resources/resources.resource.ts @@ -0,0 +1,289 @@ +import { ApiException, PatchStrategy, V1MicroTime, type KubernetesObject } from '@kubernetes/client-node'; +import { EventEmitter } from 'eventemitter3'; +import equal from 'deep-equal'; + +import { Services } from '../../utils/service.ts'; +import { K8sService } from '../k8s/k8s.ts'; +import { Queue } from '../queue/queue.ts'; +import { GROUP } from '../../utils/consts.ts'; + +import { ResourceService } from './resources.ts'; + +type ResourceOptions = { + services: Services; + manifest?: T; + data: { + apiVersion: string; + kind: string; + name: string; + namespace?: string; + }; +}; + +type UnknownResource = KubernetesObject & { + spec: ExpectedAny; + data: ExpectedAny; +}; + +type EventOptions = { + reason: string; + message: string; + action: string; + type: 'Normal' | 'Warning' | 'Error'; +}; + +type ResourceEvents = { + updated: () => void; + deleted: () => void; + changed: () => void; + changedStatus: (options: { + previous: T extends { status: infer K } ? K | undefined : never; + next: T extends { status: infer K } ? K | undefined : never; + }) => void; + changedMetadate: (options: { previous: T['metadata'] | undefined; next: T['metadata'] | undefined }) => void; + changedSpec: (options: { + previous: T extends { spec: infer K } ? K | undefined : never; + next: T extends { spec: infer K } ? K | undefined : never; + }) => void; +}; + +class Resource extends EventEmitter> { + #options: ResourceOptions; + #queue: Queue; + + constructor(options: ResourceOptions) { + super(); + this.#options = options; + this.#queue = new Queue({ concurrency: 1 }); + } + + public get specifier() { + return this.#options.data; + } + + public get manifest() { + return this.#options?.manifest; + } + + public set manifest(obj: T | undefined) { + if (equal(obj, this.manifest)) { + return; + } + this.#options.manifest = obj; + const nextManifest = obj || {}; + const currentManifest = this.manifest || {}; + const nextStatus = 'status' in nextManifest ? nextManifest.status : undefined; + const currentStatus = 'status' in currentManifest ? currentManifest.status : undefined; + if (!equal(nextStatus, currentStatus)) { + this.emit('changedStatus', { + previous: currentStatus as ExpectedAny, + next: nextStatus as ExpectedAny, + }); + } + + const nextSpec = 'spec' in nextManifest ? nextManifest.spec : undefined; + const currentSpec = 'spec' in currentManifest ? currentManifest.spec : undefined; + if (!equal(nextSpec, currentSpec)) { + this.emit('changedSpec', { + next: nextSpec as ExpectedAny, + previous: currentSpec as ExpectedAny, + }); + } + + const nextMetadata = 'metadata' in nextManifest ? nextManifest.metadata : undefined; + const currentMetadata = 'metadata' in currentManifest ? currentManifest.metadata : undefined; + if (!equal(nextMetadata, currentMetadata)) { + this.emit('changedMetadate', { + next: nextMetadata as ExpectedAny, + previous: currentMetadata as ExpectedAny, + }); + } + + this.emit('updated'); + this.emit('changed'); + } + + public get ref() { + if (!this.metadata?.uid) { + throw new Error('No uid for resource'); + } + return { + apiVersion: this.apiVersion, + kind: this.kind, + name: this.name, + uid: this.metadata.uid, + }; + } + + public get exists() { + return !!this.manifest; + } + + public get apiVersion() { + return this.#options.data.apiVersion; + } + + public get group() { + const [group] = this.apiVersion?.split('/') || []; + return group; + } + + public get version() { + const [, version] = this.apiVersion?.split('/') || []; + return version; + } + + public get kind() { + return this.#options.data.kind; + } + + public get metadata() { + return this.manifest?.metadata; + } + + public get name() { + return this.#options.data.name; + } + + public get namespace() { + return this.#options.data.namespace; + } + + public get spec(): T extends { spec?: infer K } ? K | undefined : never { + if (this.manifest && 'spec' in this.manifest) { + return this.manifest.spec as ExpectedAny; + } + return undefined as ExpectedAny; + } + + public get data(): T extends { data?: infer K } ? K | undefined : never { + if (this.manifest && 'data' in this.manifest) { + return this.manifest.data as ExpectedAny; + } + return undefined as ExpectedAny; + } + + public get owners() { + const { services } = this.#options; + const references = this.metadata?.ownerReferences || []; + const resourceService = services.get(ResourceService); + return references.map((ref) => + resourceService.get({ + apiVersion: ref.apiVersion, + kind: ref.kind, + name: ref.name, + namespace: this.namespace, + }), + ); + } + + public patch = (patch: T) => + this.#queue.add(async () => { + const { services } = this.#options; + const k8s = services.get(K8sService); + const body = { + ...patch, + apiVersion: this.apiVersion, + kind: this.kind, + metadata: { + name: this.name, + namespace: this.namespace, + ...patch.metadata, + }, + }; + try { + this.manifest = await k8s.objectsApi.patch( + body, + undefined, + undefined, + undefined, + undefined, + PatchStrategy.MergePatch, + ); + } catch (err) { + if (err instanceof ApiException && err.code === 404) { + this.manifest = await k8s.objectsApi.create(body); + return; + } + throw err; + } + }); + + public delete = () => + this.#queue.add(async () => { + try { + const { services } = this.#options; + const k8s = services.get(K8sService); + await k8s.objectsApi.delete({ + apiVersion: this.apiVersion, + kind: this.kind, + metadata: { + name: this.name, + namespace: this.namespace, + }, + }); + this.manifest = undefined; + } catch (err) { + if (err instanceof ApiException && err.code === 404) { + return; + } + throw err; + } + }); + + public load = () => + this.#queue.add(async () => { + const { services } = this.#options; + const k8s = services.get(K8sService); + try { + const manifest = await k8s.objectsApi.read({ + apiVersion: this.apiVersion, + kind: this.kind, + metadata: { + name: this.name, + namespace: this.namespace, + }, + }); + this.manifest = manifest as T; + } catch (err) { + if (err instanceof ApiException && err.code === 404) { + this.manifest = undefined; + } else { + throw err; + } + } + }); + + public addEvent = async (event: EventOptions) => { + const { services } = this.#options; + const k8sService = services.get(K8sService); + + await k8sService.eventsApi.createNamespacedEvent({ + namespace: this.namespace || 'default', + body: { + kind: 'Event', + metadata: { + name: `${this.name}-${Date.now()}-${Buffer.from(crypto.getRandomValues(new Uint8Array(8))).toString('hex')}`, + namespace: this.namespace, + }, + eventTime: new V1MicroTime(), + note: event.message, + action: event.action, + reason: event.reason, + type: event.type, + reportingController: GROUP, + reportingInstance: this.name, + regarding: { + apiVersion: this.apiVersion, + resourceVersion: this.metadata?.resourceVersion, + kind: this.kind, + name: this.name, + namespace: this.namespace, + uid: this.metadata?.uid, + }, + }, + }); + }; +} + +export { Resource, type UnknownResource, type ResourceEvents }; diff --git a/src/services/resources/resources.ts b/src/services/resources/resources.ts new file mode 100644 index 0000000..4f2703d --- /dev/null +++ b/src/services/resources/resources.ts @@ -0,0 +1,44 @@ +import type { KubernetesObject } from '@kubernetes/client-node'; + +import type { Services } from '../../utils/service.ts'; + +import { Resource } from './resources.resource.ts'; + +type ResourceGetOptions = { + apiVersion: string; + kind: string; + name: string; + namespace?: string; +}; + +class ResourceService { + #cache: Resource[] = []; + #services: Services; + + constructor(services: Services) { + this.#services = services; + } + + public get = (options: ResourceGetOptions) => { + const { apiVersion, kind, name, namespace } = options; + let resource = this.#cache.find( + (resource) => + resource.specifier.kind === kind && + resource.specifier.apiVersion === apiVersion && + resource.specifier.name === name && + resource.specifier.namespace === namespace, + ); + if (resource) { + return resource as Resource; + } + resource = new Resource({ + data: options, + services: this.#services, + }); + this.#cache.push(resource); + return resource as Resource; + }; +} + +export { ResourceReference } from './resources.ref.ts'; +export { ResourceService, Resource }; diff --git a/src/services/secrets/secrets.secret.ts b/src/services/secrets/secrets.secret.ts new file mode 100644 index 0000000..93db217 --- /dev/null +++ b/src/services/secrets/secrets.secret.ts @@ -0,0 +1,92 @@ +import type { V1Secret } from '@kubernetes/client-node'; +import type { z, ZodObject } from 'zod'; +import deepEqual from 'deep-equal'; + +import { ResourceService, type Resource } from '../resources/resources.ts'; +import type { Services } from '../../utils/service.ts'; + +type EnsuredSecretOptions = { + services: Services; + name: string; + namespace: string; + schema: T; + owner?: ExpectedAny[]; + generator: (previous?: unknown) => z.infer; + validate?: (value: T) => boolean; +}; + +class EnsuredSecret { + #options: EnsuredSecretOptions; + #resource: Resource; + + constructor(options: EnsuredSecretOptions) { + this.#options = options; + const { services, name, namespace } = options; + const resourceService = services.get(ResourceService); + this.#resource = resourceService.get({ + apiVersion: 'v1', + kind: 'Secret', + name, + namespace, + }); + this.#resource.on('changed', this.#handleChanged); + this.#handleChanged(); + } + + public get resouce() { + return this.#resource; + } + + public get value(): z.infer | undefined { + if (!this.#resource.data) { + return undefined; + } + return Object.fromEntries( + Object.entries(this.#resource.data).map(([name, value]) => [name, Buffer.from(value, 'base64').toString('utf8')]), + ) as ExpectedAny; + } + + public patch = async (value: ExpectedAny) => { + const patched = { + ...this.value, + ...value, + }; + if (deepEqual(patched, this.value)) { + return; + } + await this.resouce.patch({ + data: patched, + }); + }; + + public get isValid() { + const { schema, validate } = this.#options; + const { success } = schema.safeParse(this.value); + if (!success) { + return false; + } + if (validate) { + return validate(this.value as unknown as T); + } + return true; + } + + #handleChanged = () => { + const { generator, owner } = this.#options; + if (this.isValid && deepEqual(this.#resource.metadata?.ownerReferences, owner)) { + return; + } + const data = generator(); + const encodedValues = Object.fromEntries( + Object.entries(data).map(([name, value]) => [name, Buffer.from(String(value)).toString('base64')]), + ); + this.#resource.patch({ + metadata: { + ownerReferences: owner, + }, + data: encodedValues, + }); + }; +} + +export { EnsuredSecret, type EnsuredSecretOptions }; diff --git a/src/services/secrets/secrets.service.ts b/src/services/secrets/secrets.service.ts deleted file mode 100644 index 8e42a49..0000000 --- a/src/services/secrets/secrets.service.ts +++ /dev/null @@ -1 +0,0 @@ -class SecretsService {} diff --git a/src/services/secrets/secrets.ts b/src/services/secrets/secrets.ts new file mode 100644 index 0000000..8b6a8e0 --- /dev/null +++ b/src/services/secrets/secrets.ts @@ -0,0 +1,22 @@ +import type { ZodObject } from 'zod'; + +import type { Services } from '../../utils/service.ts'; + +import { EnsuredSecret, type EnsuredSecretOptions } from './secrets.secret.ts'; + +class SecretService { + #services: Services; + + constructor(services: Services) { + this.#services = services; + } + + public ensure = (options: Omit, 'services'>) => { + return new EnsuredSecret({ + ...options, + services: this.#services, + }); + }; +} + +export { SecretService }; diff --git a/src/services/watchers/watchers.ts b/src/services/watchers/watchers.ts new file mode 100644 index 0000000..6964698 --- /dev/null +++ b/src/services/watchers/watchers.ts @@ -0,0 +1,37 @@ +import type { Services } from '../../utils/service.ts'; + +import { Watcher, type WatcherOptions } from './watchers.watcher.ts'; + +class WatcherService { + #services: Services; + + constructor(services: Services) { + this.#services = services; + } + + public create = (options: Omit) => { + const instance = new Watcher({ + ...options, + services: this.#services, + }); + return instance; + }; + + public watchCustomGroup = async (group: string, version: string, plurals: string[]) => { + for (const plural of plurals) { + await this.create({ + path: `/apis/${group}/${version}/${plural}`, + list: async (k8s) => { + return await k8s.customObjectsApi.listCustomObjectForAllNamespaces({ + group, + version, + plural, + }); + }, + verbs: ['add', 'update', 'delete'], + }).start(); + } + }; +} + +export { WatcherService, Watcher }; diff --git a/src/services/watchers/watchers.watcher.ts b/src/services/watchers/watchers.watcher.ts new file mode 100644 index 0000000..f3b8334 --- /dev/null +++ b/src/services/watchers/watchers.watcher.ts @@ -0,0 +1,80 @@ +import { makeInformer, type Informer, type KubernetesListObject, type KubernetesObject } from '@kubernetes/client-node'; +import { EventEmitter } from 'eventemitter3'; + +import { K8sService } from '../k8s/k8s.ts'; +import type { Services } from '../../utils/service.ts'; +import { ResourceService, type Resource } from '../resources/resources.ts'; + +type ResourceChangedAction = 'add' | 'update' | 'delete'; + +type WatcherEvents = { + changed: (resource: Resource) => void; +}; + +type WatcherOptions = { + path: string; + list: (k8s: K8sService) => Promise>; + selector?: string; + services: Services; + verbs: ResourceChangedAction[]; + transform?: (input: T) => T; +}; + +class Watcher extends EventEmitter> { + #options: WatcherOptions; + #informer: Informer; + + constructor(options: WatcherOptions) { + super(); + this.#options = options; + this.#informer = this.#setup(); + } + + #setup = () => { + const { services, path, list, selector } = this.#options; + const k8s = services.get(K8sService); + const informer = makeInformer(k8s.config, path, list.bind(this, k8s), selector); + informer.on('add', this.#handleResource.bind(this, 'add')); + informer.on('update', this.#handleResource.bind(this, 'update')); + informer.on('delete', this.#handleResource.bind(this, 'delete')); + informer.on('error', (err) => { + console.log('Watcher failed, will retry in 5 seconds', path, err); + setTimeout(this.start, 5000); + }); + return informer; + }; + + #handleResource = (action: ResourceChangedAction, originalManifest: T) => { + const { services, transform } = this.#options; + const manifest = transform ? transform(originalManifest) : originalManifest; + const resourceService = services.get(ResourceService); + const { apiVersion, kind, metadata = {} } = manifest; + const { name, namespace } = metadata; + if (!name || !apiVersion || !kind) { + return; + } + const resource = resourceService.get({ + apiVersion, + kind, + name, + namespace, + }); + + if (action === 'delete') { + resource.manifest = undefined; + } else { + resource.manifest = manifest; + } + this.emit('changed', resource); + }; + + public stop = async () => { + await this.#informer.stop(); + }; + + public start = async () => { + await this.#informer.start(); + }; +} + +export { Watcher, type WatcherOptions, type ResourceChangedAction }; diff --git a/src/types/kubernetes.ts b/src/types/kubernetes.ts deleted file mode 100644 index 4e4841d..0000000 --- a/src/types/kubernetes.ts +++ /dev/null @@ -1,8 +0,0 @@ -type ResourceRef = { - apiVersion: string; - kind: string; - name: string; - uid: string; -}; - -export type { ResourceRef }; diff --git a/src/utils/consts.ts b/src/utils/consts.ts index 2f84f51..fe3b21d 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -1,5 +1,5 @@ const GROUP = 'homelab.mortenolsen.pro'; -const NAMESPACE = 'homelab'; +const API_VERSION = `${GROUP}/v1`; const FIELDS = { domain: { @@ -7,4 +7,10 @@ const FIELDS = { }, }; -export { GROUP, NAMESPACE, FIELDS }; +const CONTROLLED_LABEL = { + [`${GROUP}/controlled`]: 'true', +}; + +const CONTROLLED_LABEL_SELECTOR = `${GROUP}/controlled=true`; + +export { GROUP, FIELDS, CONTROLLED_LABEL, CONTROLLED_LABEL_SELECTOR, API_VERSION }; diff --git a/src/utils/naming.ts b/src/utils/naming.ts index 61750ce..1b60d8e 100644 --- a/src/utils/naming.ts +++ b/src/utils/naming.ts @@ -1,4 +1,4 @@ -const getWithNamespace = (input: string) => { +const getWithNamespace = (input: string, defaultNamespace?: string) => { const result = input.split('/'); const first = result.pop(); if (!first) { @@ -6,7 +6,7 @@ const getWithNamespace = (input: string) => { } return { name: first, - namespace: result.join('/'), + namespace: result.length > 0 ? result.join('/') : defaultNamespace, }; }; diff --git a/src/utils/queues.ts b/src/utils/queues.ts new file mode 100644 index 0000000..39b8509 --- /dev/null +++ b/src/utils/queues.ts @@ -0,0 +1,54 @@ +type CoalescingQueuedOptions = { + action: () => Promise; +}; + +const createResolvable = () => { + let resolve: (item: T) => void = () => {}; + let reject: (item: T) => void = () => {}; + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + return { resolve, reject, promise }; +}; + +type Resolveable = ReturnType>; + +class CoalescingQueued { + #options: CoalescingQueuedOptions; + #next?: Resolveable; + #current?: Promise; + + constructor(options: CoalescingQueuedOptions) { + this.#options = options; + } + + #start = () => { + if (this.#current) { + return; + } + const next = this.#next; + if (next) { + const action = this.#options.action(); + this.#current = action; + this.#next = undefined; + action.then(next.resolve); + action.catch(next.reject); + action.finally(() => { + this.#current = undefined; + this.#start(); + }); + } + }; + + public run = async () => { + if (!this.#next) { + this.#next = createResolvable(); + } + const next = this.#next; + this.#start(); + return next.promise; + }; +} + +export { CoalescingQueued }; diff --git a/src/utils/secrets.ts b/src/utils/secrets.ts new file mode 100644 index 0000000..ed4955e --- /dev/null +++ b/src/utils/secrets.ts @@ -0,0 +1,12 @@ +const decodeSecret = >( + data: Record | undefined, +): T | undefined => { + if (!data) { + return undefined; + } + return Object.fromEntries( + Object.entries(data).map(([name, value]) => [name, Buffer.from(value, 'base64').toString('utf8')]), + ) as T; +}; + +export { decodeSecret }; diff --git a/src/utils/types.d.ts b/src/utils/types.d.ts new file mode 100644 index 0000000..c25abd9 --- /dev/null +++ b/src/utils/types.d.ts @@ -0,0 +1,6 @@ +declare global { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + type ExpectedAny = any; +} + +export {}; diff --git a/src/utils/types.ts b/src/utils/types.ts deleted file mode 100644 index 9155f10..0000000 --- a/src/utils/types.ts +++ /dev/null @@ -1,12 +0,0 @@ -declare global { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - type ExpectedAny = any; -} - -// eslint-disable-next-line @typescript-eslint/no-empty-function -const noop = () => {}; - -// eslint-disable-next-line @typescript-eslint/no-empty-function -const noopAsync = async () => {}; - -export { noop, noopAsync }; diff --git a/test-manifests/authentik-client.yaml b/test-manifests/authentik-client.yaml deleted file mode 100644 index 600a58f..0000000 --- a/test-manifests/authentik-client.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: AuthentikClient -metadata: - name: foobas -spec: - redirectUris: - - url: http://localhost:3000/api/auth/callback - matchingMode: strict \ No newline at end of file diff --git a/test-manifests/authentik-server.yaml b/test-manifests/authentik-server.yaml new file mode 100644 index 0000000..28e809f --- /dev/null +++ b/test-manifests/authentik-server.yaml @@ -0,0 +1,9 @@ +apiVersion: 'homelab.mortenolsen.pro/v1' +kind: 'AuthentikServer' +metadata: + name: homelab + namespace: homelab +spec: + domain: homelab + database: test2 + redis: redis diff --git a/test-manifests/domain-service.yaml b/test-manifests/domain-service.yaml new file mode 100644 index 0000000..e802504 --- /dev/null +++ b/test-manifests/domain-service.yaml @@ -0,0 +1,12 @@ +apiVersion: homelab.mortenolsen.pro/v1 +kind: DomainService +metadata: + name: homelab + namespace: homelab +spec: + domain: homelab/homelab + subdomain: test + destination: + host: foo.svc.cluster.local + port: + number: 80 diff --git a/test-manifests/domain.yaml b/test-manifests/domain.yaml new file mode 100644 index 0000000..142ea72 --- /dev/null +++ b/test-manifests/domain.yaml @@ -0,0 +1,8 @@ +apiVersion: homelab.mortenolsen.pro/v1 +kind: Domain +metadata: + name: homelab + namespace: homelab +spec: + hostname: local.olsen.cloud + issuer: letsencrypt-prod diff --git a/test-manifests/postgres-connection.yaml b/test-manifests/postgres-connection.yaml new file mode 100644 index 0000000..c6bd4ea --- /dev/null +++ b/test-manifests/postgres-connection.yaml @@ -0,0 +1,7 @@ +apiVersion: 'homelab.mortenolsen.pro/v1' +kind: 'PostgresConnection' +metadata: + name: 'db' + namespace: 'homelab' +spec: + secret: postgres/postgres-secret diff --git a/test-manifests/postgres-database.yaml b/test-manifests/postgres-database.yaml index 90ecd34..8a96319 100644 --- a/test-manifests/postgres-database.yaml +++ b/test-manifests/postgres-database.yaml @@ -2,4 +2,6 @@ apiVersion: 'homelab.mortenolsen.pro/v1' kind: 'PostgresDatabase' metadata: name: 'test2' - namespace: 'playground' \ No newline at end of file + namespace: 'homelab' +spec: + connection: homelab/db diff --git a/test-manifests/redis-connection.yaml b/test-manifests/redis-connection.yaml new file mode 100644 index 0000000..ea747ee --- /dev/null +++ b/test-manifests/redis-connection.yaml @@ -0,0 +1,7 @@ +apiVersion: 'homelab.mortenolsen.pro/v1' +kind: 'RedisConnection' +metadata: + name: 'redis' + namespace: 'homelab' +spec: + secret: redis/connection diff --git a/test-manifests/secrets.request.yaml b/test-manifests/secrets.request.yaml deleted file mode 100644 index 65488a7..0000000 --- a/test-manifests/secrets.request.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: SecretRequest -metadata: - name: test - namespace: playground -spec: - secretName: testing - data: - - key: foo - value: bar - - key: baz - value: qux \ No newline at end of file