Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-12560: STOR-1160: Rebase to v1.28.0 for OCP 4.14 #29

Merged
merged 168 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
4f6381e
doc: use latest version for master branch
andyzhangx Jan 18, 2023
f25f97e
Merge pull request #1167 from kubernetes-sigs/cut-v1.25.1
andyzhangx Jan 19, 2023
b57c5ca
doc: Fix URL to azure-files-csi driver doc in README.md
pauldotyu Jan 26, 2023
0f03b80
Merge pull request #1170 from pauldotyu/patch-1
k8s-ci-robot Jan 28, 2023
38e7f23
fix: incorrect driver version in CSIDriver
andyzhangx Jan 30, 2023
19dfba4
Merge pull request #1172 from kubernetes-sigs/fix-driver-version
andyzhangx Jan 30, 2023
11f8d03
feat: add support for SMB Multi-channels in premium account creation
andyzhangx Feb 5, 2023
7f4caca
test: add smb multi-channel account creation e2e test
andyzhangx Feb 5, 2023
43813c4
test: refine multi-channel e2e test
andyzhangx Feb 5, 2023
851113b
test: skip aks-engine test for multi-channel test
andyzhangx Feb 6, 2023
9ea3d78
Merge pull request #1174 from kubernetes-sigs/smb-multi-channel-accou…
andyzhangx Feb 7, 2023
ba7e578
Update driver-parameters.md
andyzhangx Feb 7, 2023
0b303fd
Update README.md
andyzhangx Feb 8, 2023
ba00fe9
fix: switch base image to fix CVEs
cvvz Feb 8, 2023
fafb587
fix: buildx issue with provenance disabled
andyzhangx Feb 9, 2023
b312f89
test: fix externeal e2e test failure
andyzhangx Feb 9, 2023
e132a16
test: set python3 in script
andyzhangx Feb 9, 2023
bd1b964
Merge pull request #1176 from kubernetes-sigs/fix-buildx
andyzhangx Feb 9, 2023
3998979
Merge pull request #1175 from cvvz/switch-base-image
k8s-ci-robot Feb 9, 2023
cc00106
chore: remove dependency on golang.org/x/text specific version
andyzhangx Feb 9, 2023
531058e
Update csi-debug.md
andyzhangx Feb 9, 2023
23d363e
feat: append help link when there is mount error
andyzhangx Feb 9, 2023
d24cb41
Merge pull request #1178 from kubernetes-sigs/fix-text-lib
andyzhangx Feb 10, 2023
676a214
Merge pull request #1179 from kubernetes-sigs/mount-error-help-link
andyzhangx Feb 10, 2023
1d753fa
doc: cut v1.26.0 release
andyzhangx Feb 10, 2023
a13c917
doc: use latest version for master branch
andyzhangx Feb 10, 2023
f2ca914
Merge pull request #1180 from kubernetes-sigs/cut-v1.26.0
andyzhangx Feb 10, 2023
b26fa51
chore: switch master branch version
andyzhangx Feb 12, 2023
85529ba
fix: remove forceUmount and lazyUmount
andyzhangx Feb 12, 2023
817945c
Merge pull request #1188 from kubernetes-sigs/remove-forceumount
andyzhangx Feb 15, 2023
14a2f6c
Update csi-debug.md
andyzhangx Feb 15, 2023
5d5ef9d
Update csi-debug.md
andyzhangx Feb 15, 2023
f73c154
doc: cut v1.26.1 release
andyzhangx Feb 16, 2023
0498528
doc: use latest version for master branch
andyzhangx Feb 16, 2023
bcc6818
support to enable windows process
ZeroMagic Feb 10, 2023
fcfae72
Merge pull request #1192 from kubernetes-sigs/cut-v1.26.1
andyzhangx Feb 16, 2023
161e037
chore: switch master branch version
andyzhangx Feb 17, 2023
30099ec
Merge pull request #1181 from ZeroMagic/hp-1
k8s-ci-robot Feb 17, 2023
64dec34
doc: remove accountAccessTier in doc since it's only for blob
andyzhangx Feb 17, 2023
1336b31
fix: CVE-2022-41723
andyzhangx Feb 17, 2023
56dd4f2
Merge pull request #1196 from kubernetes-sigs/CVE-2022-41723
andyzhangx Feb 18, 2023
c45dd6f
Merge pull request #1195 from kubernetes-sigs/remove-accountAccessTie…
andyzhangx Feb 18, 2023
552e045
chore: update cloud-provider
cvvz Feb 16, 2023
ee346b5
update
cvvz Feb 20, 2023
202c150
fix
cvvz Feb 21, 2023
9835735
Merge pull request #1191 from cvvz/update-cloud-provider
k8s-ci-robot Feb 21, 2023
f07eb2f
cleanup: remove metrics-address on driver daemonset on the node
andyzhangx Feb 22, 2023
141ab79
Merge pull request #1197 from kubernetes-sigs/remove-node-metrics-add…
andyzhangx Feb 23, 2023
88b91f9
Pin k8s.io/dynamic-resource-allocation to v0.26.0
bertinatto Feb 23, 2023
b132faa
Merge pull request #1198 from bertinatto/pin-dynamic-resource-allocat…
k8s-ci-robot Feb 28, 2023
53472d0
test: add "go list" check
andyzhangx Feb 28, 2023
84e7346
Merge pull request #1199 from kubernetes-sigs/go-list
andyzhangx Feb 28, 2023
a96ac84
Update driver-parameters.md
andyzhangx Mar 1, 2023
3af023a
Update csi-debug.md
andyzhangx Mar 2, 2023
e4cf4c3
tes: fix golint action failure
andyzhangx Mar 4, 2023
8bad224
chore: set go1.19 in go.mod
andyzhangx Mar 4, 2023
63505bd
chore: fix golint errors
andyzhangx Mar 4, 2023
38acd02
chore: fix golint failure
andyzhangx Mar 4, 2023
95d8f00
Merge pull request #1200 from kubernetes-sigs/fix-golint2
andyzhangx Mar 5, 2023
0c39c26
Update driver-parameters.md
andyzhangx Mar 7, 2023
572769c
Update csi-debug.md
andyzhangx Mar 8, 2023
64bfed3
Update driver-parameters.md
andyzhangx Mar 8, 2023
2c63f32
Update driver-parameters.md
andyzhangx Mar 9, 2023
64c6c26
test: enable dupl golint
andyzhangx Mar 11, 2023
d0132ed
Merge pull request #1203 from kubernetes-sigs/enable-dupl-golint
andyzhangx Mar 11, 2023
2ef832a
test: add external stress test
andyzhangx Mar 17, 2023
70307d9
cleanup: remove windows 20H2 image build
andyzhangx Mar 21, 2023
50b1e01
test: fix capz test failure
andyzhangx Mar 21, 2023
dcb7e84
Merge pull request #1205 from kubernetes-sigs/remove-20H2-image
andyzhangx Mar 22, 2023
8b37cd3
Merge pull request #1204 from kubernetes-sigs/add-external-stress-test
andyzhangx Mar 22, 2023
4d52e76
test: repeat to make sure mount/unmount is stable
cvvz Mar 29, 2023
8c990fc
Merge pull request #1207 from cvvz/test-mount-unmount-repeatly
k8s-ci-robot Mar 29, 2023
036b130
Update driver-parameters.md
andyzhangx Mar 29, 2023
5711732
Update OWNERS
andyzhangx Mar 31, 2023
7f88674
doc: refine subcriptionID parameter doc
andyzhangx Apr 1, 2023
7e9b29d
Merge pull request #1209 from kubernetes-sigs/subsid-doc
andyzhangx Apr 1, 2023
b21019e
feat: enable securityContext.seccompProfile
andyzhangx Apr 4, 2023
a1a611c
Merge pull request #1210 from kubernetes-sigs/enable-seccompProfile
andyzhangx Apr 6, 2023
b4c970c
test: fix restart_driver_daemonset script
andyzhangx Apr 8, 2023
60d2221
fix: remove livenessProbe in node-driver-registrar setting
andyzhangx Apr 9, 2023
09df996
Update README.md
andyzhangx Apr 10, 2023
c834347
Merge pull request #1216 from kubernetes-sigs/fix-restart_driver_daem…
andyzhangx Apr 10, 2023
0cc403f
chore: add chart config value enableRegistrationProbe
andyzhangx Apr 10, 2023
6660452
Merge pull request #1217 from kubernetes-sigs/remove-proble-in-registrar
andyzhangx Apr 11, 2023
3d58d6d
change the storageclass configuration method in the test file
umagnus Apr 13, 2023
79be35e
Merge pull request #1219 from umagnus/change-test-sc
k8s-ci-robot Apr 13, 2023
c1edbbf
doc: add nconnect mount options in NFSv4.1 example
andyzhangx Apr 15, 2023
df33325
Merge pull request #1220 from kubernetes-sigs/add-nfs-nconnect-option
andyzhangx Apr 15, 2023
79f5958
replace deprecated ioutil
umagnus Apr 20, 2023
2a556fb
Merge pull request #1223 from umagnus/replace-deprecated-ioutil
k8s-ci-robot Apr 20, 2023
22f111a
Squashed commit of the following:
cvvz Apr 24, 2023
3972ae7
Merge pull request #1193 from cvvz/support-workload-identity
k8s-ci-robot Apr 25, 2023
72a85b1
feat: add selectRandomMatchingAccount in account search
andyzhangx Apr 25, 2023
2940120
vendor: add PickRandomMatchingAccount in account search
andyzhangx Apr 25, 2023
5f6edf1
test: add e2e test for selectRandomMatchingAccount
andyzhangx Apr 25, 2023
4e3cc50
test: add more e2e test with selectRandomMatchingAccount setting
andyzhangx Apr 26, 2023
b4c355e
Merge pull request #1225 from kubernetes-sigs/pick-random-account2
k8s-ci-robot Apr 26, 2023
2512e3e
chore: upgrade CSI driver sidecar image versions
andyzhangx Apr 26, 2023
698cc42
Merge pull request #1229 from kubernetes-sigs/upgrade-sidecar-images2
andyzhangx Apr 27, 2023
b5f2b3d
doc: cut v1.27.0 release
andyzhangx Apr 27, 2023
9b0ac97
doc: use latest version for master branch
andyzhangx Apr 27, 2023
8b5c092
Merge pull request #1232 from kubernetes-sigs/cut-v1.27.0
andyzhangx Apr 27, 2023
de7ee02
chore: switch master branch version
andyzhangx Apr 27, 2023
856602b
Update csi-debug.md
andyzhangx Apr 28, 2023
8848b61
chore: upgrade csi sidecar container images
andyzhangx Apr 30, 2023
5e21f92
Merge pull request #1235 from kubernetes-sigs/upgrade-sidecar-images4
andyzhangx May 2, 2023
03f8449
feat: add enableVolumeMountGroup feature flag
andyzhangx May 4, 2023
d590a9c
feat: add fsGroupPolicy chart config
andyzhangx May 4, 2023
a84b055
Merge pull request #1236 from kubernetes-sigs/add-enableVolumeMountGroup
k8s-ci-robot May 8, 2023
069d427
support host-process containers in helm charts
ZeroMagic Feb 10, 2023
bdd9fd3
build windows host-process based image
ZeroMagic Feb 10, 2023
55c7b46
cleanup: remove livenessProbe in hostprocess deployment
andyzhangx May 8, 2023
ea0d561
fix: NewSmbLink failure
andyzhangx May 8, 2023
e3e1613
chore: refine
andyzhangx May 8, 2023
d9249a1
Merge pull request #1182 from ZeroMagic/hp-2
k8s-ci-robot May 9, 2023
c39fe2e
test: add dependabot
andyzhangx May 9, 2023
474ebf2
Merge pull request #1237 from kubernetes-sigs/add-dependabot
andyzhangx May 10, 2023
f77a563
build(deps): bump github/codeql-action from 1 to 2
dependabot[bot] May 10, 2023
17f48d5
Merge pull request #1238 from kubernetes-sigs/dependabot/github_actio…
k8s-ci-robot May 10, 2023
84a56e2
chore: fix release-image.sh on publishing windows hostprocess image
andyzhangx May 10, 2023
583699e
build(deps): bump actions/setup-go from 2 to 4
dependabot[bot] May 10, 2023
6a70747
Merge pull request #1241 from kubernetes-sigs/dependabot/github_actio…
k8s-ci-robot May 10, 2023
16976de
Merge pull request #1240 from kubernetes-sigs/release-windows-hc-image
andyzhangx May 10, 2023
984f7b6
fix: windows host process container deployment
andyzhangx May 10, 2023
5166f0f
Merge pull request #1243 from kubernetes-sigs/fix-hpc-deployment
andyzhangx May 10, 2023
e9b8bd3
fix: add closetimeo=0 option to fix data sync issue on Ubuntu 22.04
andyzhangx May 10, 2023
a84243f
fix: default actimeo option should respect acregmax and acdirmax
andyzhangx May 11, 2023
21128de
fix docs
cvvz May 11, 2023
6d9ed3d
Merge pull request #1248 from cvvz/support-workload-identity
k8s-ci-robot May 11, 2023
009a968
Merge pull request #1245 from kubernetes-sigs/appendClosetimeoOption
andyzhangx May 11, 2023
a6e2117
changing release path url
nitishchauhan0022 May 11, 2023
98d1019
Merge pull request #1244 from kubernetes-sigs/fix-actimeo-setting
andyzhangx May 12, 2023
bf6c9c5
chore: refine windows hcp image build
andyzhangx May 12, 2023
e4bc510
Merge pull request #1250 from nitishchauhan0022/master
andyzhangx May 13, 2023
a45d4b2
Merge pull request #1255 from kubernetes-sigs/refine-build-hcp-image
andyzhangx May 13, 2023
e99ab76
cleanup: update new chart versions and remove deprecated versions
andyzhangx May 13, 2023
9017937
Merge pull request #1256 from kubernetes-sigs/remove-deprecated-versi…
andyzhangx May 13, 2023
7e0cf7e
fix: snapshot controller crash issue when CRDs are not ready
andyzhangx May 14, 2023
2ba4f82
Merge pull request #1258 from kubernetes-sigs/fix-snapshot-crash-issue
andyzhangx May 15, 2023
61a5f0f
feat: upgrade to snapshot v6.2.1
andyzhangx May 13, 2023
d728a65
Merge pull request #1257 from kubernetes-sigs/upgrade-snapshot-6.2.1
andyzhangx May 15, 2023
81a5c9c
build: add dependabot job for dockerfile updates.
MartinForReal May 16, 2023
3eeaa9b
Merge pull request #1261 from MartinForReal/patch-1
k8s-ci-robot May 16, 2023
1600871
doc: refine workload identity doc
andyzhangx May 16, 2023
e2d3bb3
Merge pull request #1263 from kubernetes-sigs/wi-refine
k8s-ci-robot May 16, 2023
1a05136
Update workload-identity.md
andyzhangx May 16, 2023
82c7cc1
Update workload-identity.md
andyzhangx May 16, 2023
baaa2f5
Update workload-identity.md
andyzhangx May 16, 2023
2c69d56
Update workload-identity.md
andyzhangx May 16, 2023
b3e2eaa
chore: update windows host process lib
andyzhangx May 18, 2023
a540843
fix: append nosharesock mount option on Linux node by default
andyzhangx May 18, 2023
544b926
Merge pull request #1267 from kubernetes-sigs/append-nosharesock-option
andyzhangx May 19, 2023
23e55f0
Merge pull request #1265 from kubernetes-sigs/update-csi-proxy-lib
andyzhangx May 19, 2023
c5d275f
cleanup: update new chart versions and remove deprecated versions
andyzhangx May 19, 2023
f1cab87
Merge pull request #1276 from kubernetes-sigs/update-versions
andyzhangx May 19, 2023
c78c3c8
chore: refactor host process code
andyzhangx May 21, 2023
b994a20
chore: rename helm chart value as windows.useHostProcessContainers
andyzhangx May 21, 2023
3cac122
chore: add resource limit for host process deployment
andyzhangx May 21, 2023
548e453
Merge pull request #1277 from kubernetes-sigs/refine-hpc-code
andyzhangx May 22, 2023
0ff1793
cleanup: remove unnecessary path validation on hpc deployment
andyzhangx May 22, 2023
5d2a9f9
Merge pull request #1279 from kubernetes-sigs/remove-validation
andyzhangx May 22, 2023
903eb9a
doc: remove unused resourceGroup field when secret is specified
andyzhangx May 24, 2023
9414a73
Merge pull request #1281 from kubernetes-sigs/remove-rg-example
andyzhangx May 24, 2023
6813bd0
doc: cut v1.28.0 release
andyzhangx May 24, 2023
da641a0
fix: hpc image build on AKS
andyzhangx May 25, 2023
e61ecd9
Merge remote-tracking branch 'openshift/master' into rebase-v1.28.0
RomanBednar May 26, 2023
2e9f9e9
UPSTREAM: <carry>: Add OpenShift files
RomanBednar May 26, 2023
3fc3f0b
UPSTREAM: 1294: TestGetKubeConfig unit test failing
RomanBednar Jun 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ci-operator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.20-openshift-4.14
tag: rhel-8-release-golang-1.20-openshift-4.14
31 changes: 31 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
open-pull-requests-limit: 1
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
open-pull-requests-limit: 1
- package-ecosystem: "docker"
directory: "/pkg/azurefileplugin/"
schedule:
interval: "daily"
time: "01:00"
timezone: "Asia/Shanghai"
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
- "kind/cleanup"
73 changes: 55 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,25 @@ GIT_COMMIT ?= $(shell git rev-parse HEAD)
REGISTRY ?= andyzhangx
REGISTRY_NAME ?= $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g")
IMAGE_NAME ?= azurefile-csi
IMAGE_VERSION ?= v1.25.0
IMAGE_VERSION ?= v1.28.0
# Use a custom version for E2E tests if we are testing in CI
ifdef CI
ifndef PUBLISH
override IMAGE_VERSION := e2e-$(GIT_COMMIT)
endif
endif
IMAGE_TAG ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_VERSION)
IMAGE_TAG_LATEST = $(REGISTRY)/$(IMAGE_NAME):latest
CSI_IMAGE_TAG ?= $(REGISTRY)/$(IMAGE_NAME):$(IMAGE_VERSION)
CSI_IMAGE_TAG_LATEST = $(REGISTRY)/$(IMAGE_NAME):latest
BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
LDFLAGS ?= "-X ${PKG}/pkg/azurefile.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/azurefile.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/azurefile.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
E2E_HELM_OPTIONS ?= --set image.azurefile.repository=$(REGISTRY)/$(IMAGE_NAME) --set image.azurefile.tag=$(IMAGE_VERSION) --set linux.dnsPolicy=ClusterFirstWithHostNet --set driver.userAgentSuffix="e2e-test"
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
ifdef KUBERNETES_VERSION # disable kubelet-registration-probe on capz cluster testing
E2E_HELM_OPTIONS += --set linux.enableRegistrationProbe=false --set windows.enableRegistrationProbe=false
endif
ifdef EXTERNAL_E2E_TEST_NFS
E2E_HELM_OPTIONS += --set feature.enableVolumeMountGroup=false --set feature.fsGroupPolicy=File
endif
GINKGO_FLAGS = -ginkgo.v
GO111MODULE = on
GOPATH ?= $(shell go env GOPATH)
Expand All @@ -42,17 +48,19 @@ ALL_OS = linux windows
ALL_ARCH.linux = amd64 arm64
ALL_OS_ARCH.linux = $(foreach arch, ${ALL_ARCH.linux}, linux-$(arch))
ALL_ARCH.windows = amd64
ALL_OSVERSIONS.windows := 1809 20H2 ltsc2022
ALL_OSVERSIONS.windows := 1809 ltsc2022
ALL_OS_ARCH.windows = $(foreach arch, $(ALL_ARCH.windows), $(foreach osversion, ${ALL_OSVERSIONS.windows}, windows-${osversion}-${arch}))
ALL_OS_ARCH = $(foreach os, $(ALL_OS), ${ALL_OS_ARCH.${os}})

# The current context of image building
# The architecture of the image
ARCH ?= amd64
# OS Version for the Windows images: 1809, 1903, 1909, 2004, ltsc2022
# OS Version for the Windows images: 1809 ltsc2022
OSVERSION ?= 1809
# Output type of docker buildx build
OUTPUT_TYPE ?= registry
# enable host process containers for Windows
USE_HOST_PROCESS_CONTAINERS ?= false

.EXPORT_ALL_VARIABLES:

Expand Down Expand Up @@ -91,11 +99,17 @@ e2e-test:

.PHONY: e2e-bootstrap
e2e-bootstrap: install-helm
docker pull $(IMAGE_TAG) || make container-all push-manifest
ifdef WINDOWS_USE_HOST_PROCESS_CONTAINERS
(docker pull $(CSI_IMAGE_TAG) && docker pull $(CSI_IMAGE_TAG)-windows-hp) || make container-all push-manifest
USE_HOST_PROCESS_CONTAINERS=${WINDOWS_USE_HOST_PROCESS_CONTAINERS}
else
docker pull $(CSI_IMAGE_TAG) || make container-all push-manifest
endif
ifdef TEST_WINDOWS
helm install azurefile-csi-driver charts/latest/azurefile-csi-driver --namespace kube-system --wait --timeout=15m -v=5 --debug \
${E2E_HELM_OPTIONS} \
--set windows.enabled=true \
--set windows.useHostProcessContainers=${USE_HOST_PROCESS_CONTAINERS} \
--set linux.enabled=false \
--set driver.azureGoSDKLogLevel=INFO \
--set controller.replicas=1 \
Expand Down Expand Up @@ -129,18 +143,37 @@ azurefile-darwin:

.PHONY: container
container: azurefile
docker build --no-cache -t $(IMAGE_TAG) --output=type=docker -f ./pkg/azurefileplugin/Dockerfile .
docker build --no-cache -t $(CSI_IMAGE_TAG) --output=type=docker -f ./pkg/azurefileplugin/Dockerfile .

.PHONY: container-linux
container-linux:
docker buildx build --pull --output=type=$(OUTPUT_TYPE) --platform="linux/$(ARCH)" \
-t $(IMAGE_TAG)-linux-$(ARCH) --build-arg ARCH=${ARCH} -f ./pkg/azurefileplugin/Dockerfile .
--provenance=false --sbom=false \
-t $(CSI_IMAGE_TAG)-linux-$(ARCH) --build-arg ARCH=${ARCH} -f ./pkg/azurefileplugin/Dockerfile .

.PHONY: container-windows
container-windows:
docker buildx build --pull --output=type=$(OUTPUT_TYPE) --platform="windows/$(ARCH)" \
-t $(IMAGE_TAG)-windows-$(OSVERSION)-$(ARCH) --build-arg OSVERSION=$(OSVERSION) \
-t $(CSI_IMAGE_TAG)-windows-$(OSVERSION)-$(ARCH) --build-arg OSVERSION=$(OSVERSION) \
--provenance=false --sbom=false \
--build-arg ARCH=${ARCH} -f ./pkg/azurefileplugin/Windows.Dockerfile .
# workaround: only build hostprocess image once
ifdef WINDOWS_USE_HOST_PROCESS_CONTAINERS
ifeq ($(OSVERSION),ltsc2022)
$(MAKE) container-windows-hostprocess
endif
endif

# Set --provenance=false to not generate the provenance (which is what causes the multi-platform index to be generated, even for a single platform).
.PHONY: container-windows-hostprocess
container-windows-hostprocess:
docker buildx build --pull --output=type=$(OUTPUT_TYPE) --platform="windows/$(ARCH)" --provenance=false --sbom=false \
-t $(CSI_IMAGE_TAG)-windows-hp -f ./pkg/azurefileplugin/WindowsHostProcess.Dockerfile .

.PHONY: container-windows-hostprocess-latest
container-windows-hostprocess-latest:
docker buildx build --pull --output=type=$(OUTPUT_TYPE) --platform="windows/$(ARCH)" --provenance=false --sbom=false \
-t $(CSI_IMAGE_TAG_LATEST)-windows-hp -f ./pkg/azurefileplugin/WindowsHostProcess.Dockerfile .

.PHONY: container-all
container-all: azurefile-windows
Expand All @@ -160,36 +193,40 @@ container-all: azurefile-windows

.PHONY: push-manifest
push-manifest:
docker manifest create --amend $(IMAGE_TAG) $(foreach osarch, $(ALL_OS_ARCH), $(IMAGE_TAG)-${osarch})
docker manifest create --amend $(CSI_IMAGE_TAG) $(foreach osarch, $(ALL_OS_ARCH), $(CSI_IMAGE_TAG)-${osarch})
set -x; \
for arch in $(ALL_ARCH.windows); do \
for osversion in $(ALL_OSVERSIONS.windows); do \
BASEIMAGE=mcr.microsoft.com/windows/nanoserver:$${osversion}; \
full_version=`docker manifest inspect $${BASEIMAGE} | jq -r '.manifests[0].platform["os.version"]'`; \
docker manifest annotate --os windows --arch $${arch} --os-version $${full_version} $(IMAGE_TAG) $(IMAGE_TAG)-windows-$${osversion}-$${arch}; \
docker manifest annotate --os windows --arch $${arch} --os-version $${full_version} $(CSI_IMAGE_TAG) $(CSI_IMAGE_TAG)-windows-$${osversion}-$${arch}; \
done; \
done
docker manifest push --purge $(IMAGE_TAG)
docker manifest inspect $(IMAGE_TAG)
docker manifest push --purge $(CSI_IMAGE_TAG)
docker manifest inspect $(CSI_IMAGE_TAG)
ifdef PUBLISH
docker manifest create --amend $(IMAGE_TAG_LATEST) $(foreach osarch, $(ALL_OS_ARCH), $(IMAGE_TAG)-${osarch})
docker manifest create --amend $(CSI_IMAGE_TAG_LATEST) $(foreach osarch, $(ALL_OS_ARCH), $(CSI_IMAGE_TAG)-${osarch})
set -x; \
for arch in $(ALL_ARCH.windows); do \
for osversion in $(ALL_OSVERSIONS.windows); do \
BASEIMAGE=mcr.microsoft.com/windows/nanoserver:$${osversion}; \
full_version=`docker manifest inspect $${BASEIMAGE} | jq -r '.manifests[0].platform["os.version"]'`; \
docker manifest annotate --os windows --arch $${arch} --os-version $${full_version} $(IMAGE_TAG_LATEST) $(IMAGE_TAG)-windows-$${osversion}-$${arch}; \
docker manifest annotate --os windows --arch $${arch} --os-version $${full_version} $(CSI_IMAGE_TAG_LATEST) $(CSI_IMAGE_TAG)-windows-$${osversion}-$${arch}; \
done; \
done
docker manifest inspect $(IMAGE_TAG_LATEST)
docker manifest inspect $(CSI_IMAGE_TAG_LATEST)
docker manifest create --amend $(CSI_IMAGE_TAG_LATEST)-windows-hp $(CSI_IMAGE_TAG_LATEST)-windows-hp
docker manifest inspect $(CSI_IMAGE_TAG_LATEST)-windows-hp
endif

.PHONY: push-latest
push-latest:
ifdef CI
docker manifest push --purge $(IMAGE_TAG_LATEST)
docker manifest push --purge $(CSI_IMAGE_TAG_LATEST)
docker manifest push --purge $(CSI_IMAGE_TAG_LATEST)-windows-hp
else
docker push $(IMAGE_TAG_LATEST)
docker push $(CSI_IMAGE_TAG_LATEST)
docker push $(CSI_IMAGE_TAG_LATEST)-windows-hp
endif

.PHONY: clean
Expand Down
2 changes: 2 additions & 0 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ aliases:
- dobsonj
- jsafrane
- tsmetana
- RomanBednar
- mpatlasov
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
### About
This driver allows Kubernetes to access [Azure File](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) volume using smb and nfs protocols, csi plugin name: `file.csi.azure.com`

Disclaimer: Deploying this driver manually is not an officially supported Microsoft product. For a fully managed and supported experience on Kubernetes, use [AKS with the managed Azure file csi driver](https://learn.microsoft.com/en-us/azure/aks/azure-file-csi).
Disclaimer: Deploying this driver manually is not an officially supported Microsoft product. For a fully managed and supported experience on Kubernetes, use [AKS with the managed Azure file csi driver](https://learn.microsoft.com/azure/aks/azure-files-csi).

### Project status: GA

### Container Images & Kubernetes Compatibility:
|Driver Version |Image | supported k8s version |
|----------------|---------------------------------------------------------- |-----------------------|
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | 1.21+ |
|v1.25.1 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.25.1 | 1.21+ |
|v1.24.0 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.24.0 | 1.21+ |
|v1.23.0 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.23.0 | 1.21+ |
|v1.28.0 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.28.0 | 1.21+ |
|v1.27.0 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.27.0 | 1.21+ |
|v1.26.3 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.26.3 | 1.21+ |

### Driver parameters
Please refer to [driver parameters](./docs/driver-parameters.md)
Expand All @@ -37,8 +37,10 @@ This option does not depend on cloud provider config file, supports cross subscr
### Install driver on a Kubernetes cluster
- install by [helm charts](./charts)
- install by [kubectl](./docs/install-azurefile-csi-driver.md)
- install open source csi driver on AKS, follow guide [here](./docs/install-driver-on-aks.md)
- install managed csi driver on following platforms:
- install open source CSI driver on following platforms:
- [AKS](./docs/install-driver-on-aks.md)
- [Azure RedHat OpenShift](https://github.com/ezYakaEagle442/aro-pub-storage/blob/master/setup-store-CSI-driver-azure-file.md)
- install managed CSI driver on following platforms:
- [AKS](https://learn.microsoft.com/en-us/azure/aks/csi-storage-drivers)
- [Azure RedHat OpenShift](https://docs.openshift.com/container-platform/4.11/storage/container_storage_interface/persistent-storage-csi-azure-file.html)

Expand All @@ -50,7 +52,8 @@ This option does not depend on cloud provider config file, supports cross subscr
- [NFS](./deploy/example/nfs)
- [Snapshot](./deploy/example/snapshot)
- [Resize](./deploy/example/resize)

- [Workload identity](./docs/workload-identity.md)

### Troubleshooting
- [CSI driver troubleshooting guide](./docs/csi-debug.md)

Expand Down
Loading