Mike Place
15239c6e90
Merge pull request #41916 from terminalmage/remove-gitpython
...
Remove GitPython from dev requirements files
2017-06-23 12:34:28 -05:00
Erik Johnson
e178f08d3a
Remove GitPython from dev requirements files
...
This was added in the past because we put git_pillar configuration in
the integration suite's master config file. However, now that git_pillar
is being tested in its own separate way and no longer requires the
git_pillar config to be in the master config file, it has been removed.
This makes GitPython unnecessary in the dev requirements file. The
reason it was there before was mainly to squelch a bunch of critical
errors that would occur every time the test suite would attempt to
compile the git_pillar items and failed if GitPython wasn't installed.
This was more for the benefit of users running the test suite on their
own than for our jenkins setup of course, since we were installing
GitPython on the Jenkins VMs.
2017-06-23 07:17:51 -05:00
Mike Place
c89cd2a4bf
Merge pull request #41890 from cachedout/locale_doc
...
Locale doc
2017-06-22 12:34:46 -05:00
Mike Place
d12539f3c4
Merge pull request #41892 from UtahDave/nitrogenlocal
...
A couple small bugfixes.
2017-06-22 11:17:25 -05:00
Mike Place
df5a112a9b
Merge pull request #41904 from twangboy/docs_win_add_firewall
...
Fix anchor to _linux-iptables
2017-06-22 11:16:23 -05:00
twangboy
d49bfd02a4
Fix anchor to _linux-iptables
2017-06-22 09:46:29 -06:00
Mike Place
3bc07d2f7c
Line breaks
2017-06-22 09:24:55 -06:00
David Boucha
fd4fdf4952
remove trailing whitespace
2017-06-21 18:37:17 -06:00
David Boucha
64f9cc2409
add put_file
2017-06-21 17:14:21 -06:00
David Boucha
f2129c3c37
add missing function argument
2017-06-21 17:14:20 -06:00
David Boucha
1d39790e9c
add missing function argument
2017-06-21 17:14:19 -06:00
Mike Place
679040c04b
Locale doc
2017-06-21 16:06:59 -06:00
Mike Place
2e080a2949
Merge pull request #39514 from flavio/kubernetes-modules
...
Introducing the kubernetes modules
2017-06-21 16:30:07 -05:00
Flavio Castelli
043865bbcb
kubernetes: port k8s.folder_absent
...
Achieve complete feature parity between k8s and kubernetes states.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 21:56:17 +02:00
Flavio Castelli
64e37b6e20
k8s: show deprecation warnings
...
Warn users the k8s state module is going to be deprecated.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 21:56:17 +02:00
Flavio Castelli
f87fea0245
kubernetes: add node labels support
...
Support management of node labels through salt states.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 21:56:17 +02:00
Flavio Castelli
ea02960d0d
kubernetes: fix error messages
...
* Ensure enough information are provided when a failure happens.
* Ensure the style is consistent.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:23 +02:00
Flavio Castelli
a64d8c1449
kubernetes: handle pod resources from state files
...
Allow handling of pod resources from state files.
Note well: right now it's not possible to have
`pod_present` replace an existing pod because the
`replace_namespaced_pod` API returns a validation error.
Only certain fields of the pod spec can be changed in a live
fashion. Sending more fields will cause a validation error.
Despite my efforts I wasn't able to get it to work. I fear
this is probably another merge strategy issue caused by the
kubernetes salt cliet (by default a too aggressive one is picked).
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:23 +02:00
Flavio Castelli
659049a3c6
kubernetes module: code refactoring
...
Use list comprehension, ensure only names of resources
are returned by the various "list all resources of this type"
methods.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
c8714a9be2
kubernetes: handle ConfigMap resources
...
Allow kubenetes' ConfigMap resources to be managed by salt
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
6e6a393c95
Fix creation of certain k8s secrets
...
Kubernetes secrets are internally represented as a dictionary
with strings as data type for both keys and values.
Ensure the objects we send to the API server respect this requirement
otherwise an internal error will take place on the server.
Also rely on kubernetes response to show the data changed, this fixes
issues when creating secrets from local files.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
4e94aa7831
Fix states messages on creation of resources
...
Show the "resource has beeen recreated" message only when that actually
happened.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
52ea394323
Minor fixes
...
Fix linting complains and typos.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
dc569a730b
Respect code style
...
Use single quotes instead of double ones for strings.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
16372ef2bc
Manage kubernetes secret resource
...
Allow handling of Kubernetes secrets
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:22 +02:00
Flavio Castelli
797aa469e0
kubernetes: handle namespaces
...
Allow handling of kubernetes namespaces resources
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:21 +02:00
Flavio Castelli
45f40c35b6
kubernetes module: add show node feature
...
Show node details
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:21 +02:00
Flavio Castelli
f4ee18f610
kubernetes module: handle secrets
...
Add the code required to handle kubernetes secrets
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:21 +02:00
Pablo Suárez Hernández
6de2508c92
Adding new methods, some refactor and issues fixed
...
- New functions added to execution module:
* kubernetes.deployments
* kubernetes.services
* kubernetes.pods
* kubernetes.show_pod
* kubernetes.delete_pod
- Allows override default k8s API settings with custom values.
- Improves exception handling.
- Documentation fixes.
- Some imports refactor.
- pylint fixes.
2017-06-21 20:56:21 +02:00
Flavio Castelli
58568282be
Fix pylint issues
2017-06-21 20:56:21 +02:00
Flavio Castelli
925cab88a0
First round of fixes
...
Apply fixes requested inside of PR.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:21 +02:00
Flavio Castelli
1834f8695e
Introducing the kubernetes modules
...
Allow basic interaction with kubernetes, right now only deployments
and services resources are managed.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-06-21 20:56:20 +02:00
Mike Place
a25818b90b
Merge pull request #41872 from DSRCorporation/bugs/py3_DiskTestCase
...
Py3: test_disk fix: don't expect dict iteration order will be the same
2017-06-21 12:09:57 -05:00
Mike Place
eea9cafba0
Merge pull request #41874 from DSRCorporation/bugs/py3_mdadm_test
...
Py3 mdadm test
2017-06-21 12:03:33 -05:00
Mike Place
ccd81ed047
Merge pull request #41859 from DSRCorporation/bugs/py3_tests_2017.7
...
Py3 etcd unit test fix.
2017-06-21 10:33:15 -05:00
Mike Place
278b5614d0
Merge pull request #41856 from meaksh/2017.7-suse-leftovers-part-two
...
SUSE leftovers for 2017.7.0 RC
2017-06-21 10:24:37 -05:00
Dmitry Kuzmenko
e1e8d96ef2
Removed unneeded import.
2017-06-21 18:08:44 +03:00
Dmitry Kuzmenko
1401b2d5ba
Py3: mdadm test fix: don't expect kwargs iteration order
2017-06-21 15:45:55 +03:00
Dmitry Kuzmenko
127e48025a
Py3: tests_disk fix: don't expect dict iteration order will be the same
2017-06-21 14:48:59 +03:00
Pablo Suárez Hernández
a3e9b5cdbe
Fixes mocking error
2017-06-21 11:56:36 +01:00
Dmitry Kuzmenko
596ab0421d
Py3: pass Exception to side effect friendly for both mock<1.1 and mock>=1.1
2017-06-21 12:46:46 +03:00
Pablo Suárez Hernández
6eea8179ad
Pylint fixes
2017-06-21 10:09:11 +01:00
Pablo Suárez Hernández
686c45b8ab
Fix buggy test
2017-06-21 09:32:01 +01:00
Mike Place
3c8dee0707
Merge pull request #41864 from garethgreenaway/2017_7_beacon_hotfix
...
Quick fix for beacons in 2017.7
2017-06-20 18:39:11 -05:00
Mike Place
955d5b710d
Merge pull request #41865 from twangboy/fix_coverage_check
...
Don't run coverage if not admin
2017-06-20 18:38:54 -05:00
twangboy
a2c4ff0ebc
Don't run coverage it not admin
2017-06-20 15:32:55 -06:00
Mike Place
eb0e40a867
Merge pull request #41014 from cachedout/issue_40937
...
Ensure strings in decorator
2017-06-20 15:36:00 -05:00
Gareth J. Greenaway
94ce954441
Reverting a change in 2017.7 that causes the beacons are expecting dictionaries as there configuration to no longer function. Fixing this for the nitrogen release, then addressing the original issue for Oxygen
2017-06-20 13:35:00 -07:00
Mike Place
60ea0ba85b
Lint fix
2017-06-20 14:13:25 -06:00
Mike Place
4f8714037d
Merge pull request #41851 from DSRCorporation/bugs/py3_tests_nitrogen
...
Minor Py3 related tests fixes.
2017-06-20 15:11:43 -05:00