Skip to content

Commit

Permalink
fix olm bundle release
Browse files Browse the repository at this point in the history
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
  • Loading branch information
clamoriniere committed May 20, 2020
1 parent 8b1b1fe commit da445fa
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
3 changes: 3 additions & 0 deletions deploy/olm-catalog/csv-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
role-paths:
- deploy/role.yaml
- deploy/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ spec:
displayName: Datadog Operator
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- rbac.authorization.k8s.io
- roles.rbac.authorization.k8s.io
- authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs:
- '*'
- apiGroups:
- datadoghq.com
resources:
- datadogagents
- datadogagents/status
- datadogagents/finalizers
- extendeddaemonsets
verbs:
- '*'
serviceAccountName: datadog-operator
deployments:
- name: datadog-operator
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ spec:
displayName: Datadog Operator
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- rbac.authorization.k8s.io
- roles.rbac.authorization.k8s.io
- authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
verbs:
- '*'
- apiGroups:
- datadoghq.com
resources:
- datadogagents
- datadogagents/status
- datadogagents/finalizers
- extendeddaemonsets
verbs:
- '*'
serviceAccountName: datadog-operator
deployments:
- name: datadog-operator
spec:
Expand Down
6 changes: 3 additions & 3 deletions hack/generate-olm-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ trap cleanup EXIT
# move all zip file if exit
mv $ZIP_FILE_NAME $ZIP_FILE_NAME.old

for i in $OLM_FOLDER/$VERSION/*.yaml $OLM_FOLDER/*.yaml
for i in $OLM_FOLDER/*/*.yaml $OLM_FOLDER/*.yaml
do
cp $i $WORK_DIR/${i##*/}
sed ${SED_OPTIONS} -e "s|${IMAGE_NAME}|${REDHAT_IMAGE_NAME}|g" $WORK_DIR/${i##*/}
$SED -e "s|${IMAGE_NAME}|${REDHAT_IMAGE_NAME}|g" $WORK_DIR/${i##*/}
echo "$i $filename"
done

pushd $WORK_DIR
sed ${SED_OPTIONS} -e 's/packageName\: datadog-operator/packageName\: datadog-operator-certified/g' datadog-operator.package.yaml
$SED -e 's/packageName\: datadog-operator/packageName\: datadog-operator-certified/g' datadog-operator.package.yaml
rm *.bak
zip $ZIP_FILE_NAME ./*.yaml
popd

0 comments on commit da445fa

Please sign in to comment.