helm_upgrade_logs 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0984598273cbd41ca2d6fa3b727f1a5bcb723e771c0fa7ed8acf1a1e6ba0ab5b'
4
- data.tar.gz: f44847d139474e405d525500cfbd1fe048d36c60d7452be9c72578c8be5251ce
3
+ metadata.gz: 247dda6bd1adad5e39f8db15238c062501ff900e8edfadeb4f96a1effe42c271
4
+ data.tar.gz: 368b57246a36bd66e041ee9a7ef03fd5cbe9f7b4355123c242b3d9c103f37bda
5
5
  SHA512:
6
- metadata.gz: 31c657f1b1c17b07772ea106ee40f7d9dde3b1a272d3d34477c40257ebf7cf013ffe406eb8ff121e9df631f616d7292e5783d00fa2e5bdfadd1cc6a0d8d1f427
7
- data.tar.gz: bf1ad1e99ff2d571094d1abf0ac8c2b822a3f63452083b5fa7ecc366454d4f1ccfb732b7a9d1cb93c672f06a27c49f6a35c2a246b6c81420a9cfbec4917bf311
6
+ metadata.gz: c061ab175150d33bce7d870e092b5b71b67b4a46656df275c94f61ceb6f262605e134c4915a6ab16ee46ed08d53b3bc3fd1d5a7170619b6e1688e272161ec515
7
+ data.tar.gz: e3e1092365b67c636d264f929665b52be6b337c7771e2d6f00884d1090b24f0a102bd5204af25838d386a8715367361d7d8f22089517535ea5a459c6c6797a70
@@ -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,67 +1,71 @@
1
- ## [0.3.5]
2
-
3
- - Fix error where multiple processes being spawned to log the same pod
4
-
5
- ## [0.3.4]
6
-
7
- - Only log to folder if `helm_upgrade_logs_error_msg` env variable set
8
-
9
- ## [0.3.3]
10
-
11
- - Run force kill on processes to ensure they stop
12
-
13
- ## [0.3.2]
14
-
15
- - ADO error and normal error don't need to both be displayed
16
-
17
- ## [0.3.1]
18
-
19
- - Fix LOG folder parsed to check error message
20
-
21
- ## [0.3.0]
22
-
23
- - Log output to a file in a folder `helm_upgrade_logs` as well as STDOUT
24
- - If `helm_upgrade_logs_error_msg` is set then rethrow error after install finished. For AzureDevOps, setting
25
- `helm_upgrade_logs_ado_error` to `true` will raise an error in the build
26
-
27
- ## [0.2.6]
28
-
29
- - Don't log pods existing before an upgrade
30
-
31
- ## [0.2.5] 2022-04-21
32
-
33
- - Return helm status code as script's status code
34
-
35
- ## [0.2.4] 2022-04-21
36
-
37
- - Handle `n`, `--namespace` from helm command
38
- - Exit if there is failure on helm command while trying to get logs
39
-
40
- ## [0.2.3] - 2022-04-20
41
-
42
- - Configuration on initial wait for pods logs and subsequent wait limits
43
-
44
- ## [0.2.2] - 2022-04-20
45
-
46
- - Wait for logs on each pod having a process for logging each pod
47
-
48
- ## [0.2.0] - 2022-04-20
49
-
50
- - Monitoring pods don't filter managed by helm as some pods don't have that with selectorLabels
51
-
52
- ## [0.1.7] - 2022-04-20
53
-
54
- - Monitor helm upgrade command and periodically reload getting logs when new pods appear
55
-
56
- ## [0.1.6] - 2022-04-17
57
-
58
- - Add `helm_test_logs` exe to check logs during `helm test`
59
- - Add `pod-running-timeout` of 300s to try and pick up logs that might take a while to appear
60
-
61
- ## [0.1.5] - 2022-04-16
62
-
63
- - Only look at logs for release name
64
-
65
- ## [0.1.4] - 2022-04-16
66
-
67
- - Wait for pods with logs to start before watching
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