foreman_kubevirt 0.1.2 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +5 -3
  3. data/app/assets/javascripts/bundle.js +1 -0
  4. data/app/controllers/foreman_kubevirt/concerns/api/compute_resources_controller_extensions.rb +8 -16
  5. data/app/models/foreman_kubevirt/compute_attribute_extensions.rb +8 -0
  6. data/app/models/foreman_kubevirt/kubevirt.rb +86 -24
  7. data/app/validators/volume_validator.rb +13 -0
  8. data/app/views/compute_resources/form/_kubevirt.html.erb +5 -3
  9. data/app/views/compute_resources_vms/form/kubevirt/_volume.html.erb +5 -2
  10. data/app/views/compute_resources_vms/index/_kubevirt.html.erb +1 -1
  11. data/app/views/compute_resources_vms/show/_kubevirt.html.erb +1 -2
  12. data/lib/foreman_kubevirt/engine.rb +3 -0
  13. data/lib/foreman_kubevirt/version.rb +1 -1
  14. data/locale/action_names.rb +5 -0
  15. data/locale/ca/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  16. data/locale/ca/foreman_kubevirt.po +170 -0
  17. data/locale/cs_CZ/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  18. data/locale/cs_CZ/foreman_kubevirt.po +170 -0
  19. data/locale/de/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  20. data/locale/de/foreman_kubevirt.po +170 -0
  21. data/locale/en/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  22. data/locale/en/foreman_kubevirt.edit.po +219 -0
  23. data/locale/en/foreman_kubevirt.po +162 -11
  24. data/locale/en/foreman_kubevirt.po.time_stamp +0 -0
  25. data/locale/en_GB/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  26. data/locale/en_GB/foreman_kubevirt.po +170 -0
  27. data/locale/es/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  28. data/locale/es/foreman_kubevirt.po +170 -0
  29. data/locale/foreman_kubevirt.pot +232 -8
  30. data/locale/fr/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  31. data/locale/fr/foreman_kubevirt.po +170 -0
  32. data/locale/gemspec.rb +1 -1
  33. data/locale/gl/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  34. data/locale/gl/foreman_kubevirt.po +170 -0
  35. data/locale/it/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  36. data/locale/it/foreman_kubevirt.po +170 -0
  37. data/locale/ja/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  38. data/locale/ja/foreman_kubevirt.po +170 -0
  39. data/locale/ko/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  40. data/locale/ko/foreman_kubevirt.po +170 -0
  41. data/locale/nl_NL/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  42. data/locale/nl_NL/foreman_kubevirt.po +177 -0
  43. data/locale/pl/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  44. data/locale/pl/foreman_kubevirt.po +176 -0
  45. data/locale/pt_BR/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  46. data/locale/pt_BR/foreman_kubevirt.po +178 -0
  47. data/locale/ru/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  48. data/locale/ru/foreman_kubevirt.po +180 -0
  49. data/locale/sv_SE/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  50. data/locale/sv_SE/foreman_kubevirt.po +176 -0
  51. data/locale/zh_CN/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  52. data/locale/zh_CN/foreman_kubevirt.po +177 -0
  53. data/locale/zh_TW/LC_MESSAGES/foreman_kubevirt.mo +0 -0
  54. data/locale/zh_TW/foreman_kubevirt.po +175 -0
  55. data/test/factories/compute_resource_factories.rb +6 -6
  56. data/test/factories/host_factories.rb +41 -41
  57. data/test/factories/nic_factories.rb +25 -25
  58. data/test/models/compute_resources/kubevirt_test.rb +15 -1
  59. data/test/unit/foreman_kubevirt_test.rb +65 -6
  60. metadata +52 -12
@@ -0,0 +1,177 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_kubevirt package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Maxim Burgerhout <maxim@wzzrd.com>, 2020
8
+ # dschutterop <daniel@schutterop.nl>, 2020
9
+ # EmielK <emiel@kremers.us>, 2020
10
+ # Mark Olie <mark.transifex@oliekoets.nl>, 2020
11
+ #
12
+ #, fuzzy
13
+ msgid ""
14
+ msgstr ""
15
+ "Project-Id-Version: foreman_kubevirt 0.1.7\n"
16
+ "Report-Msgid-Bugs-To: \n"
17
+ "PO-Revision-Date: 2020-05-26 07:39+0000\n"
18
+ "Last-Translator: Mark Olie <mark.transifex@oliekoets.nl>, 2020\n"
19
+ "Language-Team: Dutch (Netherlands) (https://www.transifex.com/foreman/teams/11"
20
+ "4/nl_NL/)\n"
21
+ "MIME-Version: 1.0\n"
22
+ "Content-Type: text/plain; charset=UTF-8\n"
23
+ "Content-Transfer-Encoding: 8bit\n"
24
+ "Language: nl_NL\n"
25
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
26
+
27
+ msgid "%{cpu_cores} Cores and %{memory} memory"
28
+ msgstr ""
29
+
30
+ msgid "API Port"
31
+ msgstr ""
32
+
33
+ msgid "API port for KubeVirt only"
34
+ msgstr ""
35
+
36
+ msgid "Actions"
37
+ msgstr "Acties"
38
+
39
+ msgid "Bootable"
40
+ msgstr "Opstartbaar"
41
+
42
+ msgid "CA crt for KubeVirt only"
43
+ msgstr ""
44
+
45
+ msgid "CNI Provider"
46
+ msgstr ""
47
+
48
+ msgid "CPUs"
49
+ msgstr "CPUs"
50
+
51
+ msgid "Disk"
52
+ msgstr "Disk"
53
+
54
+ msgid "Does this image support user data input (e.g. via cloud-init)?"
55
+ msgstr ""
56
+
57
+ msgid "Host name for KubeVirt only"
58
+ msgstr ""
59
+
60
+ msgid "Hostname"
61
+ msgstr ""
62
+
63
+ msgid "Image"
64
+ msgstr ""
65
+
66
+ msgid "It is not possible to set a bootable volume and image based provisioning."
67
+ msgstr ""
68
+
69
+ msgid "Memory"
70
+ msgstr ""
71
+
72
+ msgid "NIC"
73
+ msgstr ""
74
+
75
+ msgid "Name"
76
+ msgstr "Naam"
77
+
78
+ msgid "Namespace"
79
+ msgstr ""
80
+
81
+ msgid "Namespace for KubeVirt only"
82
+ msgstr ""
83
+
84
+ msgid "Network"
85
+ msgstr ""
86
+
87
+ msgid "Only one volume can be bootable"
88
+ msgstr ""
89
+
90
+ msgid "Optionally provide a CA, or a correctly ordered CA chain or a path to a file. If left blank - insecure."
91
+ msgstr ""
92
+
93
+ msgid "Password to authenticate with - used for SSH finish step."
94
+ msgstr ""
95
+
96
+ msgid "Please select an image"
97
+ msgstr ""
98
+
99
+ msgid "Power"
100
+ msgstr ""
101
+
102
+ msgid "Power ON this machine"
103
+ msgstr ""
104
+
105
+ msgid "Properties"
106
+ msgstr ""
107
+
108
+ msgid "Provision and manage Kubevirt Virtual Machines from Foreman."
109
+ msgstr ""
110
+
111
+ msgid "Running on"
112
+ msgstr ""
113
+
114
+ msgid "Size (GB)"
115
+ msgstr ""
116
+
117
+ msgid "Start"
118
+ msgstr ""
119
+
120
+ msgid "Storage Class"
121
+ msgstr ""
122
+
123
+ msgid "The compute resource could not be authenticated"
124
+ msgstr ""
125
+
126
+ msgid "The name of the image in the registry."
127
+ msgstr ""
128
+
129
+ msgid ""
130
+ "The remote system presented a public key signed by an unidentified certificate authority.\n"
131
+ " If you are sure the remote system is authentic, go to the compute resource edit page, press the 'Test Connection' button and submit"
132
+ msgstr ""
133
+
134
+ msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, root etc"
135
+ msgstr ""
136
+
137
+ msgid "Token"
138
+ msgstr ""
139
+
140
+ msgid "Token for KubeVirt only"
141
+ msgstr ""
142
+
143
+ msgid "Type"
144
+ msgstr ""
145
+
146
+ msgid "UUID"
147
+ msgstr ""
148
+
149
+ msgid "VCPU(s)"
150
+ msgstr ""
151
+
152
+ msgid "VM should be created based on Persistent Volume Claim or Image"
153
+ msgstr ""
154
+
155
+ msgid "VM should be created based on an image"
156
+ msgstr ""
157
+
158
+ msgid "X509 Certification Authorities"
159
+ msgstr ""
160
+
161
+ msgid "cni_provider or network are missing"
162
+ msgstr ""
163
+
164
+ msgid "e.g. eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..."
165
+ msgstr ""
166
+
167
+ msgid "genie"
168
+ msgstr ""
169
+
170
+ msgid "multus"
171
+ msgstr ""
172
+
173
+ msgid "no Storage Classes available on provider"
174
+ msgstr ""
175
+
176
+ msgid "pod"
177
+ msgstr ""
@@ -0,0 +1,176 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_kubevirt package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # sziolkow <sziolkow@gmail.com>, 2020
8
+ # Michał Foryt <michal.foryt@gmail.com>, 2020
9
+ #
10
+ #, fuzzy
11
+ msgid ""
12
+ msgstr ""
13
+ "Project-Id-Version: foreman_kubevirt 0.1.7\n"
14
+ "Report-Msgid-Bugs-To: \n"
15
+ "PO-Revision-Date: 2020-05-26 07:39+0000\n"
16
+ "Last-Translator: Michał Foryt <michal.foryt@gmail.com>, 2020\n"
17
+ "Language-Team: Polish (https://www.transifex.com/foreman/teams/114/pl/)\n"
18
+ "MIME-Version: 1.0\n"
19
+ "Content-Type: text/plain; charset=UTF-8\n"
20
+ "Content-Transfer-Encoding: 8bit\n"
21
+ "Language: pl\n"
22
+ "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12"
23
+ " || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n"
24
+ "%100>=12 && n%100<=14) ? 2 : 3);\n"
25
+
26
+ msgid "%{cpu_cores} Cores and %{memory} memory"
27
+ msgstr ""
28
+
29
+ msgid "API Port"
30
+ msgstr ""
31
+
32
+ msgid "API port for KubeVirt only"
33
+ msgstr ""
34
+
35
+ msgid "Actions"
36
+ msgstr "Akcja"
37
+
38
+ msgid "Bootable"
39
+ msgstr "Bootowalny"
40
+
41
+ msgid "CA crt for KubeVirt only"
42
+ msgstr ""
43
+
44
+ msgid "CNI Provider"
45
+ msgstr ""
46
+
47
+ msgid "CPUs"
48
+ msgstr "Procesory"
49
+
50
+ msgid "Disk"
51
+ msgstr "Dysk"
52
+
53
+ msgid "Does this image support user data input (e.g. via cloud-init)?"
54
+ msgstr "Czy obraz wspiera wejściowe dane użytkownika (np. przez cloud-init)?"
55
+
56
+ msgid "Host name for KubeVirt only"
57
+ msgstr ""
58
+
59
+ msgid "Hostname"
60
+ msgstr "Nazwa hostu"
61
+
62
+ msgid "Image"
63
+ msgstr "Obraz"
64
+
65
+ msgid "It is not possible to set a bootable volume and image based provisioning."
66
+ msgstr ""
67
+
68
+ msgid "Memory"
69
+ msgstr "Pamięć"
70
+
71
+ msgid "NIC"
72
+ msgstr "NIC"
73
+
74
+ msgid "Name"
75
+ msgstr "Nazwa"
76
+
77
+ msgid "Namespace"
78
+ msgstr ""
79
+
80
+ msgid "Namespace for KubeVirt only"
81
+ msgstr ""
82
+
83
+ msgid "Network"
84
+ msgstr "Sieć"
85
+
86
+ msgid "Only one volume can be bootable"
87
+ msgstr "Tylko jeden wolumin może być bootowalny"
88
+
89
+ msgid "Optionally provide a CA, or a correctly ordered CA chain or a path to a file. If left blank - insecure."
90
+ msgstr ""
91
+
92
+ msgid "Password to authenticate with - used for SSH finish step."
93
+ msgstr "Hasło do uwierzytelnienia - używalne przez SSH przy końcowych krokach"
94
+
95
+ msgid "Please select an image"
96
+ msgstr "Proszę wybrać obraz"
97
+
98
+ msgid "Power"
99
+ msgstr "Zasilanie"
100
+
101
+ msgid "Power ON this machine"
102
+ msgstr "Moc na tym komputerze"
103
+
104
+ msgid "Properties"
105
+ msgstr "Ustawienia"
106
+
107
+ msgid "Provision and manage Kubevirt Virtual Machines from Foreman."
108
+ msgstr ""
109
+
110
+ msgid "Running on"
111
+ msgstr "Działa na"
112
+
113
+ msgid "Size (GB)"
114
+ msgstr "Rozmiar (GB)"
115
+
116
+ msgid "Start"
117
+ msgstr "Start"
118
+
119
+ msgid "Storage Class"
120
+ msgstr ""
121
+
122
+ msgid "The compute resource could not be authenticated"
123
+ msgstr ""
124
+
125
+ msgid "The name of the image in the registry."
126
+ msgstr ""
127
+
128
+ msgid ""
129
+ "The remote system presented a public key signed by an unidentified certificate authority.\n"
130
+ " If you are sure the remote system is authentic, go to the compute resource edit page, press the 'Test Connection' button and submit"
131
+ msgstr ""
132
+
133
+ msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, root etc"
134
+ msgstr "Użytkownik który loguje się przez ssh do maszyny zazwyczaj nazywa się cloud-user, ec2-user, ubuntu, root etc"
135
+
136
+ msgid "Token"
137
+ msgstr "Token"
138
+
139
+ msgid "Token for KubeVirt only"
140
+ msgstr ""
141
+
142
+ msgid "Type"
143
+ msgstr "Typ"
144
+
145
+ msgid "UUID"
146
+ msgstr "UUID"
147
+
148
+ msgid "VCPU(s)"
149
+ msgstr "VCPU(s)"
150
+
151
+ msgid "VM should be created based on Persistent Volume Claim or Image"
152
+ msgstr ""
153
+
154
+ msgid "VM should be created based on an image"
155
+ msgstr ""
156
+
157
+ msgid "X509 Certification Authorities"
158
+ msgstr "X509 Certification Authorities"
159
+
160
+ msgid "cni_provider or network are missing"
161
+ msgstr ""
162
+
163
+ msgid "e.g. eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..."
164
+ msgstr ""
165
+
166
+ msgid "genie"
167
+ msgstr ""
168
+
169
+ msgid "multus"
170
+ msgstr ""
171
+
172
+ msgid "no Storage Classes available on provider"
173
+ msgstr ""
174
+
175
+ msgid "pod"
176
+ msgstr ""
@@ -0,0 +1,178 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_kubevirt package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Flamarion Jorge <jorge.flamarion@gmail.com>, 2020
8
+ # 0868a4d1af5275b3f70b0a6dac4c99a4, 2020
9
+ # Bryan Kearney <bryan.kearney@gmail.com>, 2020
10
+ # Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 2020
11
+ # Bruno Emanuel Silva <bemanuel.pe@gmail.com>, 2020
12
+ #
13
+ #, fuzzy
14
+ msgid ""
15
+ msgstr ""
16
+ "Project-Id-Version: foreman_kubevirt 0.1.7\n"
17
+ "Report-Msgid-Bugs-To: \n"
18
+ "PO-Revision-Date: 2020-05-26 07:39+0000\n"
19
+ "Last-Translator: Bruno Emanuel Silva <bemanuel.pe@gmail.com>, 2020\n"
20
+ "Language-Team: Portuguese (Brazil) (https://www.transifex.com/foreman/teams/11"
21
+ "4/pt_BR/)\n"
22
+ "MIME-Version: 1.0\n"
23
+ "Content-Type: text/plain; charset=UTF-8\n"
24
+ "Content-Transfer-Encoding: 8bit\n"
25
+ "Language: pt_BR\n"
26
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
27
+
28
+ msgid "%{cpu_cores} Cores and %{memory} memory"
29
+ msgstr ""
30
+
31
+ msgid "API Port"
32
+ msgstr ""
33
+
34
+ msgid "API port for KubeVirt only"
35
+ msgstr ""
36
+
37
+ msgid "Actions"
38
+ msgstr "Ações"
39
+
40
+ msgid "Bootable"
41
+ msgstr "Inicializável"
42
+
43
+ msgid "CA crt for KubeVirt only"
44
+ msgstr ""
45
+
46
+ msgid "CNI Provider"
47
+ msgstr ""
48
+
49
+ msgid "CPUs"
50
+ msgstr "CPUs"
51
+
52
+ msgid "Disk"
53
+ msgstr "Disco"
54
+
55
+ msgid "Does this image support user data input (e.g. via cloud-init)?"
56
+ msgstr "Esta imagem suporta a entrada de dados do usuário (ex.: via cloud-init)?"
57
+
58
+ msgid "Host name for KubeVirt only"
59
+ msgstr ""
60
+
61
+ msgid "Hostname"
62
+ msgstr "Nome do host"
63
+
64
+ msgid "Image"
65
+ msgstr "Imagem"
66
+
67
+ msgid "It is not possible to set a bootable volume and image based provisioning."
68
+ msgstr ""
69
+
70
+ msgid "Memory"
71
+ msgstr "Memória"
72
+
73
+ msgid "NIC"
74
+ msgstr "NIC"
75
+
76
+ msgid "Name"
77
+ msgstr "Nome"
78
+
79
+ msgid "Namespace"
80
+ msgstr ""
81
+
82
+ msgid "Namespace for KubeVirt only"
83
+ msgstr ""
84
+
85
+ msgid "Network"
86
+ msgstr "Rede"
87
+
88
+ msgid "Only one volume can be bootable"
89
+ msgstr "Somente um volume pode ser inicializável"
90
+
91
+ msgid "Optionally provide a CA, or a correctly ordered CA chain or a path to a file. If left blank - insecure."
92
+ msgstr ""
93
+
94
+ msgid "Password to authenticate with - used for SSH finish step."
95
+ msgstr "Senha para autenticar-se - usada para o passo final do SSH."
96
+
97
+ msgid "Please select an image"
98
+ msgstr "Por favor selecione uma imagem"
99
+
100
+ msgid "Power"
101
+ msgstr "Energia"
102
+
103
+ msgid "Power ON this machine"
104
+ msgstr "Ligar essa máquina"
105
+
106
+ msgid "Properties"
107
+ msgstr "Propriedades"
108
+
109
+ msgid "Provision and manage Kubevirt Virtual Machines from Foreman."
110
+ msgstr ""
111
+
112
+ msgid "Running on"
113
+ msgstr "Executando em"
114
+
115
+ msgid "Size (GB)"
116
+ msgstr "Tamanho (GB)"
117
+
118
+ msgid "Start"
119
+ msgstr "Início"
120
+
121
+ msgid "Storage Class"
122
+ msgstr ""
123
+
124
+ msgid "The compute resource could not be authenticated"
125
+ msgstr ""
126
+
127
+ msgid "The name of the image in the registry."
128
+ msgstr ""
129
+
130
+ msgid ""
131
+ "The remote system presented a public key signed by an unidentified certificate authority.\n"
132
+ " If you are sure the remote system is authentic, go to the compute resource edit page, press the 'Test Connection' button and submit"
133
+ msgstr ""
134
+
135
+ msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, root etc"
136
+ msgstr "O usuário utilizado para realizar o ssh na instância, normalmente cloud-user, ec2-user, ubuntu, root etc"
137
+
138
+ msgid "Token"
139
+ msgstr "Token"
140
+
141
+ msgid "Token for KubeVirt only"
142
+ msgstr ""
143
+
144
+ msgid "Type"
145
+ msgstr "Tipo"
146
+
147
+ msgid "UUID"
148
+ msgstr "UUID"
149
+
150
+ msgid "VCPU(s)"
151
+ msgstr "VCPU(s)"
152
+
153
+ msgid "VM should be created based on Persistent Volume Claim or Image"
154
+ msgstr ""
155
+
156
+ msgid "VM should be created based on an image"
157
+ msgstr ""
158
+
159
+ msgid "X509 Certification Authorities"
160
+ msgstr "Autoridades de Certificação X509"
161
+
162
+ msgid "cni_provider or network are missing"
163
+ msgstr ""
164
+
165
+ msgid "e.g. eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..."
166
+ msgstr ""
167
+
168
+ msgid "genie"
169
+ msgstr ""
170
+
171
+ msgid "multus"
172
+ msgstr ""
173
+
174
+ msgid "no Storage Classes available on provider"
175
+ msgstr ""
176
+
177
+ msgid "pod"
178
+ msgstr ""