Skip to content

Instantly share code, notes, and snippets.

@tiraboschi
Created December 18, 2019 21:41
Show Gist options
  • Save tiraboschi/9b54fd360cbff8cc61084d19229e839f to your computer and use it in GitHub Desktop.
Save tiraboschi/9b54fd360cbff8cc61084d19229e839f to your computer and use it in GitHub Desktop.
hpp-csv
---
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: "\n [\n {\n\t\t \"apiVersion\": \"hostpathprovisioner.kubevirt.io/v1alpha1\",\n\t\t
\ \"kind\": \"HostPathProvisioner\",\n\t\t \"metadata\": {\n\t\t\t\"name\":
\"hostpath-provisioner\"\n\t\t },\n\t\t \"spec\": {\n\t\t\t\"imagePullPolicy\":\"IfNotPresent\",\n\t\t\t\"pathConfig\":
{\n\t\t\t \"path\": \"/var/hpvolumes\",\n\t\t\t \"useNamingPrefix\": \"false\"\n\t\t\t}\n
\ }\n }\n ]"
capabilities: Full Lifecycle
categories: Storage
description: Creates and maintains hostpath provisioner deployments
name: hostpathprovisioneroperator.1.0.0
namespace: kubevirt-hyperconverged
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: Represents a HostPathProvisioner deployment
displayName: HostPathProvisioner deployment
kind: HostPathProvisioner
name: hostpathprovisioners.hostpathprovisioner.kubevirt.io
specDescriptors:
- description: The ImageRegistry to use for the HostPathProvisioner components.
displayName: ImageRegistry
path: imageRegistry
x-descriptors:
- urn:alm:descriptor:text
- description: The ImageTag to use for the HostPathProvisioner components.
displayName: ImageTag
path: imageTag
x-descriptors:
- urn:alm:descriptor:text
- description: The ImagePullPolicy to use for the HostPathProvisioner components.
displayName: ImagePullPolicy
path: imagePullPolicy
x-descriptors:
- urn:alm:descriptor:io.kubernetes:imagePullPolicy
- description: The PathConfig object allows you to specify where and how you
want the directories created that will back the PVs.
displayName: PathConfig
path: pathConfig
x-descriptors:
- urn:alm:descriptor:text
statusDescriptors:
- description: Explanation for the current status of the HostPathProvisioner
deployment.
displayName: Conditions
path: conditions
x-descriptors:
- urn:alm:descriptor:io.kubernetes.conditions
- description: The observed version of the HostPathProvisioner deployment.
displayName: Observed HostPathProvisioner Version
path: observedVersion
x-descriptors:
- urn:alm:descriptor:text
- description: The targeted version of the HostPathProvisioner deployment.
displayName: Target HostPathProvisioner Version
path: targetVersion
x-descriptors:
- urn:alm:descriptor:text
- description: The version of the HostPathProvisioner Operator
displayName: HostPathProvisioner Operator Version
path: operatorVersion
x-descriptors:
- urn:alm:descriptor:text
version: v1alpha1
description: |2
Hostpath provisioner is a local storage provisioner that uses kubernetes hostpath support to create directories on the host that map to a PV. These PVs are dynamically created when a new PVC is requested.
displayName: Hostpath Provisioner
icon:
- base64data: ""
mediatype: image/png
install:
spec:
clusterPermissions:
- rules:
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- '*'
- apiGroups:
- ""
resources:
- persistentvolumeclaims
verbs:
- get
- list
- watch
- create
- update
- apiGroups:
- ""
resources:
- events
verbs:
- list
- watch
- create
- patch
- update
- apiGroups:
- rbac.authorization.k8s.io
resourceNames:
- hostpath-provisioner
resources:
- clusterrolebindings
verbs:
- update
- delete
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
verbs:
- list
- get
- watch
- create
- apiGroups:
- rbac.authorization.k8s.io
resourceNames:
- hostpath-provisioner
resources:
- clusterroles
verbs:
- update
- delete
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
verbs:
- list
- get
- watch
- create
- apiGroups:
- apps
resourceNames:
- hostpath-provisioner-operator
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- hostpathprovisioner.kubevirt.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
verbs:
- list
- get
- watch
- create
- apiGroups:
- security.openshift.io
resourceNames:
- hostpath-provisioner
resources:
- securitycontextconstraints
verbs:
- delete
- update
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
serviceAccountName: hostpath-provisioner-operator
deployments:
- name: hostpath-provisioner-operator
spec:
replicas: 1
selector:
matchLabels:
name: hostpath-provisioner-operator
operator.hostpath-provisioner.kubevirt.io: ""
strategy: {}
template:
metadata:
labels:
name: hostpath-provisioner-operator
operator.hostpath-provisioner.kubevirt.io: ""
spec:
containers:
- env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: hostpath-provisioner-operator
- name: PROVISIONER_IMAGE
value: quay.io/kubevirt/hostpath-provisioner:v0.2.2
- name: PULL_POLICY
value: IfNotPresent
image: quay.io/kubevirt/hostpath-provisioner-operator:v0.2.9
imagePullPolicy: IfNotPresent
name: hostpath-provisioner-operator
resources: {}
securityContext:
runAsNonRoot: true
serviceAccountName: hostpath-provisioner-operator
permissions:
- rules:
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- list
- get
- watch
- create
- apiGroups:
- apps
resourceNames:
- hostpath-provisioner
resources:
- daemonsets
verbs:
- delete
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- create
- apiGroups:
- ""
resourceNames:
- hostpath-provisioner-admin
resources:
- serviceaccounts
verbs:
- '*'
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- list
- get
- watch
- create
serviceAccountName: hostpath-provisioner-operator
strategy: deployment
installModes:
- supported: true
type: OwnNamespace
- supported: true
type: SingleNamespace
- supported: true
type: MultiNamespace
- supported: true
type: AllNamespaces
keywords:
- Hostpath Provisioner
- Storage
labels:
alm-owner-hostpath-provisioner: hostpath-provisioner-operator
operated-by: hostpath-provisioner-operator
links:
- name: Hostpath Provisioner
url: https://github.com/kubevirt/hostpath-provisioner/blob/master/README.md
- name: Source Code
url: https://github.com/kubevirt/hostpath-provisioner
maintainers:
- email: kubevirt-dev@googlegroups.com
name: KubeVirt project
maturity: alpha
provider:
name: KubeVirt/Hostpath-provisioner project
selector:
matchLabels:
alm-owner-hostpath-provisioner: hostpath-provisioner-operator
operated-by: hostpath-provisioner-operator
version: 1.0.0
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
labels:
operator.hostpathprovisioner.kubevirt.io: ""
name: hostpathprovisioners.hostpathprovisioner.kubevirt.io
spec:
group: hostpathprovisioner.kubevirt.io
names:
kind: HostPathProvisioner
listKind: HostPathProvisionerList
plural: hostpathprovisioners
shortNames:
- hpp
- hpps
singular: hostpathprovisioner
scope: Cluster
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
imagePullPolicy:
enum:
- Always
- IfNotPresent
- Never
type: string
imageRegistry:
type: string
imageTag:
type: string
pathConfig:
properties:
path:
type: string
useNamingPrefix:
enum:
- "true"
- "false"
type: string
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment