Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ schemars = "1"
clap = { version = "4.5.54", features = ["derive"] }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
rustls-pemfile = "2.2.0"
webpki = { package = "rustls-webpki", version = "0.103" }
sha2 = "0.10"
shadow-rs = "1.5.0"
snafu = { version = "0.8.9", features = ["futures"] }

Expand Down
3 changes: 3 additions & 0 deletions deploy/k8s-dev/console-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ rules:
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["cert-manager.io"]
resources: ["certificates", "issuers", "clusterissuers"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
Expand Down
10 changes: 10 additions & 0 deletions deploy/k8s-dev/operator-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ rules:
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["cert-manager.io"]
resources: ["certificates"]
verbs: ["get", "list", "watch", "create", "patch", "update"]
- apiGroups: ["cert-manager.io"]
resources: ["issuers", "clusterissuers"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
resourceNames: ["certificates.cert-manager.io"]
verbs: ["get"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
Expand Down
260 changes: 260 additions & 0 deletions deploy/rustfs-operator/crds/tenant-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,138 @@ spec:
serviceAccountName:
nullable: true
type: string
tls:
nullable: true
properties:
certManager:
nullable: true
properties:
caTrust:
nullable: true
properties:
caSecretRef:
nullable: true
properties:
key:
default: ca.crt
type: string
name:
type: string
required:
- name
type: object
clientCaSecretRef:
nullable: true
properties:
key:
default: ca.crt
type: string
name:
type: string
required:
- name
type: object
source:
default: CertificateSecretCa
enum:
- CertificateSecretCa
- SecretRef
- SystemCa
type: string
trustLeafCertificateAsCa:
default: false
type: boolean
trustSystemCa:
default: false
type: boolean
type: object
certificateName:
nullable: true
type: string
commonName:
nullable: true
type: string
dnsNames:
items:
type: string
type: array
duration:
nullable: true
type: string
includeGeneratedDnsNames:
default: true
type: boolean
issuerRef:
nullable: true
properties:
group:
default: cert-manager.io
type: string
kind:
default: Issuer
type: string
name:
type: string
required:
- name
type: object
manageCertificate:
default: false
type: boolean
privateKey:
nullable: true
properties:
algorithm:
nullable: true
type: string
encoding:
nullable: true
type: string
rotationPolicy:
nullable: true
type: string
size:
format: int32
nullable: true
type: integer
type: object
renewBefore:
nullable: true
type: string
secretName:
nullable: true
type: string
secretType:
nullable: true
type: string
usages:
items:
type: string
type: array
type: object
enableInternodeHttps:
default: false
type: boolean
mode:
default: disabled
enum:
- disabled
- external
- certManager
type: string
mountPath:
default: /var/run/rustfs/tls
type: string
requireSanMatch:
default: true
type: boolean
rotationStrategy:
default: Rollout
enum:
- Rollout
- HotReload
type: string
type: object
required:
- pools
type: object
Expand All @@ -1291,6 +1423,134 @@ spec:
availableReplicas:
format: int32
type: integer
certificates:
properties:
tls:
nullable: true
properties:
caSecretRef:
nullable: true
properties:
key:
nullable: true
type: string
name:
type: string
resourceVersion:
nullable: true
type: string
required:
- name
type: object
certificateRef:
nullable: true
properties:
apiVersion:
type: string
kind:
type: string
name:
type: string
observedGeneration:
format: int64
nullable: true
type: integer
ready:
nullable: true
type: boolean
reason:
nullable: true
type: string
required:
- apiVersion
- kind
- name
type: object
clientCaSecretRef:
nullable: true
properties:
key:
nullable: true
type: string
name:
type: string
resourceVersion:
nullable: true
type: string
required:
- name
type: object
dnsNames:
items:
type: string
type: array
expiresInSeconds:
format: int64
nullable: true
type: integer
ipAddresses:
items:
type: string
type: array
lastErrorMessage:
nullable: true
type: string
lastErrorReason:
nullable: true
type: string
lastRolloutTriggerTime:
nullable: true
type: string
lastValidatedTime:
nullable: true
type: string
managedCertificate:
nullable: true
type: boolean
mode:
type: string
mountPath:
nullable: true
type: string
notAfter:
nullable: true
type: string
notBefore:
nullable: true
type: string
observedHash:
nullable: true
type: string
ready:
type: boolean
rotationStrategy:
nullable: true
type: string
sanMatched:
nullable: true
type: boolean
serverSecretRef:
nullable: true
properties:
key:
nullable: true
type: string
name:
type: string
resourceVersion:
nullable: true
type: string
required:
- name
type: object
trustSource:
nullable: true
type: string
required:
- mode
- ready
type: object
type: object
conditions:
description: Kubernetes standard conditions
items:
Expand Down
Loading
Loading