Skip to content

Issues within kubernetes/internal/generate-security-policy.sh #34

@gstrzalka

Description

@gstrzalka

While installing operator (./create-weblogic-operator.sh -i create-operator-inputs.yaml) got following issues:

  1. if test in line 47:

/home/ubuntu/wls-operator/git/weblogic-kubernetes-operator/kubernetes/internal/generate-security-policy.sh: 47: [: -o: unexpected operator

looks like wrong comparison operator is used:
if [ "$1" == "-o" ] ; then
following seems to be more correct:
if [ "$1" = "-o" ] ; then

  1. I found no mention of shell version to be used with scripts, on my ubuntu 16.04 I have dash version 0.5.8-2.1ubuntu2 configured as /bin/sh, seems like it has problems with line 191 substitution operation in kubernetes/internal/generate-security-policy.sh, current version:

for i in ${TARGET_NAMESPACES//,/ }
maybe worth to use more secure one, e.g.:
for i in $(echo $TARGET_NAMESPACES | sed "s/,/ /g")

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions