Skip to content

Commit 5b9df4e

Browse files
authored
Merge pull request #634 from andyzhangx/add-control-plane-setting
fix: add control-plane setting in tolerations
2 parents 1988b25 + 8cfa13c commit 5b9df4e

File tree

6 files changed

+77
-3
lines changed

6 files changed

+77
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master, 'release-**' ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master, 'release-**' ]
20+
schedule:
21+
- cron: '0 */24 * * *'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'go' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Set up Go 1.x
41+
uses: actions/setup-go@v2
42+
with:
43+
go-version: ^1.18
44+
id: go
45+
46+
- name: Checkout repository
47+
uses: actions/checkout@v3
48+
49+
# Initializes the CodeQL tools for scanning.
50+
- name: Initialize CodeQL
51+
uses: github/codeql-action/init@v1
52+
with:
53+
languages: ${{ matrix.language }}
54+
# If you wish to specify custom queries, you can do so here or in a config file.
55+
# By default, queries listed here will override any specified in a config file.
56+
# Prefix the list here with "+" to use these queries and those in the config file.
57+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
58+
59+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
60+
# If this step fails, then you should remove it and run the build manually (see below)
61+
- name: Autobuild
62+
run: |
63+
make all
64+
65+
- name: Perform CodeQL Analysis
66+
uses: github/codeql-action/analyze@v1
11 Bytes
Binary file not shown.

charts/latest/blob-csi-driver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ controller:
9999
- key: "node-role.kubernetes.io/controlplane"
100100
operator: "Exists"
101101
effect: "NoSchedule"
102+
- key: "node-role.kubernetes.io/control-plane"
103+
operator: "Exists"
104+
effect: "NoSchedule"
102105

103106
node:
104107
name: csi-blob-node

deploy/csi-blob-controller.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
- key: "node-role.kubernetes.io/controlplane"
2727
operator: "Exists"
2828
effect: "NoSchedule"
29+
- key: "node-role.kubernetes.io/control-plane"
30+
operator: "Exists"
31+
effect: "NoSchedule"
2932
containers:
3033
- name: csi-provisioner
3134
image: mcr.microsoft.com/oss/kubernetes-csi/csi-provisioner:v3.1.0

pkg/blobplugin/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
FROM k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
1616

1717
ARG ARCH=amd64
18-
COPY ./_output/${ARCH}/blobplugin /blobplugin
18+
ARG binary=./_output/${ARCH}/blobplugin
19+
COPY ${binary} /blobplugin
1920

2021
RUN apt update && apt-mark unhold libcap2
2122
RUN clean-install ca-certificates uuid-dev util-linux mount udev wget e2fsprogs nfs-common netbase

test/e2e/testsuites/testsuites.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,9 @@ func NewTestPod(c clientset.Interface, ns *v1.Namespace, command string) *TestPo
438438
VolumeMounts: make([]v1.VolumeMount, 0),
439439
},
440440
},
441-
RestartPolicy: v1.RestartPolicyNever,
442-
Volumes: make([]v1.Volume, 0),
441+
RestartPolicy: v1.RestartPolicyNever,
442+
Volumes: make([]v1.Volume, 0),
443+
AutomountServiceAccountToken: to.BoolPtr(false),
443444
},
444445
},
445446
}

0 commit comments

Comments
 (0)