8 func GetCustomResourceDefinition() []*unstructured.Unstructured {
\r
10 customResourceDefinition1 := &unstructured.Unstructured{
\r
11 Object: map[string]interface{}{
\r
12 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
13 "kind": "CustomResourceDefinition",
\r
14 "metadata": map[string]interface{}{
\r
15 "labels": map[string]interface{}{
\r
16 "app.kubernetes.io/instance": "release-name",
\r
17 "app.kubernetes.io/managed-by": "Helm",
\r
18 "app.kubernetes.io/name": "kong",
\r
19 "app.kubernetes.io/version": "1.4",
\r
20 "helm.sh/chart": "kong-0.36.6",
\r
22 "name": "kongconsumers.configuration.konghq.com",
\r
24 "spec": map[string]interface{}{
\r
25 "group": "configuration.konghq.com",
\r
26 "names": map[string]interface{}{
\r
27 "kind": "KongConsumer",
\r
28 "plural": "kongconsumers",
\r
29 "shortNames": []interface{}{
\r
33 "scope": "Namespaced",
\r
34 "validation": map[string]interface{}{
\r
35 "openAPIV3Schema": map[string]interface{}{
\r
36 "properties": map[string]interface{}{
\r
37 "credentials": map[string]interface{}{
\r
38 "items": map[string]interface{}{
\r
43 "custom_id": map[string]interface{}{
\r
46 "username": map[string]interface{}{
\r
53 "additionalPrinterColumns": []interface{}{
\r
54 map[string]interface{}{
\r
55 "JSONPath": ".username",
\r
56 "description": "Username of a Kong Consumer",
\r
60 map[string]interface{}{
\r
62 "JSONPath": ".metadata.creationTimestamp",
\r
63 "description": "Age",
\r
71 customResourceDefinition2 := &unstructured.Unstructured{
\r
72 Object: map[string]interface{}{
\r
73 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
74 "kind": "CustomResourceDefinition",
\r
75 "metadata": map[string]interface{}{
\r
76 "labels": map[string]interface{}{
\r
77 "app.kubernetes.io/instance": "release-name",
\r
78 "app.kubernetes.io/managed-by": "Helm",
\r
79 "app.kubernetes.io/name": "kong",
\r
80 "app.kubernetes.io/version": "1.4",
\r
81 "helm.sh/chart": "kong-0.36.6",
\r
83 "name": "kongcredentials.configuration.konghq.com",
\r
85 "spec": map[string]interface{}{
\r
87 "additionalPrinterColumns": []interface{}{
\r
88 map[string]interface{}{
\r
89 "JSONPath": ".type",
\r
90 "description": "Type of credential",
\r
91 "name": "Credential-type",
\r
94 map[string]interface{}{
\r
95 "JSONPath": ".metadata.creationTimestamp",
\r
96 "description": "Age",
\r
100 map[string]interface{}{
\r
102 "JSONPath": ".consumerRef",
\r
103 "description": "Owner of the credential",
\r
104 "name": "Consumer-Ref",
\r
107 "group": "configuration.konghq.com",
\r
108 "names": map[string]interface{}{
\r
109 "kind": "KongCredential",
\r
110 "plural": "kongcredentials",
\r
112 "scope": "Namespaced",
\r
113 "validation": map[string]interface{}{
\r
114 "openAPIV3Schema": map[string]interface{}{
\r
115 "properties": map[string]interface{}{
\r
116 "consumerRef": map[string]interface{}{
\r
119 "type": map[string]interface{}{
\r
123 "required": []interface{}{
\r
133 customResourceDefinition3 := &unstructured.Unstructured{
\r
134 Object: map[string]interface{}{
\r
135 "spec": map[string]interface{}{
\r
136 "names": map[string]interface{}{
\r
137 "kind": "KongPlugin",
\r
138 "plural": "kongplugins",
\r
139 "shortNames": []interface{}{
\r
143 "scope": "Namespaced",
\r
144 "validation": map[string]interface{}{
\r
145 "openAPIV3Schema": map[string]interface{}{
\r
146 "properties": map[string]interface{}{
\r
147 "protocols": map[string]interface{}{
\r
148 "items": map[string]interface{}{
\r
150 "enum": []interface{}{
\r
161 "run_on": map[string]interface{}{
\r
162 "enum": []interface{}{
\r
169 "config": map[string]interface{}{
\r
172 "disabled": map[string]interface{}{
\r
175 "plugin": map[string]interface{}{
\r
179 "required": []interface{}{
\r
185 "additionalPrinterColumns": []interface{}{
\r
186 map[string]interface{}{
\r
187 "JSONPath": ".plugin",
\r
188 "description": "Name of the plugin",
\r
189 "name": "Plugin-Type",
\r
192 map[string]interface{}{
\r
193 "description": "Age",
\r
196 "JSONPath": ".metadata.creationTimestamp",
\r
198 map[string]interface{}{
\r
199 "JSONPath": ".disabled",
\r
200 "description": "Indicates if the plugin is disabled",
\r
201 "name": "Disabled",
\r
205 map[string]interface{}{
\r
206 "JSONPath": ".config",
\r
207 "description": "Configuration of the plugin",
\r
213 "group": "configuration.konghq.com",
\r
215 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
216 "kind": "CustomResourceDefinition",
\r
217 "metadata": map[string]interface{}{
\r
218 "labels": map[string]interface{}{
\r
219 "app.kubernetes.io/instance": "release-name",
\r
220 "app.kubernetes.io/managed-by": "Helm",
\r
221 "app.kubernetes.io/name": "kong",
\r
222 "app.kubernetes.io/version": "1.4",
\r
223 "helm.sh/chart": "kong-0.36.6",
\r
225 "name": "kongplugins.configuration.konghq.com",
\r
230 customResourceDefinition4 := &unstructured.Unstructured{
\r
231 Object: map[string]interface{}{
\r
232 "spec": map[string]interface{}{
\r
234 "group": "configuration.konghq.com",
\r
235 "names": map[string]interface{}{
\r
236 "plural": "kongingresses",
\r
237 "shortNames": []interface{}{
\r
240 "kind": "KongIngress",
\r
242 "scope": "Namespaced",
\r
243 "validation": map[string]interface{}{
\r
244 "openAPIV3Schema": map[string]interface{}{
\r
245 "properties": map[string]interface{}{
\r
246 "upstream": map[string]interface{}{
\r
247 "properties": map[string]interface{}{
\r
248 "hash_fallback_header": map[string]interface{}{
\r
251 "hash_on": map[string]interface{}{
\r
254 "hash_on_cookie": map[string]interface{}{
\r
257 "hash_on_cookie_path": map[string]interface{}{
\r
260 "healthchecks": map[string]interface{}{
\r
262 "properties": map[string]interface{}{
\r
263 "passive": map[string]interface{}{
\r
264 "properties": map[string]interface{}{
\r
265 "healthy": map[string]interface{}{
\r
266 "properties": map[string]interface{}{
\r
267 "http_statuses": map[string]interface{}{
\r
268 "items": map[string]interface{}{
\r
273 "interval": map[string]interface{}{
\r
277 "successes": map[string]interface{}{
\r
284 "unhealthy": map[string]interface{}{
\r
286 "properties": map[string]interface{}{
\r
287 "timeout": map[string]interface{}{
\r
291 "http_failures": map[string]interface{}{
\r
295 "http_statuses": map[string]interface{}{
\r
296 "items": map[string]interface{}{
\r
301 "interval": map[string]interface{}{
\r
305 "tcp_failures": map[string]interface{}{
\r
314 "active": map[string]interface{}{
\r
315 "properties": map[string]interface{}{
\r
316 "concurrency": map[string]interface{}{
\r
320 "healthy": map[string]interface{}{
\r
321 "properties": map[string]interface{}{
\r
322 "http_statuses": map[string]interface{}{
\r
323 "items": map[string]interface{}{
\r
328 "interval": map[string]interface{}{
\r
332 "successes": map[string]interface{}{
\r
339 "http_path": map[string]interface{}{
\r
340 "pattern": "^/.*$",
\r
343 "timeout": map[string]interface{}{
\r
347 "unhealthy": map[string]interface{}{
\r
349 "properties": map[string]interface{}{
\r
350 "timeout": map[string]interface{}{
\r
354 "http_failures": map[string]interface{}{
\r
358 "http_statuses": map[string]interface{}{
\r
359 "items": map[string]interface{}{
\r
364 "interval": map[string]interface{}{
\r
368 "tcp_failures": map[string]interface{}{
\r
379 "slots": map[string]interface{}{
\r
383 "algorithm": map[string]interface{}{
\r
384 "enum": []interface{}{
\r
386 "consistent-hashing",
\r
387 "least-connections",
\r
391 "hash_fallback": map[string]interface{}{
\r
394 "hash_on_header": map[string]interface{}{
\r
397 "host_header": map[string]interface{}{
\r
403 "proxy": map[string]interface{}{
\r
404 "properties": map[string]interface{}{
\r
405 "connect_timeout": map[string]interface{}{
\r
409 "path": map[string]interface{}{
\r
410 "pattern": "^/.*$",
\r
413 "protocol": map[string]interface{}{
\r
414 "enum": []interface{}{
\r
422 "read_timeout": map[string]interface{}{
\r
426 "retries": map[string]interface{}{
\r
430 "write_timeout": map[string]interface{}{
\r
437 "route": map[string]interface{}{
\r
438 "properties": map[string]interface{}{
\r
439 "protocols": map[string]interface{}{
\r
440 "items": map[string]interface{}{
\r
442 "enum": []interface{}{
\r
451 "regex_priority": map[string]interface{}{
\r
454 "strip_path": map[string]interface{}{
\r
457 "headers": map[string]interface{}{
\r
458 "additionalProperties": map[string]interface{}{
\r
459 "items": map[string]interface{}{
\r
466 "https_redirect_status_code": map[string]interface{}{
\r
469 "methods": map[string]interface{}{
\r
470 "items": map[string]interface{}{
\r
475 "preserve_host": map[string]interface{}{
\r
484 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
485 "kind": "CustomResourceDefinition",
\r
486 "metadata": map[string]interface{}{
\r
487 "labels": map[string]interface{}{
\r
488 "helm.sh/chart": "kong-0.36.6",
\r
489 "app.kubernetes.io/instance": "release-name",
\r
490 "app.kubernetes.io/managed-by": "Helm",
\r
491 "app.kubernetes.io/name": "kong",
\r
492 "app.kubernetes.io/version": "1.4",
\r
494 "name": "kongingresses.configuration.konghq.com",
\r
499 customResourceDefinition5 := &unstructured.Unstructured{
\r
500 Object: map[string]interface{}{
\r
501 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
502 "kind": "CustomResourceDefinition",
\r
503 "metadata": map[string]interface{}{
\r
504 "labels": map[string]interface{}{
\r
505 "app.kubernetes.io/instance": "release-name",
\r
506 "app.kubernetes.io/managed-by": "Helm",
\r
507 "app.kubernetes.io/name": "kong",
\r
508 "app.kubernetes.io/version": "1.4",
\r
509 "helm.sh/chart": "kong-0.36.6",
\r
511 "name": "kongconsumers.configuration.konghq.com",
\r
513 "spec": map[string]interface{}{
\r
514 "group": "configuration.konghq.com",
\r
515 "names": map[string]interface{}{
\r
516 "kind": "KongConsumer",
\r
517 "plural": "kongconsumers",
\r
518 "shortNames": []interface{}{
\r
522 "scope": "Namespaced",
\r
523 "validation": map[string]interface{}{
\r
524 "openAPIV3Schema": map[string]interface{}{
\r
525 "properties": map[string]interface{}{
\r
526 "credentials": map[string]interface{}{
\r
528 "items": map[string]interface{}{
\r
532 "custom_id": map[string]interface{}{
\r
535 "username": map[string]interface{}{
\r
542 "additionalPrinterColumns": []interface{}{
\r
543 map[string]interface{}{
\r
544 "JSONPath": ".username",
\r
545 "description": "Username of a Kong Consumer",
\r
546 "name": "Username",
\r
549 map[string]interface{}{
\r
550 "JSONPath": ".metadata.creationTimestamp",
\r
551 "description": "Age",
\r
560 customResourceDefinition6 := &unstructured.Unstructured{
\r
561 Object: map[string]interface{}{
\r
562 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
563 "kind": "CustomResourceDefinition",
\r
564 "metadata": map[string]interface{}{
\r
565 "labels": map[string]interface{}{
\r
566 "app.kubernetes.io/managed-by": "Helm",
\r
567 "app.kubernetes.io/name": "kong",
\r
568 "app.kubernetes.io/version": "1.4",
\r
569 "helm.sh/chart": "kong-0.36.6",
\r
570 "app.kubernetes.io/instance": "release-name",
\r
572 "name": "kongcredentials.configuration.konghq.com",
\r
574 "spec": map[string]interface{}{
\r
575 "additionalPrinterColumns": []interface{}{
\r
576 map[string]interface{}{
\r
577 "JSONPath": ".type",
\r
578 "description": "Type of credential",
\r
579 "name": "Credential-type",
\r
582 map[string]interface{}{
\r
583 "description": "Age",
\r
586 "JSONPath": ".metadata.creationTimestamp",
\r
588 map[string]interface{}{
\r
589 "JSONPath": ".consumerRef",
\r
590 "description": "Owner of the credential",
\r
591 "name": "Consumer-Ref",
\r
595 "group": "configuration.konghq.com",
\r
596 "names": map[string]interface{}{
\r
597 "kind": "KongCredential",
\r
598 "plural": "kongcredentials",
\r
600 "scope": "Namespaced",
\r
601 "validation": map[string]interface{}{
\r
602 "openAPIV3Schema": map[string]interface{}{
\r
603 "properties": map[string]interface{}{
\r
604 "consumerRef": map[string]interface{}{
\r
607 "type": map[string]interface{}{
\r
611 "required": []interface{}{
\r
622 customResourceDefinition7 := &unstructured.Unstructured{
\r
623 Object: map[string]interface{}{
\r
624 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
625 "kind": "CustomResourceDefinition",
\r
626 "metadata": map[string]interface{}{
\r
627 "labels": map[string]interface{}{
\r
628 "app.kubernetes.io/instance": "release-name",
\r
629 "app.kubernetes.io/managed-by": "Helm",
\r
630 "app.kubernetes.io/name": "kong",
\r
631 "app.kubernetes.io/version": "1.4",
\r
632 "helm.sh/chart": "kong-0.36.6",
\r
634 "name": "kongplugins.configuration.konghq.com",
\r
636 "spec": map[string]interface{}{
\r
637 "names": map[string]interface{}{
\r
638 "kind": "KongPlugin",
\r
639 "plural": "kongplugins",
\r
640 "shortNames": []interface{}{
\r
644 "scope": "Namespaced",
\r
645 "validation": map[string]interface{}{
\r
646 "openAPIV3Schema": map[string]interface{}{
\r
647 "properties": map[string]interface{}{
\r
648 "config": map[string]interface{}{
\r
651 "disabled": map[string]interface{}{
\r
654 "plugin": map[string]interface{}{
\r
657 "protocols": map[string]interface{}{
\r
658 "items": map[string]interface{}{
\r
659 "enum": []interface{}{
\r
671 "run_on": map[string]interface{}{
\r
673 "enum": []interface{}{
\r
680 "required": []interface{}{
\r
686 "additionalPrinterColumns": []interface{}{
\r
687 map[string]interface{}{
\r
688 "description": "Name of the plugin",
\r
689 "name": "Plugin-Type",
\r
691 "JSONPath": ".plugin",
\r
693 map[string]interface{}{
\r
694 "description": "Age",
\r
697 "JSONPath": ".metadata.creationTimestamp",
\r
699 map[string]interface{}{
\r
702 "JSONPath": ".disabled",
\r
703 "description": "Indicates if the plugin is disabled",
\r
704 "name": "Disabled",
\r
706 map[string]interface{}{
\r
707 "JSONPath": ".config",
\r
708 "description": "Configuration of the plugin",
\r
714 "group": "configuration.konghq.com",
\r
719 customResourceDefinition8 := &unstructured.Unstructured{
\r
720 Object: map[string]interface{}{
\r
721 "apiVersion": "apiextensions.k8s.io/v1beta1",
\r
722 "kind": "CustomResourceDefinition",
\r
723 "metadata": map[string]interface{}{
\r
724 "labels": map[string]interface{}{
\r
725 "helm.sh/chart": "kong-0.36.6",
\r
726 "app.kubernetes.io/instance": "release-name",
\r
727 "app.kubernetes.io/managed-by": "Helm",
\r
728 "app.kubernetes.io/name": "kong",
\r
729 "app.kubernetes.io/version": "1.4",
\r
731 "name": "kongingresses.configuration.konghq.com",
\r
733 "spec": map[string]interface{}{
\r
734 "group": "configuration.konghq.com",
\r
735 "names": map[string]interface{}{
\r
736 "plural": "kongingresses",
\r
737 "shortNames": []interface{}{
\r
740 "kind": "KongIngress",
\r
742 "scope": "Namespaced",
\r
743 "validation": map[string]interface{}{
\r
744 "openAPIV3Schema": map[string]interface{}{
\r
745 "properties": map[string]interface{}{
\r
746 "proxy": map[string]interface{}{
\r
747 "properties": map[string]interface{}{
\r
748 "path": map[string]interface{}{
\r
749 "pattern": "^/.*$",
\r
752 "protocol": map[string]interface{}{
\r
754 "enum": []interface{}{
\r
761 "read_timeout": map[string]interface{}{
\r
765 "retries": map[string]interface{}{
\r
769 "write_timeout": map[string]interface{}{
\r
773 "connect_timeout": map[string]interface{}{
\r
780 "route": map[string]interface{}{
\r
781 "properties": map[string]interface{}{
\r
782 "https_redirect_status_code": map[string]interface{}{
\r
785 "methods": map[string]interface{}{
\r
786 "items": map[string]interface{}{
\r
791 "preserve_host": map[string]interface{}{
\r
794 "protocols": map[string]interface{}{
\r
795 "items": map[string]interface{}{
\r
797 "enum": []interface{}{
\r
806 "regex_priority": map[string]interface{}{
\r
809 "strip_path": map[string]interface{}{
\r
812 "headers": map[string]interface{}{
\r
813 "additionalProperties": map[string]interface{}{
\r
814 "items": map[string]interface{}{
\r
823 "upstream": map[string]interface{}{
\r
824 "properties": map[string]interface{}{
\r
825 "algorithm": map[string]interface{}{
\r
826 "enum": []interface{}{
\r
828 "consistent-hashing",
\r
829 "least-connections",
\r
833 "hash_fallback_header": map[string]interface{}{
\r
836 "hash_on_cookie": map[string]interface{}{
\r
839 "hash_on_cookie_path": map[string]interface{}{
\r
842 "host_header": map[string]interface{}{
\r
845 "hash_fallback": map[string]interface{}{
\r
848 "hash_on": map[string]interface{}{
\r
851 "hash_on_header": map[string]interface{}{
\r
854 "healthchecks": map[string]interface{}{
\r
856 "properties": map[string]interface{}{
\r
857 "active": map[string]interface{}{
\r
858 "properties": map[string]interface{}{
\r
859 "timeout": map[string]interface{}{
\r
863 "unhealthy": map[string]interface{}{
\r
864 "properties": map[string]interface{}{
\r
865 "http_failures": map[string]interface{}{
\r
869 "http_statuses": map[string]interface{}{
\r
870 "items": map[string]interface{}{
\r
875 "interval": map[string]interface{}{
\r
879 "tcp_failures": map[string]interface{}{
\r
883 "timeout": map[string]interface{}{
\r
890 "concurrency": map[string]interface{}{
\r
894 "healthy": map[string]interface{}{
\r
895 "properties": map[string]interface{}{
\r
896 "http_statuses": map[string]interface{}{
\r
897 "items": map[string]interface{}{
\r
902 "interval": map[string]interface{}{
\r
906 "successes": map[string]interface{}{
\r
913 "http_path": map[string]interface{}{
\r
914 "pattern": "^/.*$",
\r
920 "passive": map[string]interface{}{
\r
921 "properties": map[string]interface{}{
\r
922 "healthy": map[string]interface{}{
\r
924 "properties": map[string]interface{}{
\r
925 "http_statuses": map[string]interface{}{
\r
926 "items": map[string]interface{}{
\r
931 "interval": map[string]interface{}{
\r
935 "successes": map[string]interface{}{
\r
941 "unhealthy": map[string]interface{}{
\r
943 "properties": map[string]interface{}{
\r
944 "http_statuses": map[string]interface{}{
\r
946 "items": map[string]interface{}{
\r
950 "interval": map[string]interface{}{
\r
954 "tcp_failures": map[string]interface{}{
\r
958 "timeout": map[string]interface{}{
\r
962 "http_failures": map[string]interface{}{
\r
973 "slots": map[string]interface{}{
\r
988 return []*unstructured.Unstructured{customResourceDefinition1, customResourceDefinition2, customResourceDefinition3, customResourceDefinition4, customResourceDefinition5, customResourceDefinition6, customResourceDefinition7, customResourceDefinition8}
\r