-
Notifications
You must be signed in to change notification settings - Fork 127
SPL-290976: KVService controller flow for deployment #1683
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
base: feature/epic_SPL-290563
Are you sure you want to change the base?
Conversation
- adding controller flow
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
I have read the Code of Conduct and I hereby accept the Terms |
| spec: | ||
| description: KVServiceSpec defines the desired state of KVService | ||
| properties: | ||
| foo: |
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.
seems we need to re-generate from the kvservice_types.go?
| return service | ||
| } | ||
|
|
||
| // getKVServiceStatefulSet returns a Kubernetes StatefulSet object for Splunk Enterprise standalone instances. |
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.
nit: StatefulSet -> deployment
| "sigs.k8s.io/controller-runtime/pkg/reconcile" | ||
| ) | ||
|
|
||
| // ApplyKVService reconciles the StatefulSet for N standalone instances of Splunk Enterprise. |
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.
nit: comment needs to be fixed
| } | ||
|
|
||
| // validateKVServiceSpec checks validity and makes default updates to a KVServiceSpec, and returns error if something is wrong. | ||
| func validateKVServiceSpec(ctx context.Context, c splcommon.ControllerClient, cr *enterpriseApi.KVService) error { |
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.
wondering is there anything we need to change in the createKVServiceCR function to pass this validation function?
Description
What does this PR have in it?
Key Changes
Highlight the updates in specific files
Testing and Verification
KVService deployment comes up, but pod fails at this time, which is expected, as we need to bring in other supporting changes like the kvservice config in single tenant mode, and also needs db connectivity for the probes to succeed:
Related Issues
Jira tickets, GitHub issues, Support tickets...
PR Checklist