forked from spinnaker/gate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(gae): Adds endpoint to surfact GAE storage accounts. (spinnaker#470) * feat(echo/pubsub): Expose endpoint to query subscriptions. (spinnaker#472) * fix(pipeline_template): Default no scopes for pipeline templates (spinnaker#473) * feat(v2-canary): add application query param to config list endpoint (spinnaker#474) * fix(web): NPE when no scopes provided (spinnaker#475) * chore(canary-v2): Do not return bare strings. (spinnaker#477) * feat(pipeline_template): Support pipeline templates with dynamic sources (spinnaker#471) Pass along pipelineConfigId and executionId parameters for `/pipelineTemplates/resolve` * chore(swagger): Add webhooks endpoint to swagger docs (spinnaker#410) * fix(authN): Handle case of missing port(s) in post authN redirect. (spinnaker#467) - if port 443 is missing, but the scheme is https, we should set the default to 443, instead of -1. * feat(core): server group manager controller (spinnaker#478) * feat(pipelines): validate required parameters are supplied on pipeline trigger (spinnaker#479) * feat(core/serverGroups): Get a list of servergroups by name (spinnaker#480) Depends on spinnaker/clouddriver#2114 * feat(manifest): get manifest controller (spinnaker#481) * feat(xenial_builds): Add systemd configuration for Gate. (spinnaker#483) * feat(xenial_builds): Add systemd configuration for Gate. * chore(systemd_logs): Remove unneeded log redirection. (spinnaker#485) * feat(v2-canary): canary result endpoint, metric set list pair endpoint, refactoring (spinnaker#482) * feat(x509) Allow x509 and LDAP to be used together (spinnaker#476)
- Loading branch information
Showing
25 changed files
with
523 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ swagger: | |
- .*networks.* | ||
- .*bakery.* | ||
- .*executions.* | ||
- .*webhooks.* | ||
|
||
hystrix: | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Spinnaker Gate | ||
PartOf=spinnaker.service | ||
|
||
[Service] | ||
ExecStart=/opt/gate/bin/gate | ||
WorkingDirectory=/opt/gate/bin | ||
SuccessExitStatus=143 | ||
User=spinnaker | ||
Group=spinnaker | ||
Type=simple | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/ManifestController.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2017 Google, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
package com.netflix.spinnaker.gate.controllers | ||
|
||
import com.netflix.spinnaker.gate.services.ManifestService | ||
import groovy.transform.CompileStatic | ||
import org.springframework.beans.factory.annotation.Autowired | ||
import org.springframework.web.bind.annotation.PathVariable | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RequestMethod | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@CompileStatic | ||
@RequestMapping("/manifests") | ||
@RestController | ||
class ManifestController { | ||
@Autowired | ||
ManifestService manifestService | ||
|
||
@RequestMapping(value = "/{account:.+}/{location:.+}/{name:.+}", method = RequestMethod.GET) | ||
Map getManifest(@PathVariable String account, @PathVariable String location, @PathVariable String name) { | ||
return manifestService.getManifest(account, location, name); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
.../src/main/groovy/com/netflix/spinnaker/gate/controllers/ServerGroupManagerController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright 2017 Google, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.gate.controllers; | ||
|
||
import com.netflix.spinnaker.gate.services.ServerGroupManagerService; | ||
import io.swagger.annotations.ApiOperation; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@RestController | ||
@RequestMapping(value = "/applications/{application}/serverGroupManagers") | ||
public class ServerGroupManagerController { | ||
private final ServerGroupManagerService serverGroupManagerService; | ||
|
||
@Autowired | ||
ServerGroupManagerController(ServerGroupManagerService serverGroupManagerService) { | ||
this.serverGroupManagerService = serverGroupManagerService; | ||
} | ||
|
||
@ApiOperation("Retrieve a list of server group managers for an application") | ||
@RequestMapping(method = RequestMethod.GET) | ||
public List<Map> getServerGroupManagersForApplication(@PathVariable String application) { | ||
return this.serverGroupManagerService.getServerGroupManagersForApplication(application); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.