Skip to content

Commit 4a59215

Browse files
authored
operator nfs-provisioner-operator (0.0.8)
1 parent f47196e commit 4a59215

File tree

6 files changed

+677
-0
lines changed

6 files changed

+677
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.15.0
6+
creationTimestamp: null
7+
name: nfsprovisioners.cache.jhouse.com
8+
spec:
9+
group: cache.jhouse.com
10+
names:
11+
kind: NFSProvisioner
12+
listKind: NFSProvisionerList
13+
plural: nfsprovisioners
14+
singular: nfsprovisioner
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: NFSProvisioner is the Schema for the nfsprovisioners API
21+
properties:
22+
apiVersion:
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28+
type: string
29+
kind:
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36+
type: string
37+
metadata:
38+
type: object
39+
spec:
40+
description: NFSProvisionerSpec defines the desired state of NFSProvisioner
41+
properties:
42+
hostPathDir:
43+
description: HostPathDir is the direcotry where NFS server will use.
44+
type: string
45+
nfsImageConfiguration:
46+
description: NFSImageConfigurations hold the image configuration
47+
properties:
48+
image:
49+
default: k8s.gcr.io/sig-storage/nfs-provisioner@sha256:e943bb77c7df05ebdc8c7888b2db289b13bf9f012d6a3a5a74f14d4d5743d439
50+
description: Set nfs provisioner operator image
51+
type: string
52+
imagePullPolicy:
53+
default: IfNotPresent
54+
description: Image PullPolicy is for nfs provisioner operator
55+
image.
56+
type: string
57+
required:
58+
- image
59+
- imagePullPolicy
60+
type: object
61+
nodeSelector:
62+
additionalProperties:
63+
type: string
64+
description: NFS server will be running on a specific node by NodeSeletor
65+
type: object
66+
pvc:
67+
description: |-
68+
PVC Name is the PVC resource that already created for NFS server.
69+
Do not set StorageClass name with this param. Then, operator will fail to deploy NFS Server.
70+
type: string
71+
scForNFS:
72+
description: StorageClass Name for NFS Provisioner is the StorageClass
73+
name that NFS Provisioner will use. Default value is `nfs`
74+
type: string
75+
scForNFSPvc:
76+
description: |-
77+
StorageClass Name for NFS server will provide a PVC for NFS server.
78+
Do not set PVC name with this param. Then, operator will fail to deploy NFS Server
79+
type: string
80+
storageSize:
81+
description: |-
82+
StorageSize is the PVC size for NFS server.
83+
By default, it sets 10G.
84+
type: string
85+
type: object
86+
status:
87+
description: NFSProvisionerStatus defines the observed state of NFSProvisioner
88+
properties:
89+
error:
90+
description: Error show error messages briefly
91+
type: string
92+
nodes:
93+
description: Nodes are the names of the NFS pods
94+
items:
95+
type: string
96+
type: array
97+
required:
98+
- error
99+
- nodes
100+
type: object
101+
type: object
102+
served: true
103+
storage: true
104+
subresources:
105+
status: {}
106+
status:
107+
acceptedNames:
108+
kind: ""
109+
plural: ""
110+
conditions: null
111+
storedVersions: null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
creationTimestamp: null
5+
labels:
6+
control-plane: controller-manager
7+
name: nfs-provisioner-operator-controller-manager-metrics-service
8+
spec:
9+
ports:
10+
- name: https
11+
port: 8443
12+
targetPort: https
13+
selector:
14+
control-plane: controller-manager
15+
status:
16+
loadBalancer: {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
creationTimestamp: null
5+
name: nfs-provisioner-operator-metrics-reader
6+
rules:
7+
- nonResourceURLs:
8+
- /metrics
9+
verbs:
10+
- get

0 commit comments

Comments
 (0)