kuberun 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/kuberun/commands/run_pod.rb +7 -0
- data/lib/kuberun/kubectl.rb +1 -1
- data/lib/kuberun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be4c6befb99f94a193dc2b9233166b5f8d56d3ddb1ee586f89a6039b85b5c605
|
4
|
+
data.tar.gz: ce5446e758e6901a877fdec1cf5c119a41f30c4e96681d0f3475a8f789369c53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de419e4e0c79f0eebf5620f3d7b4dd0d63d2f5bd7a3bed4b9374780854930e12fc6c5e61046d814080d21fb95f425fa645330ea2090172f43d519bd3ba634fbd
|
7
|
+
data.tar.gz: 63a162949070dd7d9453c53cb3df796cc52aa9aab1a3f91819fde439cebb731e774fb91f3502bb8deae5899d49f7ed049ccb252476f47bbc681aae3c5c957317
|
data/Gemfile.lock
CHANGED
@@ -85,12 +85,19 @@ module Kuberun
|
|
85
85
|
}
|
86
86
|
|
87
87
|
pod_template['spec']['containers'].each do |container|
|
88
|
+
if container['securityContext']
|
89
|
+
%w[readOnlyRootFilesystem runAsNonRoot runAsUser runAsGroup].each do |field|
|
90
|
+
container['securityContext'].delete(field)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
88
94
|
container.delete('livenessProbe')
|
89
95
|
container.delete('readinessProbe')
|
90
96
|
container['command'] = %w[/bin/sh -c --]
|
91
97
|
container['args'] = ['while true; do sleep 1000; done']
|
92
98
|
end
|
93
99
|
|
100
|
+
pod_template['spec'].delete('securityContext')
|
94
101
|
pod_template['spec'].delete('priority')
|
95
102
|
pod_template['spec']['priorityClassName'] = 'system-cluster-critical'
|
96
103
|
pod_template['spec']['affinity'] = {
|
data/lib/kuberun/kubectl.rb
CHANGED
@@ -25,7 +25,7 @@ class Kubectl
|
|
25
25
|
'cluster-command': { type: 'string', default: '/bin/bash', desc: 'Command to run on cluster' },
|
26
26
|
'use-first-pod': { type: 'boolean', default: false, desc: 'Should first existing pod be used automatically?' },
|
27
27
|
'cleanup-pod': { type: 'boolean', default: false, desc: 'Should pod be removed after finishing?' },
|
28
|
-
'perform-auth-check': { type: 'boolean', default:
|
28
|
+
'perform-auth-check': { type: 'boolean', default: false, desc: 'Should auth check be performed?' },
|
29
29
|
'pty': { type: 'boolean', default: false, desc: 'Should PTY be used?' },
|
30
30
|
}.freeze
|
31
31
|
OPTIONS = KUBECTL_OPTIONS.merge(SCRIPT_OPTIONS).freeze
|
data/lib/kuberun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuberun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kruczjak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pastel
|