|
656 | 656 | "additionalProperties": false, |
657 | 657 | "type": "object" |
658 | 658 | }, |
659 | | - "PatchTargetOptional": { |
660 | | - "properties": { |
661 | | - "group": { |
662 | | - "type": "string" |
663 | | - }, |
664 | | - "kind": { |
665 | | - "type": "string" |
666 | | - }, |
667 | | - "name": { |
668 | | - "type": "string" |
669 | | - }, |
670 | | - "namespace": { |
671 | | - "type": "string" |
672 | | - }, |
673 | | - "version": { |
674 | | - "type": "string" |
675 | | - }, |
676 | | - "labelSelector": { |
677 | | - "type": "string" |
678 | | - }, |
679 | | - "annotationSelector": { |
680 | | - "type": "string" |
681 | | - } |
682 | | - }, |
683 | | - "additionalProperties": false, |
684 | | - "type": "object" |
685 | | - }, |
686 | 659 | "PatchesOptions": { |
687 | 660 | "properties": { |
688 | 661 | "allowNameChange": { |
|
705 | 678 | "type": "string" |
706 | 679 | }, |
707 | 680 | "target": { |
708 | | - "$ref": "#/definitions/PatchTargetOptional", |
| 681 | + "$ref": "#/definitions/Selector", |
709 | 682 | "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" |
710 | 683 | } |
711 | 684 | }, |
|
721 | 694 | "type": "string" |
722 | 695 | }, |
723 | 696 | "target": { |
724 | | - "$ref": "#/definitions/PatchTargetOptional", |
| 697 | + "$ref": "#/definitions/Selector", |
725 | 698 | "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" |
726 | 699 | } |
727 | 700 | }, |
728 | 701 | "additionalProperties": false |
729 | 702 | }, |
730 | 703 | "ReplacementsInline": { |
731 | | - "required": ["source", "targets"], |
732 | | - "type": "object", |
733 | | - "additionalProperties": false, |
734 | | - "properties": { |
735 | | - "source": { |
| 704 | + "oneOf": [ |
| 705 | + { |
736 | 706 | "type": "object", |
737 | | - "description": "The source of the value", |
| 707 | + "additionalProperties": false, |
| 708 | + "required": ["source", "targets"], |
738 | 709 | "properties": { |
739 | | - "group": { |
740 | | - "type": "string", |
741 | | - "description": "The group of the referent" |
742 | | - }, |
743 | | - "version": { |
744 | | - "type": "string", |
745 | | - "description": "The version of the referent" |
746 | | - }, |
747 | | - "kind": { |
748 | | - "type": "string", |
749 | | - "description": "The kind of the referent" |
750 | | - }, |
751 | | - "name": { |
752 | | - "type": "string", |
753 | | - "description": "The name of the referent" |
| 710 | + "source": { |
| 711 | + "$ref": "#/definitions/ReplacementsSource" |
754 | 712 | }, |
755 | | - "namespace": { |
756 | | - "type": "string", |
757 | | - "description": "The namespace of the referent" |
758 | | - }, |
759 | | - "fieldPath": { |
760 | | - "type": "string", |
761 | | - "description": "The structured path to the source value" |
762 | | - }, |
763 | | - "options": { |
764 | | - "type": "object", |
765 | | - "properties": { |
766 | | - "delimiter": { |
767 | | - "type": "string" |
768 | | - }, |
769 | | - "index": { |
770 | | - "type": "number" |
771 | | - }, |
772 | | - "create": { |
773 | | - "type": "boolean" |
774 | | - } |
| 713 | + "targets": { |
| 714 | + "description": "The N fields to write the value to", |
| 715 | + "type": "array", |
| 716 | + "items": { |
| 717 | + "$ref": "#/definitions/ReplacementsTarget" |
775 | 718 | } |
776 | 719 | } |
777 | 720 | } |
778 | 721 | }, |
779 | | - "targets": { |
780 | | - "description": "The N fields to write the value to", |
781 | | - "type": "array", |
782 | | - "items": { |
783 | | - "required": ["select"], |
784 | | - "type": "object", |
785 | | - "properties": { |
786 | | - "select": { |
787 | | - "type": "object", |
788 | | - "description": "Include objects that match this", |
789 | | - "properties": { |
790 | | - "group": { |
791 | | - "type": "string", |
792 | | - "description": "The group of the referent" |
793 | | - }, |
794 | | - "version": { |
795 | | - "type": "string", |
796 | | - "description": "The version of the referent" |
797 | | - }, |
798 | | - "kind": { |
799 | | - "type": "string", |
800 | | - "description": "The kind of the referent" |
801 | | - }, |
802 | | - "name": { |
803 | | - "type": "string", |
804 | | - "description": "The name of the referent" |
805 | | - }, |
806 | | - "namespace": { |
807 | | - "type": "string", |
808 | | - "description": "The namespace of the referent" |
809 | | - } |
810 | | - } |
811 | | - }, |
812 | | - "reject": { |
813 | | - "type": "array", |
814 | | - "description": "Exclude objects that match this", |
815 | | - "items": { |
816 | | - "type": "object", |
817 | | - "description": "Exclude objects that match this", |
818 | | - "properties": { |
819 | | - "group": { |
820 | | - "type": "string", |
821 | | - "description": "The group of the referent" |
822 | | - }, |
823 | | - "version": { |
824 | | - "type": "string", |
825 | | - "description": "The version of the referent" |
826 | | - }, |
827 | | - "kind": { |
828 | | - "type": "string", |
829 | | - "description": "The kind of the referent" |
830 | | - }, |
831 | | - "name": { |
832 | | - "type": "string", |
833 | | - "description": "The name of the referent" |
834 | | - }, |
835 | | - "namespace": { |
836 | | - "type": "string", |
837 | | - "description": "The namespace of the referent" |
838 | | - } |
839 | | - } |
840 | | - } |
841 | | - }, |
842 | | - "fieldPaths": { |
843 | | - "type": "array", |
844 | | - "description": "The structured path(s) to the target nodes", |
845 | | - "items": { |
846 | | - "type": "string", |
847 | | - "description": "The structured path to the source value" |
848 | | - } |
849 | | - }, |
850 | | - "options": { |
851 | | - "type": "object", |
852 | | - "properties": { |
853 | | - "delimiter": { |
854 | | - "type": "string" |
855 | | - }, |
856 | | - "index": { |
857 | | - "type": "number" |
858 | | - }, |
859 | | - "create": { |
860 | | - "type": "boolean" |
861 | | - } |
862 | | - } |
| 722 | + { |
| 723 | + "type": "object", |
| 724 | + "additionalProperties": false, |
| 725 | + "required": ["sourceValue", "targets"], |
| 726 | + "properties": { |
| 727 | + "sourceValue": { |
| 728 | + "description": "A scalar value as source", |
| 729 | + "type": "string" |
| 730 | + }, |
| 731 | + "targets": { |
| 732 | + "description": "The N fields to write the value to", |
| 733 | + "type": "array", |
| 734 | + "items": { |
| 735 | + "$ref": "#/definitions/ReplacementsTarget" |
863 | 736 | } |
864 | 737 | } |
865 | 738 | } |
866 | 739 | } |
867 | | - } |
| 740 | + ] |
868 | 741 | }, |
869 | 742 | "ReplacementsPath": { |
870 | 743 | "required": ["path"], |
|
876 | 749 | } |
877 | 750 | } |
878 | 751 | }, |
| 752 | + "ReplacementsSource": { |
| 753 | + "type": "object", |
| 754 | + "description": "The source of the value", |
| 755 | + "properties": { |
| 756 | + "group": { |
| 757 | + "type": "string", |
| 758 | + "description": "The group of the referent" |
| 759 | + }, |
| 760 | + "version": { |
| 761 | + "type": "string", |
| 762 | + "description": "The version of the referent" |
| 763 | + }, |
| 764 | + "kind": { |
| 765 | + "type": "string", |
| 766 | + "description": "The kind of the referent" |
| 767 | + }, |
| 768 | + "name": { |
| 769 | + "type": "string", |
| 770 | + "description": "The name of the referent" |
| 771 | + }, |
| 772 | + "namespace": { |
| 773 | + "type": "string", |
| 774 | + "description": "The namespace of the referent" |
| 775 | + }, |
| 776 | + "fieldPath": { |
| 777 | + "type": "string", |
| 778 | + "description": "The structured path to the source value" |
| 779 | + }, |
| 780 | + "options": { |
| 781 | + "type": "object", |
| 782 | + "properties": { |
| 783 | + "delimiter": { |
| 784 | + "type": "string" |
| 785 | + }, |
| 786 | + "index": { |
| 787 | + "type": "number" |
| 788 | + }, |
| 789 | + "create": { |
| 790 | + "type": "boolean" |
| 791 | + } |
| 792 | + } |
| 793 | + } |
| 794 | + } |
| 795 | + }, |
| 796 | + "ReplacementsTarget": { |
| 797 | + "required": ["select"], |
| 798 | + "type": "object", |
| 799 | + "properties": { |
| 800 | + "select": { |
| 801 | + "$ref": "#/definitions/Selector", |
| 802 | + "description": "Include objects that match this" |
| 803 | + }, |
| 804 | + "reject": { |
| 805 | + "type": "array", |
| 806 | + "description": "Exclude objects that match this", |
| 807 | + "items": { |
| 808 | + "$ref": "#/definitions/Selector" |
| 809 | + } |
| 810 | + }, |
| 811 | + "fieldPaths": { |
| 812 | + "type": "array", |
| 813 | + "description": "The structured path(s) to the target nodes", |
| 814 | + "items": { |
| 815 | + "type": "string", |
| 816 | + "description": "The structured path to the source value" |
| 817 | + } |
| 818 | + }, |
| 819 | + "options": { |
| 820 | + "type": "object", |
| 821 | + "properties": { |
| 822 | + "delimiter": { |
| 823 | + "type": "string" |
| 824 | + }, |
| 825 | + "index": { |
| 826 | + "type": "number" |
| 827 | + }, |
| 828 | + "create": { |
| 829 | + "type": "boolean" |
| 830 | + } |
| 831 | + } |
| 832 | + } |
| 833 | + } |
| 834 | + }, |
879 | 835 | "Replicas": { |
880 | 836 | "properties": { |
881 | 837 | "name": { |
|
940 | 896 | "additionalProperties": false, |
941 | 897 | "type": "object" |
942 | 898 | }, |
| 899 | + "Selector": { |
| 900 | + "description": "Selector specifies a set of resources.\nAny resource that matches intersection of all conditions is included in this set.", |
| 901 | + "properties": { |
| 902 | + "group": { |
| 903 | + "description": "The group of the referent", |
| 904 | + "type": "string" |
| 905 | + }, |
| 906 | + "kind": { |
| 907 | + "description": "The kind of the referent", |
| 908 | + "type": "string" |
| 909 | + }, |
| 910 | + "name": { |
| 911 | + "description": "The name of the referent", |
| 912 | + "type": "string" |
| 913 | + }, |
| 914 | + "namespace": { |
| 915 | + "description": "The namespace of the referent", |
| 916 | + "type": "string" |
| 917 | + }, |
| 918 | + "version": { |
| 919 | + "description": "The version of the referent", |
| 920 | + "type": "string" |
| 921 | + }, |
| 922 | + "annotationSelector": { |
| 923 | + "description": "AnnotationSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api", |
| 924 | + "type": "string" |
| 925 | + }, |
| 926 | + "labelSelector": { |
| 927 | + "description": "LabelSelector is a string that follows the label selection expression\nhttps://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api", |
| 928 | + "type": "string" |
| 929 | + } |
| 930 | + }, |
| 931 | + "additionalProperties": false, |
| 932 | + "type": "object" |
| 933 | + }, |
943 | 934 | "Target": { |
944 | 935 | "required": ["name"], |
945 | 936 | "properties": { |
|
0 commit comments