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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd2eb5ffc4fa78e98345094edb1ef5b2387ddb9a24a29ebc3e2ff2528650b421
4
- data.tar.gz: e8236937cad537cedfee507056ec5f0dde8afaaad7a7ac915a634242369f95c1
3
+ metadata.gz: be4c6befb99f94a193dc2b9233166b5f8d56d3ddb1ee586f89a6039b85b5c605
4
+ data.tar.gz: ce5446e758e6901a877fdec1cf5c119a41f30c4e96681d0f3475a8f789369c53
5
5
  SHA512:
6
- metadata.gz: dd28fb5305ffba11983dd4c8240d35f7498be40c0867c61d0e31a97c70b190e3e3af5c7932e39b9cf0efda19085b4ae5faddb49381e27c026e3570a58b676d96
7
- data.tar.gz: f92dda4e050e1c934f988a5853ff59e0096d3b51cb85031d1dfa3e1e98ceab226770f4a2ac7b8263ed0b4cff8c19ea2208274b03e936d424591ceff3a5505c6a
6
+ metadata.gz: de419e4e0c79f0eebf5620f3d7b4dd0d63d2f5bd7a3bed4b9374780854930e12fc6c5e61046d814080d21fb95f425fa645330ea2090172f43d519bd3ba634fbd
7
+ data.tar.gz: 63a162949070dd7d9453c53cb3df796cc52aa9aab1a3f91819fde439cebb731e774fb91f3502bb8deae5899d49f7ed049ccb252476f47bbc681aae3c5c957317
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuberun (0.3.3)
4
+ kuberun (0.4.0)
5
5
  pastel (~> 0.8.0)
6
6
  thor (~> 1.2.1)
7
7
  tty-command (~> 0.10.1)
@@ -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'] = {
@@ -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: true, desc: 'Should auth check be performed?' },
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kuberun
4
- VERSION = '0.3.3'
4
+ VERSION = '0.4.0'
5
5
  end
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.3.3
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: 2022-10-04 00:00:00.000000000 Z
11
+ date: 2023-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel