forked from spinnaker/orca
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add read connection pool support
- Loading branch information
1 parent
5009613
commit a6f801d
Showing
5 changed files
with
109 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Temporary Branch Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- read-connection-pool | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false -Xmx6g -Xms6g | ||
CONTAINER_REGISTRY: us-docker.pkg.dev/spinnaker-community/docker | ||
|
||
jobs: | ||
branch-build: | ||
# Only run this on repositories in the 'spinnaker' org, not on forks. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: | | ||
17 | ||
11 | ||
distribution: 'zulu' | ||
cache: 'gradle' | ||
- name: Prepare build variables | ||
id: build_variables | ||
run: | | ||
echo REPO="${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT | ||
echo VERSION="$(git describe --tags --abbrev=0 --match='v[0-9]*' | cut -c2-)-dev-${GITHUB_REF_NAME}-$(git rev-parse --short HEAD)-$(date --utc +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT | ||
- name: Build | ||
env: | ||
ORG_GRADLE_PROJECT_version: ${{ steps.build_variables.outputs.VERSION }} | ||
run: ./gradlew build --stacktrace ${{ steps.build_variables.outputs.REPO }}-web:installDist |
32 changes: 32 additions & 0 deletions
32
orca-sql/src/main/kotlin/com/netflix/spinnaker/config/ConnectionPools.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,32 @@ | ||
/* | ||
* Copyright 2023 Armory, 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.config; | ||
|
||
public enum ConnectionPools { | ||
READ("read"), | ||
WRITE("write"); | ||
|
||
private final String type; | ||
|
||
ConnectionPools(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
} |
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