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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Details:
- [Serving Configuration](https://knative.dev/docs/install/operator/configuring-serving-cr/)
- [Eventing Configuration](https://knative.dev/docs/install/operator/configuring-eventing-cr/)
- [Upgrade](docs/upgrade.md)
- [Customizing generated resources with patches](docs/resource-patches.md)
- [Multi-cluster deployment](docs/multicluster.md)
- [Development](docs/development.md)
- [Multi-cluster E2E testing](docs/development/e2e-multicluster.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,57 @@ spec:
description: Labels overrides labels for the namespace and its template.
type: object
type: object
patches:
description: Patches customize generated resources after all built-in transformations have been applied.
items:
description: ResourcePatch customizes one generated Kubernetes resource.
properties:
patch:
description: Patch defines the patch type and content to apply.
properties:
content:
description: Content is a JSON or YAML patch document.
minLength: 1
type: string
type:
description: 'Type is the patch type: "json", "merge", or "strategic".'
enum:
- json
- merge
- strategic
type: string
required:
- content
- type
type: object
target:
description: Target identifies exactly one generated resource to patch.
properties:
apiVersion:
description: APIVersion is the API version of the target resource, for example "apps/v1".
minLength: 1
type: string
kind:
description: Kind is the Kubernetes kind of the target resource, for example "Deployment".
minLength: 1
type: string
name:
description: Name is the name of the target resource, for example "activator".
minLength: 1
type: string
namespace:
description: Namespace optionally disambiguates resources with the same API version, kind, and name.
type: string
required:
- apiVersion
- kind
- name
type: object
required:
- patch
- target
type: object
type: array
podDisruptionBudgets:
description: PodDisruptionBudgetOverride overrides PodDisruptionBudget configurations via minAvailable.
items:
Expand Down
51 changes: 51 additions & 0 deletions config/charts/knative-operator/templates/crds/knativeservings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,57 @@ spec:
description: Labels overrides labels for the namespace and its template.
type: object
type: object
patches:
description: Patches customize generated resources after all built-in transformations have been applied.
items:
description: ResourcePatch customizes one generated Kubernetes resource.
properties:
patch:
description: Patch defines the patch type and content to apply.
properties:
content:
description: Content is a JSON or YAML patch document.
minLength: 1
type: string
type:
description: 'Type is the patch type: "json", "merge", or "strategic".'
enum:
- json
- merge
- strategic
type: string
required:
- content
- type
type: object
target:
description: Target identifies exactly one generated resource to patch.
properties:
apiVersion:
description: APIVersion is the API version of the target resource, for example "apps/v1".
minLength: 1
type: string
kind:
description: Kind is the Kubernetes kind of the target resource, for example "Deployment".
minLength: 1
type: string
name:
description: Name is the name of the target resource, for example "activator".
minLength: 1
type: string
namespace:
description: Namespace optionally disambiguates resources with the same API version, kind, and name.
type: string
required:
- apiVersion
- kind
- name
type: object
required:
- patch
- target
type: object
type: array
podDisruptionBudgets:
description: PodDisruptionBudgetOverride overrides PodDisruptionBudget configurations via minAvailable.
items:
Expand Down
58 changes: 58 additions & 0 deletions config/crd/bases/operator.knative.dev_knativeeventings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,64 @@ spec:
template.
type: object
type: object
patches:
description: Patches customize generated resources after all built-in
transformations have been applied.
items:
description: ResourcePatch customizes one generated Kubernetes resource.
properties:
patch:
description: Patch defines the patch type and content to apply.
properties:
content:
description: Content is a JSON or YAML patch document.
minLength: 1
type: string
type:
description: 'Type is the patch type: "json", "merge", or
"strategic".'
enum:
- json
- merge
- strategic
type: string
required:
- content
- type
type: object
target:
description: Target identifies exactly one generated resource
to patch.
properties:
apiVersion:
description: APIVersion is the API version of the target
resource, for example "apps/v1".
minLength: 1
type: string
kind:
description: Kind is the Kubernetes kind of the target resource,
for example "Deployment".
minLength: 1
type: string
name:
description: Name is the name of the target resource, for
example "activator".
minLength: 1
type: string
namespace:
description: Namespace optionally disambiguates resources
with the same API version, kind, and name.
type: string
required:
- apiVersion
- kind
- name
type: object
required:
- patch
- target
type: object
type: array
podDisruptionBudgets:
description: PodDisruptionBudgetOverride overrides PodDisruptionBudget
configurations via minAvailable.
Expand Down
58 changes: 58 additions & 0 deletions config/crd/bases/operator.knative.dev_knativeservings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,64 @@ spec:
template.
type: object
type: object
patches:
description: Patches customize generated resources after all built-in
transformations have been applied.
items:
description: ResourcePatch customizes one generated Kubernetes resource.
properties:
patch:
description: Patch defines the patch type and content to apply.
properties:
content:
description: Content is a JSON or YAML patch document.
minLength: 1
type: string
type:
description: 'Type is the patch type: "json", "merge", or
"strategic".'
enum:
- json
- merge
- strategic
type: string
required:
- content
- type
type: object
target:
description: Target identifies exactly one generated resource
to patch.
properties:
apiVersion:
description: APIVersion is the API version of the target
resource, for example "apps/v1".
minLength: 1
type: string
kind:
description: Kind is the Kubernetes kind of the target resource,
for example "Deployment".
minLength: 1
type: string
name:
description: Name is the name of the target resource, for
example "activator".
minLength: 1
type: string
namespace:
description: Namespace optionally disambiguates resources
with the same API version, kind, and name.
type: string
required:
- apiVersion
- kind
- name
type: object
required:
- patch
- target
type: object
type: array
podDisruptionBudgets:
description: PodDisruptionBudgetOverride overrides PodDisruptionBudget
configurations via minAvailable.
Expand Down
Loading
Loading