MCPcopy Index your code
hub / github.com/kubernetes-client/python / manifest_with_command

Function manifest_with_command

kubernetes/e2e_test/test_client.py:39–57  ·  view source on GitHub ↗
(name, command)

Source from the content-addressed store, hash-verified

37
38
39def manifest_with_command(name, command):
40 return {
41 'apiVersion': 'v1',
42 'kind': 'Pod',
43 'metadata': {
44 'name': name
45 },
46 'spec': {
47 'containers': [{
48 'image': 'busybox',
49 'name': 'sleep',
50 "args": [
51 "/bin/sh",
52 "-c",
53 command
54 ]
55 }]
56 }
57 }
58
59
60class TestClient(unittest.TestCase):

Callers 3

test_pod_apisMethod · 0.85
test_exit_codeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected