Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

refactoring #62

Merged
merged 3 commits into from
Sep 13, 2017
Merged

refactoring #62

merged 3 commits into from
Sep 13, 2017

Conversation

maleck13
Copy link
Member

moving client pkg out of mobile pkg. Some other general refactors and additional tests

@maleck13
Copy link
Member Author

@philbrookes FYI moving things around a bit nothing major. Will merge once it passes

Copy link
Member

@philbrookes philbrookes left a comment

Choose a reason for hiding this comment

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

Typo needs fixing

@@ -130,15 +117,16 @@ func (ms *MobileService) MountSecretForComponent(svcCruder mobile.ServiceCruder,
}

//find the clientService secret name
css, err := svcCruder.List(ms.filterServices([]string{clientService}))
if err != nil || len(css) == 0 {
cSeviceList, err := svcCruder.List(filterServices([]string{clientService}))
Copy link
Member

Choose a reason for hiding this comment

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

typo here: cServiceList

@@ -94,6 +94,9 @@ func (at AppTypes) String() string {
//ValidAppTypes is a list of valid app types
var ValidAppTypes = AppTypes{"cordova", "android", "iOS"}

//ServiceTypes are the service types that we are aware of and support
var ServiceTypes = []string{"fh-sync-server", "keycloak", "custom"}
Copy link
Member

Choose a reason for hiding this comment

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

I'm uncomfortable with this in general - not specific to this PR; I don't like that we have to recompile, rebuild and redeploy the API server anytime we want to add a new mobile service.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes agree, however I am chatting with the service catalog guys around having labels on the secrets kubernetes-retired/service-catalog#1222 which I think will help. Also can be moved out to an env var at somepoint

@maleck13 maleck13 merged commit ffbbcc5 into master Sep 13, 2017
@maleck13 maleck13 deleted the refactor-pkgs branch September 22, 2017 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants