Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sodafoundation/api into t…
Browse files Browse the repository at this point in the history
…est_vg
  • Loading branch information
nguptaopensds committed Jul 17, 2020
2 parents dd805c7 + 7d8aebb commit 50c2624
Show file tree
Hide file tree
Showing 14 changed files with 235 additions and 234 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ matrix:


install:
# TODO: Remove once source code is fixed for sodafoundation
- ln -s $GOPATH/src/sodafoundation $GOPATH/src/opensds
# Build OpenSDS Controller source code
- make osdsapiserver
- make osdsctl
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ metricexporter:

docker: build
cp $(BUILD_DIR)/bin/osdsapiserver ./cmd/osdsapiserver
docker build cmd/osdsapiserver -t opensdsio/opensds-apiserver:latest
docker build cmd/osdsapiserver -t sodafoundation/apiserver:latest

test: build
install/CI/test
Expand Down
4 changes: 2 additions & 2 deletions cmd/osdsapiserver/Autobuildfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker build usage:
# docker build . -t opensdsio/opensds-apiserver:latest
# docker build . -t sodafoundation/apiserver:latest
# Docker run usage:
# docker run -d --net=host -v /etc/opensds:/etc/opensds opensdsio/opensds-apiserver:latest
# docker run -d --net=host -v /etc/opensds:/etc/opensds sodafoundation/apiserver:latest

FROM ubuntu:16.04
MAINTAINER Leon Wang <[email protected]>
Expand Down
5 changes: 2 additions & 3 deletions cmd/osdsapiserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Docker build usage:
# docker build . -t opensdsio/opensds-apiserver:latest
# docker build . -t sodafoundation/apiserver:latest
# Docker run usage:
# docker run -d --net=host -v /etc/opensds:/etc/opensds opensdsio/opensds-apiserver:latest
# docker run -d --net=host -v /etc/opensds:/etc/opensds sodafoundation/apiserver:latest

FROM ubuntu:16.04
MAINTAINER Leon Wang <[email protected]>

COPY osdsapiserver /usr/bin

Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
osdsapiserver:
image: 'opensdsio/opensds-apiserver:latest'
image: 'sodafoundation/apiserver:latest'
tty: true
network_mode: "host"
volumes:
Expand All @@ -12,7 +12,7 @@ services:
restart: on-failure
command: /bin/bash -c '/usr/bin/osdsapiserver -logtostderr'
osdslet:
image: 'opensdsio/opensds-controller:latest'
image: 'sodafoundation/controller:latest'
tty: true
network_mode: "host"
volumes:
Expand All @@ -22,7 +22,7 @@ services:
restart: on-failure
command: /bin/bash -c '/usr/bin/osdslet -logtostderr'
osdsdock:
image: 'opensdsio/opensds-dock:latest'
image: 'sodafoundation/dock:latest'
tty: true
privileged: true
volumes:
Expand Down Expand Up @@ -52,7 +52,7 @@ services:
privileged: true
restart: on-failure
osdsdashboard:
image: 'opensdsio/dashboard:latest'
image: 'sodafoundation/dashboard:latest'
tty: true
network_mode: "host"
restart: on-failure
Expand Down
2 changes: 1 addition & 1 deletion install/devsds/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ else
fi

echo
echo "Execute commands blow to set up ENVs which are needed by OpenSDS CLI:"
echo "Execute commands below to set up ENVs which are needed by SODA CLI:"
echo "------------------------------------------------------------------"
echo "export OPENSDS_AUTH_STRATEGY=$OPENSDS_AUTH_STRATEGY"
echo "export OPENSDS_ENDPOINT=http://localhost:50040"
Expand Down
6 changes: 3 additions & 3 deletions install/devsds/lib/opensds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ osds::opensds::install(){

export OPENSDS_AUTH_STRATEGY=$OPENSDS_AUTH_STRATEGY
export OPENSDS_ENDPOINT=http://localhost:50040
build/out/bin/osdsctl profile create '{"name": "default_block", "description": "default policy", "storageType": "block"}'
build/out/bin/osdsctl profile create '{"name": "default_file", "description": "default policy", "storageType": "file", "provisioningProperties":{"ioConnectivity": {"accessProtocol": "NFS"},"DataStorage":{"StorageAccessCapability":["Read","Write","Execute"]}}}'
${OPENSDS_DIR}/build/out/bin/osdsctl profile create '{"name": "default_block", "description": "default policy", "storageType": "block"}'
${OPENSDS_DIR}/build/out/bin/osdsctl profile create '{"name": "default_file", "description": "default policy", "storageType": "file", "provisioningProperties":{"ioConnectivity": {"accessProtocol": "NFS"},"DataStorage":{"StorageAccessCapability":["Read","Write","Execute"]}}}'

if [ $? == 0 ]; then
osds::echo_summary devsds installed successfully !!
osds::echo_summary devsds installed successfully !!
fi
)
}
Expand Down
8 changes: 4 additions & 4 deletions install/kubernetes/opensds-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
spec:
containers:
- name: apiserver
image: opensdsio/opensds-apiserver:latest
image: sodafoundation/apiserver:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdsapiserver -logtostderr"]
Expand Down Expand Up @@ -99,7 +99,7 @@ spec:
spec:
containers:
- name: controller
image: opensdsio/opensds-controller:latest
image: sodafoundation/controller:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdslet -logtostderr"]
Expand Down Expand Up @@ -155,7 +155,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: opensdsio/opensds-dock:latest
image: sodafoundation/dock:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/sbin/tgtd; /usr/bin/osdsdock -logtostderr"]
Expand Down Expand Up @@ -249,7 +249,7 @@ spec:
spec:
containers:
- name: dashboard
image: opensdsio/dashboard:latest
image: sodafoundation/dashboard:latest
env:
- name: OPENSDS_AUTH_URL
value: http://authchecker.opensds.svc.cluster.local/identity
Expand Down
2 changes: 1 addition & 1 deletion install/kubernetes/opensds-apiserver-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: apiserver
image: opensdsio/opensds-apiserver:latest
image: sodafoundation/apiserver:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdsapiserver -logtostderr"]
Expand Down
2 changes: 1 addition & 1 deletion install/kubernetes/opensds-apiserver-v1beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: apiserver
image: opensdsio/opensds-apiserver:latest
image: sodafoundation/apiserver:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdsapiserver -logtostderr"]
Expand Down
2 changes: 1 addition & 1 deletion install/kubernetes/opensds-controller-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: controller
image: opensdsio/opensds-controller:latest
image: sodafoundation/controller:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdslet -logtostderr"]
Expand Down
8 changes: 4 additions & 4 deletions install/kubernetes/opensds-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
spec:
containers:
- name: apiserver
image: opensdsio/opensds-apiserver:latest
image: sodafoundation/apiserver:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdsapiserver -logtostderr"]
Expand Down Expand Up @@ -99,7 +99,7 @@ spec:
spec:
containers:
- name: controller
image: opensdsio/opensds-controller:latest
image: sodafoundation/controller:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/bin/osdslet -logtostderr"]
Expand Down Expand Up @@ -155,7 +155,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: opensdsio/opensds-dock:latest
image: sodafoundation/dock:latest
imagePullPolicy: IfNotPresent
command: ["bin/sh"]
args: ["-c", "/usr/sbin/tgtd; /usr/bin/osdsdock -logtostderr"]
Expand Down Expand Up @@ -249,7 +249,7 @@ spec:
spec:
containers:
- name: dashboard
image: opensdsio/dashboard:latest
image: sodafoundation/dashboard:latest
env:
- name: OPENSDS_AUTH_URL
value: http://authchecker.opensds.svc.cluster.local/identity
Expand Down
2 changes: 1 addition & 1 deletion openapi-spec/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
termsOfService: 'https://www.linuxfoundation.org/terms'
contact:
name: SODA Support
url: 'https://opensds.slack.com'
url: 'https://sodafoundation.io/slack'
email: [email protected]
license:
name: Apache 2.0
Expand Down
Loading

0 comments on commit 50c2624

Please sign in to comment.