aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint
diff options
context:
space:
mode:
authorSrivahni <srivahni.chivukula@intel.com>2019-10-24 14:08:58 -0700
committerMarco Platania <platania@research.att.com>2019-11-13 14:12:44 +0000
commit2026cb5283fbc44a4f68641f6e85628381ebda04 (patch)
treef66efc4b80884b6ff7a494b57c516e13e814f061 /vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint
parent938afb8217d5414c4cd0d63650e24d0398ddcc91 (diff)
Add/update/delete PrometheusRemoteEndpoint CR
PrometheusRemoteEndpoint CR when applied, a remote write endpoint is added/updated/deleted in prometheus. Issue-ID: ONAPARC-393 Signed-off-by: Srivahni <srivahni.chivukula@intel.com> Change-Id: I8cdc0b673b35be3457a2b12c6769cd3cf62ac6c5
Diffstat (limited to 'vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint')
-rwxr-xr-xvnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint12
1 files changed, 12 insertions, 0 deletions
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint b/vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint
new file mode 100755
index 00000000..0312d7e8
--- /dev/null
+++ b/vnfs/DAaaS/microservices/remote-config-operator/build/bin/entrypoint
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+# This is documented here:
+# https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines
+
+if ! whoami &>/dev/null; then
+ if [ -w /etc/passwd ]; then
+ echo "${USER_NAME:-remote-config-operator}:x:$(id -u):$(id -g):${USER_NAME:-remote-config-operator} user:${HOME}:/sbin/nologin" >> /etc/passwd
+ fi
+fi
+
+exec ${OPERATOR} $@