File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 11
11
check-changes :
12
12
runs-on : ubuntu-latest
13
13
outputs :
14
- changes : ${{ steps.filter.outputs.changes }}
14
+ changes : ${{ steps.filter.outputs.config }}
15
+ doc_changes : ${{ steps.filter.outputs.doc }}
16
+ compose_changes : ${{ steps.filter.outputs.compose }}
17
+ hack_changes : ${{ steps.filter.outputs.hack }}
18
+ manifest_changes : ${{ steps.filter.outputs.manifest }}
15
19
steps :
16
20
- name : Checkout source
17
21
uses : actions/checkout@v4
21
25
id : filter
22
26
with :
23
27
filters : |
24
- changes :
28
+ config :
25
29
- 'config/**/*.go'
30
+ doc:
31
+ - 'docs/configuration/configuration.md'
32
+ compose:
33
+ - 'compose/dev/kepler-dev/etc/kepler/config.yaml'
34
+ hack:
35
+ - 'hack/config.yaml'
36
+ manifest:
37
+ - 'manifests/k8s/configmap.yaml'
26
38
27
39
comment-on-pr :
28
40
needs : check-changes
33
45
uses : thollander/actions-comment-pull-request@v3
34
46
with :
35
47
message : |
36
- :warning: Config changes detected in this PR.
37
48
Please make sure that the config changes are updated in the following places as part of this PR:
38
- - [ ] docs/configuration/configuration.md
39
- - [ ] compose/dev/kepler-dev/etc/kepler/config.yaml
40
- - [ ] hack/config.yaml
41
- - [ ] manifests/k8s/configmap.yaml
49
+ ${{ needs.check-changes.outputs.doc_changes != 'true' && '- docs/configuration/configuration.md' || '' }}
50
+ ${{ needs.check-changes.outputs.compose_changes != 'true' && '- compose/dev/kepler-dev/etc/kepler/config.yaml' || '' }}
51
+ ${{ needs.check-changes.outputs.hack_changes != 'true' && '- hack/config.yaml' || '' }}
52
+ ${{ needs.check-changes.outputs.manifests_changes != 'true' && '- manifests/k8s/configmap.yaml' || '' }}
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import (
17
17
"k8s.io/utils/ptr"
18
18
)
19
19
20
- // Config represents the complete application configuration
21
20
type (
22
21
Log struct {
23
22
Level string `yaml:"level"`
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ Kepler supports configuration through both command-line flags and a configuratio
6
6
7
7
Kepler supports two primary methods for configuration:
8
8
9
- 1 . ** Command-line flags** : For quick adjustments and one-time settings
10
- 2 . ** Configuration file** : For persistent and comprehensive configuration
9
+ 1 . ** Configuration file** : For persistent and comprehensive configuration
11
10
12
11
> ⚡ ** Tip:** Command-line flags take precedence over configuration file settings when both are specified.
13
12
You can’t perform that action at this time.
0 commit comments