-
Notifications
You must be signed in to change notification settings - Fork 123
CSPL-767: Operator trigger Instance pod to download app package from S3 #366
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
sgontla
commented
Jun 8, 2021
- Added new configMap to update the latest apps status to the pod locations
4ba82b6
to
268c54a
Compare
5051b47
to
eed23fa
Compare
returnedCM := PrepareConfigMap(configMapName, namespace, dataMap) | ||
|
||
if !reflect.DeepEqual(expectedCm, returnedCM) { | ||
t.Errorf("configMap preperation failed") |
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: Preparation
|
||
// ApplyAppListingConfigMap creates the configMap with two entries: | ||
// (1) app-list-local.yaml | ||
// (2) app-list-cluster.yaml |
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.
Update comment to clarify that the config map will be used by ansible to install apps
pkg/splunk/enterprise/util.go
Outdated
|
||
// Apply the configMap with a fresh token | ||
SplunkOperatorAppConfigMap = prepareSplunkSmartstoreConfigMap(cr.GetName(), cr.GetNamespace(), crKind, mapSplunkConfDetails) | ||
SplunkOperatorAppConfigMap := splctrl.PrepareConfigMap(configMapName, cr.GetNamespace(), mapSplunkConfDetails) |
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.
Duplicate SplunkOperatorAppConfigMap to be removed
|
||
// check if the apps need to be downloaded from remote storage | ||
// ToDo: sgontla: Once after we have the flow, move the following logic into a seperate function(Note:- all errors should not cause a return in that function) | ||
if cr.Spec.CommonSplunkSpec.Mock != true && !reflect.DeepEqual(cr.Status.AppContext.AppFrameworkConfig, cr.Spec.AppFrameworkConfig) { |
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.
Not introduced as part of this PR, but do we need this Mock check here?
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 think we need this clean-up. I Will add a ToDo note for now.
- Added new configMap to update the latest apps status to the pod locations
eed23fa
to
1977e8c
Compare