Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(operator): polish KeptnConfig and use Env Var for initial configuration #1097

Merged
merged 12 commits into from
Mar 27, 2023

Conversation

thisthat
Copy link
Member

@thisthat thisthat commented Mar 23, 2023

This PR

  • removes default values from Env Var and moves them into a KeptnConfig

Part of #1095

@netlify
Copy link

netlify bot commented Mar 23, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 432075b
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/641d768828b34d0008b7acba
😎 Deploy Preview https://deploy-preview-1097--keptn-lifecycle-toolkit.netlify.app/docs/crd-ref/options/v1alpha1
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@thisthat thisthat changed the title remove env var feat(operator): use KeptnConfig for a default configuration instead of Env Var Mar 23, 2023
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
@thisthat thisthat force-pushed the chore/1095/remove-env-var branch from 1ba03a9 to fb5951a Compare March 23, 2023 11:47
@thisthat thisthat marked this pull request as ready for review March 23, 2023 11:47
Makefile Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #1097 (3aa87f4) into main (ad408fd) will increase coverage by 0.37%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1097      +/-   ##
==========================================
+ Coverage   58.91%   59.29%   +0.37%     
==========================================
  Files         126      126              
  Lines       10007    10072      +65     
==========================================
+ Hits         5896     5972      +76     
+ Misses       3893     3881      -12     
- Partials      218      219       +1     
Impacted Files Coverage Δ
...ator/controllers/options/keptnconfig_controller.go 83.33% <100.00%> (+0.83%) ⬆️

... and 4 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 64.15% <ø> (ø)
component-tests 59.75% <ø> (+0.14%) ⬆️
lifecycle-operator 78.52% <100.00%> (+0.11%) ⬆️
metrics-operator 77.35% <ø> (ø)
scheduler 21.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Signed-off-by: Giovanni Liva <[email protected]>
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 23, 2023
Signed-off-by: Giovanni Liva <[email protected]>
Signed-off-by: Giovanni Liva <[email protected]>
@thisthat thisthat requested a review from StackScribe as a code owner March 24, 2023 10:08
Signed-off-by: Giovanni Liva <[email protected]>
@thisthat thisthat changed the title feat(operator): use KeptnConfig for a default configuration instead of Env Var feat(operator): polish KeptnConfigand use Env Var for initial configuration Mar 24, 2023
Signed-off-by: Giovanni Liva <[email protected]>
@github-actions github-actions bot removed the helm label Mar 24, 2023
@sonarcloud
Copy link

sonarcloud bot commented Mar 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@thisthat thisthat changed the title feat(operator): polish KeptnConfigand use Env Var for initial configuration feat(operator): polish KeptnConfig and use Env Var for initial configuration Mar 27, 2023
@thisthat thisthat merged commit 559acee into keptn:main Mar 27, 2023
@thisthat thisthat deleted the chore/1095/remove-env-var branch March 27, 2023 06:52
@keptn-bot keptn-bot mentioned this pull request Mar 27, 2023
OTelCollectorUrl string `json:"OTelCollectorUrl,omitempty"`
// KeptnAppCreationRequestTimeout is used to set the interval in which automatic app discovery
// searches for workload to put into the same auto-generated KeptnApp
// +kubebuilder:default:=30
KeptnAppCreationRequestTimeout uint `json:"keptnAppCreationRequestTimeout,omitempty"`
// +optional
KeptnAppCreationRequestTimeoutSeconds uint `json:"keptnAppCreationRequestTimeoutSeconds,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls also change the docs string when you change the variable name here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha: #1126

aepfli pushed a commit to aepfli/lifecycle-toolkit that referenced this pull request Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants