From 9dacf89bb7876378da262e1eeb75d3c42f4d9cca Mon Sep 17 00:00:00 2001 From: Bharat Kunwar Date: Mon, 2 Aug 2021 01:39:20 +0100 Subject: [PATCH] [occm] add missing RBAC for serviceaccount token (#1521) (#1611) * [occm] add missing RBAC for serviceaccount token (#1521) * [osccm-helm] add missing RBAC for serviceaccount token * [osccm-helm] bump version (cherry picked from commit dcef7202697f7caead1055dcef50c2e0c3388951) * Fix chart linting (cherry picked from commit 1b8283f197aec05d9cd42dfaca863ed8bf8135ab) Co-authored-by: Frank Kloeker --- .github/workflows/pr.yaml | 17 +++++++++++++---- .../Chart.yaml | 2 +- .../templates/clusterrole.yaml | 6 ++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 922215b474..0fdd7d62c7 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -12,8 +12,17 @@ jobs: - name: Fetch history run: git fetch --prune --unshallow - - id: lint - name: Run chart-testing (lint) - uses: helm/chart-testing-action@v1.0.0 + - name: Set up Helm + uses: azure/setup-helm@v1 with: - command: lint + version: v3.6.1 + + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.1.0 + + - name: Run chart-testing (lint) + run: ct lint --target-branch ${GITHUB_BASE_REF} diff --git a/charts/openstack-cloud-controller-manager/Chart.yaml b/charts/openstack-cloud-controller-manager/Chart.yaml index 67bf026679..5a384b9742 100644 --- a/charts/openstack-cloud-controller-manager/Chart.yaml +++ b/charts/openstack-cloud-controller-manager/Chart.yaml @@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png home: https://github.com/kubernetes/cloud-provider-openstack name: openstack-cloud-controller-manager -version: 1.0.1 +version: 1.0.2 maintainers: - name: morremeyer email: kubernetes@maurice-meyer.de diff --git a/charts/openstack-cloud-controller-manager/templates/clusterrole.yaml b/charts/openstack-cloud-controller-manager/templates/clusterrole.yaml index 2c91aa199b..54c0cfbf2f 100644 --- a/charts/openstack-cloud-controller-manager/templates/clusterrole.yaml +++ b/charts/openstack-cloud-controller-manager/templates/clusterrole.yaml @@ -40,6 +40,12 @@ rules: - patch - update - watch +- apiGroups: + - "" + resources: + - serviceaccounts/token + verbs: + - create - apiGroups: - "" resources: