()
| 715 | } |
| 716 | |
| 717 | func getSampleAdditionalConfigs() *additionalConfigs { |
| 718 | return &additionalConfigs{ |
| 719 | VolumeMounts: []corev1.VolumeMount{ |
| 720 | { |
| 721 | Name: "test-cm", |
| 722 | ReadOnly: true, |
| 723 | MountPath: "/opt/config/test-file", |
| 724 | SubPath: "test-file", |
| 725 | }, |
| 726 | { |
| 727 | Name: "test-host-path", |
| 728 | MountPath: "/opt/config/test-host-path", |
| 729 | }, |
| 730 | { |
| 731 | Name: "test-host-path-ro", |
| 732 | MountPath: "/opt/config/test-host-path-ro", |
| 733 | ReadOnly: true, |
| 734 | }, |
| 735 | }, |
| 736 | Volumes: []corev1.Volume{ |
| 737 | { |
| 738 | Name: "test-cm", |
| 739 | VolumeSource: corev1.VolumeSource{ |
| 740 | ConfigMap: &corev1.ConfigMapVolumeSource{ |
| 741 | LocalObjectReference: corev1.LocalObjectReference{ |
| 742 | Name: "test-cm", |
| 743 | }, |
| 744 | Items: []corev1.KeyToPath{ |
| 745 | { |
| 746 | Key: "test-file", |
| 747 | Path: "test-file", |
| 748 | }, |
| 749 | }, |
| 750 | }, |
| 751 | }, |
| 752 | }, |
| 753 | { |
| 754 | Name: "test-host-path", |
| 755 | VolumeSource: corev1.VolumeSource{ |
| 756 | HostPath: &corev1.HostPathVolumeSource{ |
| 757 | Path: "/opt/config/test-host-path", |
| 758 | Type: ptr.To(corev1.HostPathDirectoryOrCreate), |
| 759 | }, |
| 760 | }, |
| 761 | }, |
| 762 | { |
| 763 | Name: "test-host-path-ro", |
| 764 | VolumeSource: corev1.VolumeSource{ |
| 765 | HostPath: &corev1.HostPathVolumeSource{ |
| 766 | Path: "/opt/config/test-host-path-ro", |
| 767 | Type: ptr.To(corev1.HostPathDirectoryOrCreate), |
| 768 | }, |
| 769 | }, |
| 770 | }, |
| 771 | }, |
| 772 | } |
| 773 | } |
| 774 |
no outgoing calls
no test coverage detected