Merge "Go version updated to 1.12.9"
authorLevente Kálé <levente.kale@nokia.com>
Fri, 6 Sep 2019 11:04:55 +0000 (11:04 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Fri, 6 Sep 2019 11:04:55 +0000 (11:04 +0000)
SPECS/swift.spec
ansible/roles/swift/templates/main/swift_main.yml
ansible/roles/swift/templates/update/swift_update.yml
docker-build/swift/Dockerfile

index fd35728..c26c8f4 100644 (file)
@@ -15,7 +15,7 @@
 %define COMPONENT swift
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 2.22.0
-%define RPM_MINOR_VERSION 0
+%define RPM_MINOR_VERSION 1
 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
 Name:           %{RPM_NAME}
 Version:        %{RPM_MAJOR_VERSION}
index 7953160..a5560f4 100644 (file)
@@ -40,7 +40,7 @@ spec:
           image: {{ container_image_names | select('search', '/swift') | list | last }}
           securityContext:
             capabilities:
-              add: ["NET_BIND_SERVICE"]
+              add: ["NET_BIND_SERVICE", "SETGID", "SETUID"]
           args:
             - BACKEND
           resources:
index cffc531..a98a5b9 100644 (file)
@@ -40,7 +40,7 @@ spec:
           image: {{ container_image_names | select('search', '/swift') | list | last }}
           securityContext:
             capabilities:
-              add: ["NET_BIND_SERVICE"]
+              add: ["NET_BIND_SERVICE", "SETGID", "SETUID"]
           args:
             - BACKEND
           resources:
index 4233618..2ff94a9 100644 (file)
@@ -156,6 +156,6 @@ python-lxml python-chardet python-requests \
 &&  yum clean all \
 &&  rm -rf /etc/yum.repos.d/luxembourg.repo \
 &&  rm -rf ${GOPATH} \
-&&  setcap 'cap_net_bind_service=+ep' /usr/bin/rsync
+&&  setcap 'cap_setgid,cap_setuid,cap_net_bind_service=+ep' /usr/bin/rsync
 
 ENTRYPOINT ["/usr/bin/mainstart.sh"]