Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
env:
GITHUB_USER_NAME: ${{ github.actor }}
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Patch ClusterRole rolereconciler-cluster-role with secrets permission as the RoleReconciler is watching referenced Secrets
run: |
yq -i 'select(.metadata.name == "rolereconciler-cluster-role").rules += [{"apiGroups": [""], "resources": ["secrets"], "verbs": ["get", "list", "watch"]}]' operator/build/helm/kubernetes/postgresql-operator/templates/clusterrole.yaml
shell: bash
- name: Package Helm chart
run: |
tar -czf operator/build/helm/kubernetes/postgresql-operator-${{ steps.nextVersion.outputs.version }}.tgz -C operator/build/helm/kubernetes postgresql-operator
Expand Down
10 changes: 10 additions & 0 deletions operator/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ quarkus:
memory: 300Mi
limits:
memory: 512Mi
# Report bug as this or adding the ClusterRole and ClusterRoleBinding in operator/src/main/kubernetes/kubernetes.yml does not work, JOSDK simply ignores the ClusterRoleBinding
#rbac:
# cluster-roles:
# "rolereconciler-cluster-role":
# name: rolereconciler-cluster-role
# policy-rules:
# "secrets":
# api-groups: [""]
# resources: ["secrets"]
# verbs: ["get", "list", "watch"]
startup-probe:
http-action-port-name: http
initial-delay: PT2S
Expand Down