Skip to content

Commit

Permalink
Merge pull request #6 from sighupio/feat/rook-v1-10-13
Browse files Browse the repository at this point in the history
Rook v1.10.13
  • Loading branch information
sbruzzese902 authored Jun 11, 2024
2 parents 2a6cf5d + 2536ffe commit cfa4836
Show file tree
Hide file tree
Showing 85 changed files with 566 additions and 65 deletions.
148 changes: 148 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Copyright (c) 2024-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: pipeline
name: license

steps:
- name: check
image: docker.io/library/golang:1.20
pull: always
commands:
- go install github.com/google/addlicense@v1.1.1
- addlicense -c "SIGHUP s.r.l" -v -l bsd -y "2017-present" --check .

---
kind: pipeline
name: policeman

platform:
os: linux
arch: amd64

depends_on:
- license

steps:
- name: lint
image: quay.io/sighup/policeman
pull: always
environment:
# Identifies false positives like missing 'selector'. On Kustomize is common to don't set them
VALIDATE_KUBERNETES_KUBEVAL: "false"
# We use a lot of copy paste in our code, is intended. So it important to don't use this linter
VALIDATE_JSCPD: "false"
VALIDATE_TERRAFORM_TFLINT: "false"
# hadolint already validated dockerfiles
VALIDATE_DOCKERFILE: "false"
VALIDATE_NATURAL_LANGUAGE: "false"
depends_on:
- clone

- name: render
image: quay.io/sighup/e2e-testing:1.1.0_0.7.0_3.1.1_1.9.4_1.21.12_3.8.7_4.21.1
pull: always
depends_on:
- clone
commands:
- kustomize build katalog/rook-hostcluster > rook-hostcluster.yml
- kustomize build katalog/rook-operator > rook-operator.yml

- &check-deprecated-apis
name: check-deprecated-apis-rook-hostcluster
image: us-docker.pkg.dev/fairwinds-ops/oss/pluto:v5
pull: always
depends_on:
- render
commands:
# we use --ignore-deprecations because we don't want the CI to fail when the API has not been removed yet.
- /pluto detect $${KUBERNETES_MANIFESTS} --ignore-deprecations --target-versions=k8s=v1.25.0
environment:
KUBERNETES_MANIFESTS: rook-hostcluster.yml

- <<: *check-deprecated-apis
name: check-deprecated-apis-rook-operator
environment:
KUBERNETES_MANIFESTS: rook-operator.yml

---
kind: pipeline
name: release

depends_on:
- policeman

platform:
os: linux
arch: amd64

trigger:
ref:
include:
- refs/tags/**

steps:
- name: prepare-tar-gz
image: alpine:latest
pull: always
depends_on: [ clone ]
commands:
- tar -zcvf fury-kubernetes-storage-${DRONE_TAG}.tar.gz katalog/ LICENSE README.md

- name: prepare-release-notes
image: quay.io/sighup/fury-release-notes-plugin:3.7_2.8.4
pull: always
depends_on: [ clone ]
settings:
release_notes_file_path: release-notes.md

- name: publish-prerelease
image: plugins/github-release
pull: always
depends_on:
- prepare-tar-gz
- prepare-release-notes
settings:
api_key:
from_secret: github_token
file_exists: overwrite
files:
- fury-kubernetes-storage-${DRONE_TAG}.tar.gz
prerelease: true
overwrite: true
title: "Preview ${DRONE_TAG}"
note: release-notes.md
checksum:
- md5
- sha256
when:
ref:
include:
- refs/tags/v**-rc**

- name: publish-stable
image: plugins/github-release
pull: always
depends_on:
- prepare-tar-gz
- prepare-release-notes
settings:
api_key:
from_secret: github_token
file_exists: overwrite
files:
- fury-kubernetes-storage-${DRONE_TAG}.tar.gz
prerelease: false
overwrite: true
title: "Release ${DRONE_TAG}"
note: release-notes.md
checksum:
- md5
- sha256
when:
ref:
exclude:
- refs/tags/v**-rc**
include:
- refs/tags/v**
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Kubernetes Fury Storage
</h1>

![Release](https://img.shields.io/badge/Latest%20Release-v0.1.0-blue)
![Release](https://img.shields.io/badge/Latest%20Release-v0.2.0-blue)
![License](https://img.shields.io/github/license/sighupio/fury-kubernetes-logging?label=License)
![Slack](https://img.shields.io/badge/slack-@kubernetes/fury-yellow.svg?logo=slack&label=Slack)

Expand All @@ -25,7 +25,7 @@ The following packages are included in the Fury Kubernetes Storage katalog:

| Package | Version | Description |
|----------------------------------------------|-----------|-------------------------------------------------------------------------------------------------|
| [rook-operator](katalog/rook-operator) | `v1.10.5` | Rook provides a way to run a highly available, durable Ceph storage in your Kubernetes cluster. |
| [rook-operator](katalog/rook-operator) | `v1.10.13`| Rook provides a way to run a highly available, durable Ceph storage in your Kubernetes cluster. |
| [rook-hostcluster](katalog/rook-hostcluster) | `NA` | Rook CRDs to run a production ready Ceph cluster providing Block and File storage. | |

Click on each package to see its full documentation.
Expand All @@ -37,6 +37,7 @@ Click on each package to see its full documentation.
| `1.22.x` | :white_check_mark: | No known issues |
| `1.23.x` | :white_check_mark: | No known issues |
| `1.24.x` | :white_check_mark: | No known issues |
| `1.25.x` | :white_check_mark: | No known issues |

Check the [compatibility matrix][compatibility-matrix] for additional information about previous releases of the modules.

Expand Down Expand Up @@ -64,9 +65,9 @@ bases:
- name: monitoring/promtheus-operator
version: "v2.0.1"
- name: storage/rook-operator
version: "v0.1.0"
version: "v0.2.0"
- name: storage/rook-hostcluster
version: "v0.1.0"
version: "v0.2.0"
```
> See `furyctl` [documentation][furyctl-repo] for additional details about `Furyfile.yml` format.
Expand Down
10 changes: 6 additions & 4 deletions docs/COMPATIBILITY_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

## Tested Kubernetes versions

| Module Version / Kubernetes Version | 1.22.X | 1.23.X | 1.24.X |
|-------------------------------------|:------------------:|--------------------|--------------------|
| v0.1.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| Module Version / Kubernetes Version | 1.22.X | 1.23.X | 1.24.X | 1.25.X |
|-------------------------------------|:------------------:|--------------------|--------------------|--------------------|
| v0.1.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
| v0.2.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

## Rook Operator compatibility against Ceph cluster versions

| Module Version / Ceph Cluster Version | >= 16.2.0 | >= 17.2.0 |
| Module Version / Ceph Cluster Version | >= 16.2.0 | >= 17.2.0 |
|----------------------------------------|--------------------|--------------------|
| v0.1.0 | :white_check_mark: | :white_check_mark: |
| v0.2.0 | :white_check_mark: | :white_check_mark: |

For more information, visit: [Rook Compatibility Matrix](https://rook.io/docs/rook/v1.10/Upgrade/ceph-upgrade/#supported-versions)
17 changes: 17 additions & 0 deletions docs/releases/v0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Storage Add-On Module Release 0.2.0

Welcome to the latest release of the `storage` add-on module for the [`Kubernetes Fury Distribution`](https://github.com/sighupio/fury-distribution), maintained by team SIGHUP.

This release includes a new version of Rook Operator.

## Component Images 🚢

| Component | Supported Version | Previous Version |
| --------------------- | ---------------------------------------------------------------- | ---------------- |
| `rook-operator` | [`v1.10.13`](https://github.com/rook/rook/releases/tag/v1.10.13) | `v1.10.5` |

> Please refer the individual release notes to get a detailed info on the releases.
## Deploy 🚀

To deploy this module, please refer to the [deployment section](../../README.md#deployment) of the main README.
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/ceph-blockpool.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/ceph-cluster.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: ceph.rook.io/v1
kind: CephCluster
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/ceph-filesystem.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

apiVersion: ceph.rook.io/v1
kind: CephFilesystem
metadata:
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/monitoring/kustomization.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/monitoring/localrules.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/monitoring/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/sc-cephfs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-hostcluster/sc-rbd.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
Expand Down
2 changes: 1 addition & 1 deletion katalog/rook-operator/MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To prepare a new release of this package:
1. Get the current upstream release

```bash
export ROOK_RELEASE=v1.10.5
export ROOK_RELEASE=v1.10.13
wget -c https://raw.githubusercontent.com/rook/rook/${ROOK_RELEASE}/deploy/examples/common.yaml \
https://raw.githubusercontent.com/rook/rook/${ROOK_RELEASE}/deploy/examples/crds.yaml \
https://raw.githubusercontent.com/rook/rook/${ROOK_RELEASE}/deploy/examples/toolbox.yaml \
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-operator/cephfs-csi-nodeplugin-cr.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# TODO: remove this, once https://github.com/rook/rook/issues/10141
# is resolved.
kind: ClusterRole
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-operator/cephfs-csi-nodeplugin-crb.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-operator/cephfs-csi-provisioner-role-cfg-rb.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
4 changes: 4 additions & 0 deletions katalog/rook-operator/cephfs-csi-provisioner-role-crb.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand All @@ -6,12 +10,15 @@ rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "patch"]
verbs: ["get", "list", "watch", "patch", "update"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
Expand Down
Loading

0 comments on commit cfa4836

Please sign in to comment.