generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 50
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: generate simple generic helm chart #665
Merged
Merged
Changes from 31 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
b456f8c
feat: generate helm chart
csviri ed524f8
feat: generate simple generic helm chart
csviri 556207a
wip
csviri e88a95b
wip
csviri a3ce311
working basic helm chart
csviri 3dea2d3
improvemets on sample chart
csviri 0ac61d7
generate the base helm templates
csviri c9914e3
helm listener fix, values model
csviri d63d239
progress with values generation
csviri 20bcbd9
reconciler related data generation skeleton
csviri a232c64
simple generation of reconilers finished
csviri 259ae34
add crd-s to the helm chart
csviri 6dfcbe4
config options
csviri 87c2dab
improvements, mvp implementation works
csviri 9b1fdba
refactoring, partially generating templates explicitly
csviri 82cc4ff
generating role bindings for reconcilers primary
csviri fd741ed
fix: using qute for templating
csviri 313b7fe
passing namespace environment variable
csviri c22566b
roles for dependent resources
csviri bfa9ffc
reusing generated Deployment
csviri 2601ab5
helm test progress
csviri 86bd36b
started e2e test with exposed app
csviri 049106a
e2e progress
csviri 0bc75a0
generate per controller namespace settings
csviri 6970d0f
code improvements
csviri 7ced034
rebase on main
csviri 23b264f
e2e test improvements
csviri 1afdad4
improvements
csviri 2bce8a8
Merge branch 'main' into helm-chart
csviri 9453591
remove unnecessary property
csviri 11c6423
comment explaining class
csviri c2744a2
refactor: generify
metacosm 69c4d86
remove image
csviri eff703f
format
csviri ff1128a
fixes
csviri c7183e5
Merge branch 'main' into helm-chart
csviri 427b885
simple test
csviri ad21612
refactor: improve file management
metacosm 4ce5e51
refactor: add utility method to deal with generated resources
metacosm 1b10041
refactor: unify path management
metacosm 555dabd
refactor: minor
metacosm e388a1b
docs: make comment more explicit
metacosm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../src/main/java/io/quarkiverse/operatorsdk/deployment/helm/DisableDefaultHelmListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.quarkiverse.operatorsdk.deployment.helm; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import io.dekorate.WithSession; | ||
import io.dekorate.kubernetes.config.BaseConfigFluent; | ||
import io.dekorate.kubernetes.config.Configurator; | ||
|
||
/** | ||
* Used to disable default helm chart generator | ||
*/ | ||
public class DisableDefaultHelmListener extends Configurator<BaseConfigFluent<?>> implements WithSession { | ||
@Override | ||
public void visit(BaseConfigFluent<?> baseConfigFluent) { | ||
Map<String, Object> helmConfig = new HashMap<>(); | ||
helmConfig.put("enabled", "false"); | ||
|
||
Map<String, Object> config = new HashMap<>(); | ||
config.put("helm", helmConfig); | ||
|
||
WithSession.super.getSession().addPropertyConfiguration(config); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of this class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comment. it is to disable default helm generator