Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
78bc7b0
add .vscode to gitignore
Mar 31, 2020
1e8f127
migrate to c2devel repository
Mar 31, 2020
77e9e02
replace new dependencies sources with c2devel
gaisin Jul 22, 2021
c9b8841
cloud: add io2 and gp2 volume types
Mar 31, 2020
b89bf3c
cloud: switch to volumeId-based device managing
Mar 31, 2020
56dbcb2
deploy: change deploy yamls to use new repo
Oct 8, 2019
c5fb9e2
examples: fix examples to meet c2 reqs
Apr 1, 2020
befb9f6
change region to 'croc'
Apr 30, 2020
452dc7d
add prebuild kusctomize config
Jun 19, 2020
adde6f3
add AttachVolume method and remove Device from call
Jun 23, 2020
31d6d94
temporarily skip test for AttachDisk
Jun 25, 2020
01190c9
change sc1 to st2 in tests
Jun 25, 2020
0342ad9
readme: add release-process docs
Jun 30, 2020
821669a
deploy: change image tags to c2 dhub
Jul 2, 2020
1924669
deploy: regenerete deployment bundle
Jul 2, 2020
198e396
docs: add info abot k_bundle file in release docs
Jul 2, 2020
9f74f90
cloud: remove deprecated volume types
Jul 16, 2020
5aab3df
e2e driver: set valid minimal disk sizes
Jul 16, 2020
07f6332
e2e: change io1 to io2 volume type
Jul 16, 2020
dde7593
docs: add test docs
Jul 16, 2020
cb04c19
cloud: rewrite metadata aws region from env
Apr 1, 2020
1385876
ignore VolumeIsNotAttached error while detaching disk
gaisin Sep 10, 2021
c555614
use VolumeID instead of Device
gaisin Sep 10, 2021
ae156ed
deploy: prepare kustomization for the release, del workflow
Sep 29, 2021
72c0c34
deploy: update k_bundle
Sep 29, 2021
4c64190
tests: fix failures, fix vendoring
Oct 21, 2021
00c0992
cloud: delete exceed volume types, fix io2 iops count
Oct 21, 2021
371ff57
specs: change the supported snapshot api version in tests
Oct 22, 2021
15b8977
doc: change the documentation to actual
Oct 22, 2021
9ae158f
doc: change the go version to actual
Nov 10, 2021
7cb687f
tests: fix unit io2 tests
Nov 10, 2021
e3eef4c
driver: change max iops per Gb
Nov 10, 2021
223b324
docs: add temporary workaround
Nov 10, 2021
837adc3
deploy: bump version
Nov 11, 2021
b6a8f28
controller, cloud: add method ResizeDiskC2, update tests
Mar 23, 2022
fb50efb
e2e, docs: change size increment in resize test, update test docs
Mar 27, 2022
a800260
deploy: bump version
Akulaev May 12, 2022
69a42b7
fixes after rebase
CrocBomber Jun 5, 2023
90596e3
fix formatting after rebase
CrocBomber Jun 5, 2023
2edd613
fix tests after rebase
CrocBomber Jun 5, 2023
25fcabc
fix for linter after rebase
CrocBomber Jun 5, 2023
7cf923b
update specs and instructions
CrocBomber Jun 28, 2023
d0db321
add tolerations and labels for ebs
CrocBomber Jun 28, 2023
2070639
add instruction how to debug
CrocBomber Jul 5, 2023
2e0ed34
fix kustomize after rebase
CrocBomber Jul 11, 2023
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
27 changes: 0 additions & 27 deletions .github/workflows/helm-chart-release.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/release.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ vendor/

# .image-* files used by Makefile
.image-*

# VSCode
.vscode/
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
# for info on BUILDPLATFORM, TARGETOS, TARGETARCH, etc.
FROM --platform=$BUILDPLATFORM golang:1.20 AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
WORKDIR /go/src/github.com/c2devel/aws-ebs-csi-driver
COPY go.* .
ARG GOPROXY
RUN go mod download
Expand All @@ -27,13 +27,5 @@ ARG VERSION
RUN OS=$TARGETOS ARCH=$TARGETARCH make $TARGETOS/$TARGETARCH

FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-csi-ebs:latest.2 AS linux-amazon
COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver /bin/aws-ebs-csi-driver
COPY --from=builder /go/src/github.com/c2devel/aws-ebs-csi-driver/bin/aws-ebs-csi-driver /bin/aws-ebs-csi-driver
ENTRYPOINT ["/bin/aws-ebs-csi-driver"]

FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-windows-base:1809 AS windows-ltsc2019
COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver.exe /aws-ebs-csi-driver.exe
ENTRYPOINT ["/aws-ebs-csi-driver.exe"]

FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-windows-base:ltsc2022 AS windows-ltsc2022
COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver.exe /aws-ebs-csi-driver.exe
ENTRYPOINT ["/aws-ebs-csi-driver.exe"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION?=v1.20.0
VERSION?=v1.20.0-CROC1

PKG=github.com/kubernetes-sigs/aws-ebs-csi-driver
PKG=github.com/c2devel/aws-ebs-csi-driver
GIT_COMMIT?=$(shell git rev-parse HEAD)
BUILD_DATE?=$(shell date -u -Iseconds)

Expand All @@ -25,7 +25,7 @@ GOPATH=$(shell go env GOPATH)
GOOS=$(shell go env GOOS)
GOBIN=$(shell pwd)/bin

REGISTRY?=gcr.io/k8s-staging-provider-aws
REGISTRY?=registry.cloud.croc.ru/kaas
IMAGE?=$(REGISTRY)/aws-ebs-csi-driver
TAG?=$(GIT_COMMIT)

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Amazon Elastic Block Store (EBS) CSI driver
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/kubernetes-sigs/aws-ebs-csi-driver)](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/kubernetes-sigs/aws-ebs-csi-driver)](https://goreportcard.com/report/github.com/kubernetes-sigs/aws-ebs-csi-driver)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/c2devel/aws-ebs-csi-driver)](https://github.com/c2devel/aws-ebs-csi-driver/releases)
[![Go Report Card](https://goreportcard.com/badge/github.com/c2devel/aws-ebs-csi-driver)](https://goreportcard.com/report/github.com/c2devel/aws-ebs-csi-driver)

## Скорректированный релиз процесс

см. [release process](docs/release.md)

## Инструкция по отладке

см. [debuging](docs/debuging.md)

## Overview

Expand Down
6 changes: 3 additions & 3 deletions charts/aws-ebs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 2.20.0
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
home: https://github.com/c2devel/aws-ebs-csi-driver
sources:
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver
- https://github.com/c2devel/aws-ebs-csi-driver
keywords:
- aws
- ebs
- csi
maintainers:
- name: Kubernetes Authors
url: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/
url: https://github.com/c2devel/aws-ebs-csi-driver/
8 changes: 3 additions & 5 deletions charts/aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ spec:
key: access_key
optional: true
- name: AWS_EC2_ENDPOINT
valueFrom:
configMapKeyRef:
name: aws-meta
key: endpoint
optional: true
value: https://api.cloud.croc.ru
- name: AWS_REGION
value: croc
{{- with .Values.controller.region }}
- name: AWS_REGION
value: {{ . }}
Expand Down
10 changes: 6 additions & 4 deletions charts/aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
operator: "Exists"
{{- end }}
{{- with .Values.node.securityContext }}
securityContext:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
Expand Down Expand Up @@ -77,6 +77,8 @@ spec:
{{- with .Values.node.env }}
{{- . | toYaml | nindent 12 }}
{{- end }}
- name: AWS_REGION
value: croc
{{- with .Values.controller.envFrom }}
envFrom:
{{- . | toYaml | nindent 12 }}
Expand Down Expand Up @@ -106,7 +108,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.node.containerSecurityContext }}
securityContext:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
- name: node-driver-registrar
Expand Down Expand Up @@ -155,7 +157,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.sidecars.nodeDriverRegistrar.securityContext }}
securityContext:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
- name: liveness-probe
Expand All @@ -178,7 +180,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.sidecars.livenessProbe.securityContext }}
securityContext:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
Expand Down
22 changes: 12 additions & 10 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Declare variables to be passed into your templates.

image:
repository: public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver
repository: registry.cloud.croc.ru/kaas/aws-ebs-csi-driver
# Overrides the image tag whose default is v{{ .Chart.AppVersion }}
tag: ""
tag: "v1.20.0-CROC1"
pullPolicy: IfNotPresent

# -- Custom labels to add into metadata
Expand All @@ -18,7 +18,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
repository: registry.cloud.croc.ru/kaas/external-provisioner
tag: "v3.5.0-eks-1-27-3"
logLevel: 2
additionalArgs: []
Expand All @@ -40,7 +40,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-attacher
repository: registry.cloud.croc.ru/kaas/external-attacher
tag: "v4.3.0-eks-1-27-3"
# Tune leader lease election for csi-attacher.
# Leader election is on by default.
Expand All @@ -64,7 +64,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter
repository: registry.cloud.croc.ru/kaas/csi-snapshotter
tag: "v6.2.1-eks-1-27-3"
logLevel: 2
additionalArgs: []
Expand All @@ -75,7 +75,7 @@ sidecars:
livenessProbe:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe
repository: registry.cloud.croc.ru/kaas/livenessprobe
tag: "v2.10.0-eks-1-27-3"
additionalArgs: []
resources: {}
Expand All @@ -86,7 +86,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-resizer
repository: registry.cloud.croc.ru/kaas/external-resizer
tag: "v1.8.0-eks-1-27-3"
# Tune leader lease election for csi-resizer.
# Leader election is on by default.
Expand All @@ -108,7 +108,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar
repository: registry.cloud.croc.ru/kaas/node-driver-registrar
tag: "v2.8.0-eks-1-27-3"
logLevel: 2
additionalArgs: []
Expand All @@ -120,7 +120,7 @@ sidecars:
env: []
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/ebs-csi-driver/volume-modifier-for-k8s
repository: registry.cloud.croc.ru/kaas/volume-modifier-for-k8s
tag: "v0.1.0"
leaderElection:
enabled: true
Expand Down Expand Up @@ -205,7 +205,8 @@ controller:
k8sTagClusterId:
logLevel: 2
userAgentExtra: "helm"
nodeSelector: {}
nodeSelector:
node-role.kubernetes.io/master: ""
podAnnotations: {}
podLabels: {}
priorityClassName: system-cluster-critical
Expand Down Expand Up @@ -241,6 +242,7 @@ controller:
- effect: NoExecute
operator: Exists
tolerationSeconds: 300
- operator: Exists
# TSCs without the label selector stanza
#
# Example:
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

flag "github.com/spf13/pflag"

"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/cloud"
"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver"
"github.com/c2devel/aws-ebs-csi-driver/pkg/cloud"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver"
logsapi "k8s.io/component-base/logs/api/v1"
json "k8s.io/component-base/logs/json"
"k8s.io/component-base/metrics/legacyregistry"
Expand Down
4 changes: 2 additions & 2 deletions cmd/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

flag "github.com/spf13/pflag"

"github.com/kubernetes-sigs/aws-ebs-csi-driver/cmd/options"
"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver"
"github.com/c2devel/aws-ebs-csi-driver/cmd/options"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver"

"k8s.io/component-base/featuregate"
logsapi "k8s.io/component-base/logs/api/v1"
Expand Down
2 changes: 1 addition & 1 deletion cmd/options/server_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package options
import (
flag "github.com/spf13/pflag"

"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver"
)

// ServerOptions contains options and configuration settings for the driver server.
Expand Down
2 changes: 1 addition & 1 deletion cmd/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

flag "github.com/spf13/pflag"

"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/driver"
"github.com/c2devel/aws-ebs-csi-driver/pkg/driver"
)

func TestGetOptions(t *testing.T) {
Expand Down
Loading