helm_upgrade_logs 0.3.6 → 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: 247dda6bd1adad5e39f8db15238c062501ff900e8edfadeb4f96a1effe42c271
4
- data.tar.gz: 368b57246a36bd66e041ee9a7ef03fd5cbe9f7b4355123c242b3d9c103f37bda
3
+ metadata.gz: ff6c87e111837be7e9f2b92df25d6ead153cd3a8ccb277a72b8977eca166b94d
4
+ data.tar.gz: 7d4551bf7d2edc18a86406c2ff331df08cd8812c63fa7b87eceb99017e3e8b30
5
5
  SHA512:
6
- metadata.gz: c061ab175150d33bce7d870e092b5b71b67b4a46656df275c94f61ceb6f262605e134c4915a6ab16ee46ed08d53b3bc3fd1d5a7170619b6e1688e272161ec515
7
- data.tar.gz: e3e1092365b67c636d264f929665b52be6b337c7771e2d6f00884d1090b24f0a102bd5204af25838d386a8715367361d7d8f22089517535ea5a459c6c6797a70
6
+ metadata.gz: 3f64bf311fad025cde524b78eaf6340db3d61e5fe69fb3dedf6bed64362ed9071c43eb40a721ad74d5a21e517fcc1b69a33398bad9eb4df57f51818cc47a8d73
7
+ data.tar.gz: f080b4c121a246f8fc5856fdfdc5a917aac5aae6ec430e301d6157e5307defa0c092c335312463e8723878afd0a98a8b4dd8b3a8a985732454b5dcc80a7a34b3
@@ -1,74 +1,74 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: HelmUpgradeLogs
9
-
10
- on:
11
- push:
12
- branches: [ main ]
13
- pull_request:
14
- branches: [ main ]
15
-
16
- permissions:
17
- contents: read
18
-
19
- jobs:
20
- demo_install_run_gem:
21
- runs-on: ubuntu-latest
22
- strategy:
23
- matrix:
24
- ruby-version: ['3.0']
25
- steps:
26
- - uses: actions/checkout@v3
27
- - name: Set up Ruby
28
- uses: ruby/setup-ruby@v1
29
- with:
30
- ruby-version: ${{ matrix.ruby-version }}
31
- - name: Start KIND cluster
32
- run: bash -f bin/start_kind.sh
33
- - name: Install gem
34
- run: gem install helm_upgrade_logs
35
- - name: Add bitnami repo
36
- run: helm repo add bitnami https://charts.bitnami.com/bitnami
37
- - name: Helm install debugging logs
38
- run: helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP
39
-
40
- unit_test:
41
- runs-on: ubuntu-latest
42
- strategy:
43
- matrix:
44
- ruby-version: ['3.0']
45
- steps:
46
- - uses: actions/checkout@v3
47
- - name: Set up Ruby
48
- uses: ruby/setup-ruby@v1
49
- with:
50
- ruby-version: ${{ matrix.ruby-version }}
51
- bundler-cache: true
52
- - name: Run tests
53
- run: bundle exec rake
54
-
55
- test_exe:
56
- runs-on: ubuntu-latest
57
- strategy:
58
- matrix:
59
- ruby-version: ['3.0']
60
-
61
- steps:
62
- - uses: actions/checkout@v3
63
- - name: Use Debug
64
- run: export helm_upgrade_logs_debug=true
65
- - name: Start KIND cluster
66
- run: bash -f bin/start_kind.sh
67
- - name: Add bitnami repo
68
- run: helm repo add bitnami https://charts.bitnami.com/bitnami
69
- - name: Install bitnami
70
- run: ./exe/helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP --set replicaCount=2
71
- - name: Test bitnami
72
- run: ./exe/helm_test_logs nginx
73
- - name: Install Redis
74
- run: ./exe/helm_upgrade_logs --install redis bitnami/redis --set auth.enabled=false --version 15.7.2 --set replica.replicaCount=1 --wait
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: HelmUpgradeLogs
9
+
10
+ on:
11
+ push:
12
+ branches: [ main ]
13
+ pull_request:
14
+ branches: [ main ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ demo_install_run_gem:
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ ruby-version: ['3.0']
25
+ steps:
26
+ - uses: actions/checkout@v3
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby-version }}
31
+ - name: Start KIND cluster
32
+ run: bash -f bin/start_kind.sh
33
+ - name: Install gem
34
+ run: gem install helm_upgrade_logs
35
+ - name: Add bitnami repo
36
+ run: helm repo add bitnami https://charts.bitnami.com/bitnami
37
+ - name: Helm install debugging logs
38
+ run: helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP
39
+
40
+ unit_test:
41
+ runs-on: ubuntu-latest
42
+ strategy:
43
+ matrix:
44
+ ruby-version: ['3.0']
45
+ steps:
46
+ - uses: actions/checkout@v3
47
+ - name: Set up Ruby
48
+ uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: ${{ matrix.ruby-version }}
51
+ bundler-cache: true
52
+ - name: Run tests
53
+ run: bundle exec rake
54
+
55
+ test_exe:
56
+ runs-on: ubuntu-latest
57
+ strategy:
58
+ matrix:
59
+ ruby-version: ['3.0']
60
+
61
+ steps:
62
+ - uses: actions/checkout@v3
63
+ - name: Use Debug
64
+ run: export helm_upgrade_logs_debug=true
65
+ - name: Start KIND cluster
66
+ run: bash -f bin/start_kind.sh
67
+ - name: Add bitnami repo
68
+ run: helm repo add bitnami https://charts.bitnami.com/bitnami
69
+ - name: Install bitnami
70
+ run: ./exe/helm_upgrade_logs --install nginx bitnami/nginx --wait --debug --set service.type=ClusterIP --set replicaCount=2
71
+ - name: Test bitnami
72
+ run: ./exe/helm_test_logs nginx
73
+ - name: Install Redis
74
+ run: ./exe/helm_upgrade_logs --install redis bitnami/redis --set auth.enabled=false --version 15.7.2 --set replica.replicaCount=1 --wait
data/.gitignore CHANGED
@@ -1,13 +1,13 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
- Gemfile.lock
13
- /.idea/
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ Gemfile.lock
13
+ /.idea/
data/.gitlab-ci.yml CHANGED
@@ -1,9 +1,9 @@
1
- image: ruby:3.0.0
2
-
3
- before_script:
4
- - gem install bundler -v 2.2.11
5
- - bundle install
6
-
7
- example_job:
8
- script:
9
- - bundle exec rake
1
+ image: ruby:3.0.0
2
+
3
+ before_script:
4
+ - gem install bundler -v 2.2.11
5
+ - bundle install
6
+
7
+ example_job:
8
+ script:
9
+ - bundle exec rake
@@ -1,33 +1,33 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="ModuleRunConfigurationManager">
4
- <shared />
5
- </component>
6
- <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$">
8
- <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
- <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
- <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
- </content>
12
- <orderEntry type="jdk" jdkName="RVM: ruby-3.0.0" jdkType="RUBY_SDK" />
13
- <orderEntry type="sourceFolder" forTests="false" />
14
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-3.0.0) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.11, RVM: ruby-3.0.0) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, RVM: ruby-3.0.0) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.21.0, RVM: ruby-3.0.0) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="parser (v3.1.0.0, RVM: ruby-3.0.0) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.0.0) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-3.0.0) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.2.0, RVM: ruby-3.0.0) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-3.0.0) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.10.0, RVM: ruby-3.0.0) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.10.1, RVM: ruby-3.0.0) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.1, RVM: ruby-3.0.0) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, RVM: ruby-3.0.0) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.10.3, RVM: ruby-3.0.0) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.24.1, RVM: ruby-3.0.0) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.15.1, RVM: ruby-3.0.0) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-3.0.0) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, RVM: ruby-3.0.0) [gem]" level="application" />
32
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="RVM: ruby-3.0.0" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-3.0.0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.11, RVM: ruby-3.0.0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, RVM: ruby-3.0.0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.21.0, RVM: ruby-3.0.0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.1.0.0, RVM: ruby-3.0.0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.0.0) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-3.0.0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.2.0, RVM: ruby-3.0.0) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-3.0.0) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.10.0, RVM: ruby-3.0.0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.10.1, RVM: ruby-3.0.0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.1, RVM: ruby-3.0.0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, RVM: ruby-3.0.0) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.10.3, RVM: ruby-3.0.0) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.24.1, RVM: ruby-3.0.0) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.15.1, RVM: ruby-3.0.0) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-3.0.0) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, RVM: ruby-3.0.0) [gem]" level="application" />
32
+ </component>
33
33
  </module>
data/.idea/misc.xml CHANGED
@@ -1,7 +1,7 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="ES6" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
7
7
  </project>
data/.idea/modules.xml CHANGED
@@ -1,8 +1,8 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/helm_upgrade_logs.iml" filepath="$PROJECT_DIR$/.idea/helm_upgrade_logs.iml" />
6
- </modules>
7
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/helm_upgrade_logs.iml" filepath="$PROJECT_DIR$/.idea/helm_upgrade_logs.iml" />
6
+ </modules>
7
+ </component>
8
8
  </project>
data/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
6
  </project>
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml CHANGED
@@ -1,13 +1,13 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md CHANGED
@@ -1,71 +1,75 @@
1
- ## [0.3.6]
2
-
3
- - Handle parsing multiple error messages in `helm_upgrade_logs_error_msg` that are comma separated
4
-
5
- ## [0.3.5]
6
-
7
- - Fix error where multiple processes being spawned to log the same pod
8
-
9
- ## [0.3.4]
10
-
11
- - Only log to folder if `helm_upgrade_logs_error_msg` env variable set
12
-
13
- ## [0.3.3]
14
-
15
- - Run force kill on processes to ensure they stop
16
-
17
- ## [0.3.2]
18
-
19
- - ADO error and normal error don't need to both be displayed
20
-
21
- ## [0.3.1]
22
-
23
- - Fix LOG folder parsed to check error message
24
-
25
- ## [0.3.0]
26
-
27
- - Log output to a file in a folder `helm_upgrade_logs` as well as STDOUT
28
- - If `helm_upgrade_logs_error_msg` is set then rethrow error after install finished. For AzureDevOps, setting
29
- `helm_upgrade_logs_ado_error` to `true` will raise an error in the build
30
-
31
- ## [0.2.6]
32
-
33
- - Don't log pods existing before an upgrade
34
-
35
- ## [0.2.5] 2022-04-21
36
-
37
- - Return helm status code as script's status code
38
-
39
- ## [0.2.4] 2022-04-21
40
-
41
- - Handle `n`, `--namespace` from helm command
42
- - Exit if there is failure on helm command while trying to get logs
43
-
44
- ## [0.2.3] - 2022-04-20
45
-
46
- - Configuration on initial wait for pods logs and subsequent wait limits
47
-
48
- ## [0.2.2] - 2022-04-20
49
-
50
- - Wait for logs on each pod having a process for logging each pod
51
-
52
- ## [0.2.0] - 2022-04-20
53
-
54
- - Monitoring pods don't filter managed by helm as some pods don't have that with selectorLabels
55
-
56
- ## [0.1.7] - 2022-04-20
57
-
58
- - Monitor helm upgrade command and periodically reload getting logs when new pods appear
59
-
60
- ## [0.1.6] - 2022-04-17
61
-
62
- - Add `helm_test_logs` exe to check logs during `helm test`
63
- - Add `pod-running-timeout` of 300s to try and pick up logs that might take a while to appear
64
-
65
- ## [0.1.5] - 2022-04-16
66
-
67
- - Only look at logs for release name
68
-
69
- ## [0.1.4] - 2022-04-16
70
-
71
- - Wait for pods with logs to start before watching
1
+ ## [0.4.0]
2
+
3
+ - Change to handle params before release name fixing #1
4
+
5
+ ## [0.3.6]
6
+
7
+ - Handle parsing multiple error messages in `helm_upgrade_logs_error_msg` that are comma separated
8
+
9
+ ## [0.3.5]
10
+
11
+ - Fix error where multiple processes being spawned to log the same pod
12
+
13
+ ## [0.3.4]
14
+
15
+ - Only log to folder if `helm_upgrade_logs_error_msg` env variable set
16
+
17
+ ## [0.3.3]
18
+
19
+ - Run force kill on processes to ensure they stop
20
+
21
+ ## [0.3.2]
22
+
23
+ - ADO error and normal error don't need to both be displayed
24
+
25
+ ## [0.3.1]
26
+
27
+ - Fix LOG folder parsed to check error message
28
+
29
+ ## [0.3.0]
30
+
31
+ - Log output to a file in a folder `helm_upgrade_logs` as well as STDOUT
32
+ - If `helm_upgrade_logs_error_msg` is set then rethrow error after install finished. For AzureDevOps, setting
33
+ `helm_upgrade_logs_ado_error` to `true` will raise an error in the build
34
+
35
+ ## [0.2.6]
36
+
37
+ - Don't log pods existing before an upgrade
38
+
39
+ ## [0.2.5] 2022-04-21
40
+
41
+ - Return helm status code as script's status code
42
+
43
+ ## [0.2.4] 2022-04-21
44
+
45
+ - Handle `n`, `--namespace` from helm command
46
+ - Exit if there is failure on helm command while trying to get logs
47
+
48
+ ## [0.2.3] - 2022-04-20
49
+
50
+ - Configuration on initial wait for pods logs and subsequent wait limits
51
+
52
+ ## [0.2.2] - 2022-04-20
53
+
54
+ - Wait for logs on each pod having a process for logging each pod
55
+
56
+ ## [0.2.0] - 2022-04-20
57
+
58
+ - Monitoring pods don't filter managed by helm as some pods don't have that with selectorLabels
59
+
60
+ ## [0.1.7] - 2022-04-20
61
+
62
+ - Monitor helm upgrade command and periodically reload getting logs when new pods appear
63
+
64
+ ## [0.1.6] - 2022-04-17
65
+
66
+ - Add `helm_test_logs` exe to check logs during `helm test`
67
+ - Add `pod-running-timeout` of 300s to try and pick up logs that might take a while to appear
68
+
69
+ ## [0.1.5] - 2022-04-16
70
+
71
+ - Only look at logs for release name
72
+
73
+ ## [0.1.4] - 2022-04-16
74
+
75
+ - Wait for pods with logs to start before watching