-
Notifications
You must be signed in to change notification settings - Fork 123
CSPL-540: Added utilities and test for s3 indexes #240
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
Conversation
pdhanoya-splunk
commented
Jan 26, 2021
- Added utilities need for S3 Index test cases
- Created a new test suite for Index Management
- Created S3 utilities to get object from S3 and verify object exists on S3
2b504f8
to
145c69e
Compare
if err != nil { | ||
logf.Log.Error(err, "Failed to create s3 session") | ||
} | ||
svc := s3.New(session.Must(sess, err)) |
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.
Nice! No issue here just wanted to tag @kumarajeet @vebken-splunk since this is what we could use for App framework.
This PR lowered our coverage in coveralls?!?!? Do we count the code in |
145c69e
to
6456b5a
Compare
} | ||
}) | ||
|
||
Context("Confiugre indexes on standlaone deployment using CR Spec", func() { |
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.
Nitpick: Typos
// RollHotBuckets roll hot buckets in cluster | ||
func RollHotBuckets(deployment *Deployment) bool { | ||
podName := fmt.Sprintf("splunk-%s-cluster-master-0", deployment.GetName()) | ||
stdin := "/opt/splunk/bin/splunk rolling-restart cluster-peers -auth admin:$(cat /mnt/splunk-secrets/password)" |
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.
Could we just use the roll-hot-buckets command instead of rolling-restart?
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.
I will do that as part of next PR. I just added this util but its not being used. I am using roll-hot-buckets on standalone which is part of this PR and will follow similar pattern for Indexer cluster.
6456b5a
to
dc1b255
Compare
dc1b255
to
f7bc91a
Compare