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

Remove xml configuration options #34

Conversation

torstenwalter
Copy link
Member

Part-of: #10

Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
I kept the values as we whould implement this via JCasC

Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
@torstenwalter torstenwalter force-pushed the remove-xml-configuration-options branch 2 times, most recently from 9931c77 to d5dc231 Compare September 4, 2020 20:32
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
@torstenwalter
Copy link
Member Author

@wmcdona89 Would be great if you could have a look at it. Appreciate your feedback.

@@ -34,25 +32,17 @@ The following tables list the configurable parameters of the Jenkins chart and t
| Parameter | Description | Default |
| --------------------------------- | ------------------------------------ | ----------------------------------------- |
| `master.initScripts` | List of Jenkins init scripts | `[]` |
| `master.overwriteConfig` | Replace init scripts and config w/ ConfigMap on boot | `false` |
| `master.credentialsXmlSecret` | Kubernetes secret that contains a 'credentials.xml' file | Not set |
| `master.secretsFilesSecret` | Kubernetes secret that contains 'secrets' files | Not set |
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to keep this. it's used, for example, to set hudson.util.Secret and master.key from a Kubernetes Secret so credentials are portable between instances. this isn't supported by JCasC yet...see 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
Contributor

Choose a reason for hiding this comment

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

kubernetes-credentials-provider-plugin is great for loading top-level credentials from k8s secrets...and it appears it will support folder-level credentials once this PR is merged...but I don't expect it will ever support loading the encryption keys

Copy link
Member Author

Choose a reason for hiding this comment

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

Why do you want to load the encryption key?

Copy link
Contributor

Choose a reason for hiding this comment

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

blue/green deployments require encrypted folder-level credentials to be portable

I'm realizing I won't need to load the encryption key once kubernetes-credentials-provider-plugin supports folder-level credentials...but it's needed in the meantime to manage encrypted folder-level credentials via the Job DSL plugin

| Parameter | Description | Default |
| --------------------------------- | ------------------------------------ | ----------------------------------------- |
| `master.customConfigMap` | Deprecated: Use a custom ConfigMap | `false` |
| `master.additionalConfig` | Deprecated: Add additional config files | `{}` |
Copy link
Contributor

Choose a reason for hiding this comment

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

any idea why master.additionalConfig was deprecated? it's definitely useful for getting one-off configuration onto the server which can be processed by an init script. I actually use it to work around a Job DSL plugin issue regarding string credentials. I'm just discovering this issue has a workaround so perhaps I'll no longer need master.additionalConfig...but I wouldn't be surprised if others are using it for similar workarounds.

Copy link
Member Author

@torstenwalter torstenwalter Sep 6, 2020

Choose a reason for hiding this comment

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

Could you explain how you are using it? Could you mount a volume instead?

If we can then it would be great to get rid of copying files and having conditionals to either do it only once or to overwrite existing files.

Copy link
Contributor

@wmcdona89 wmcdona89 Sep 8, 2020

Choose a reason for hiding this comment

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

I like having the configuration in my values file vs managing it out of band. since my configuration is related to folder-level credentials, I'd now rather use the Job DSL plugin workaround or kubernetes-credentials-provider-plugin once it adds support for folder-level credentials.

since this field has been deprecated since v0.29.0 then it's definitely due to be removed...and hopefully any other use cases for it now have better options

Copy link
Member Author

Choose a reason for hiding this comment

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

Good pointer. to the PR of the credentials-provider-plugin.

@torstenwalter
Copy link
Member Author

Are there any other configuration options which should be removed?

@stale
Copy link

stale bot commented Oct 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 10, 2020
@torstenwalter
Copy link
Member Author

closing this as it's part of the jenkins-3-0-0 branch

@torstenwalter torstenwalter deleted the remove-xml-configuration-options branch October 10, 2020 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants