07-subscription.crd.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ##---
  2. # Source: olm/templates/07-subscription.crd.yaml
  3. apiVersion: apiextensions.k8s.io/v1beta1
  4. kind: CustomResourceDefinition
  5. metadata:
  6. name: subscriptions.operators.coreos.com
  7. annotations:
  8. displayName: Subscription
  9. description: Subcribes service catalog to a source and channel to recieve updates for packages.
  10. spec:
  11. group: operators.coreos.com
  12. version: v1alpha1
  13. versions:
  14. - name: v1alpha1
  15. served: true
  16. storage: true
  17. scope: Namespaced
  18. names:
  19. plural: subscriptions
  20. singular: subscription
  21. kind: Subscription
  22. listKind: SubscriptionList
  23. categories:
  24. - all
  25. - olm
  26. additionalPrinterColumns:
  27. - name: Package
  28. type: string
  29. description: The package subscribed to
  30. JSONPath: .spec.name
  31. - name: Source
  32. type: string
  33. description: The catalog source for the specified package
  34. JSONPath: .spec.source
  35. - name: Channel
  36. type: string
  37. description: The channel of updates to subscribe to
  38. JSONPath: .spec.channel
  39. subresources:
  40. # status enables the status subresource.
  41. status: {}
  42. validation:
  43. openAPIV3Schema:
  44. properties:
  45. spec:
  46. type: object
  47. description: Spec for a Subscription
  48. required:
  49. - source
  50. - name
  51. properties:
  52. source:
  53. type: string
  54. description: Name of a CatalogSource that defines where and how to find the channel
  55. sourceNamespace:
  56. type: string
  57. description: The Kubernetes namespace where the CatalogSource used is located
  58. name:
  59. type: string
  60. description: Name of the package that defines the application
  61. channel:
  62. type: string
  63. description: Name of the channel to track
  64. startingCSV:
  65. type: string
  66. description: Name of the AppType that this subscription tracks
  67. installPlanApproval:
  68. type: string
  69. description: Approval mode for emitted InstallPlans
  70. enum:
  71. - Manual
  72. - Automatic