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
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ spec:
- consoleexternalloglinks
verbs:
- "*"
- apiGroups:
- ""
resources:
- configmaps
verbs:
- "*"
- apiGroups:
- scheduling.k8s.io
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- op: replace
path: /spec/validation/openAPIV3Schema/properties/metadata
path: /spec/versions/0/schema/openAPIV3Schema/properties/metadata
value:
type: object
properties:
Expand All @@ -8,6 +8,6 @@
enum:
- "instance"
- op: replace
path: /spec/validation/openAPIV3Schema/properties/status
path: /spec/versions/0/schema/openAPIV3Schema/properties/status
value:
type: object
4 changes: 2 additions & 2 deletions bundle/manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ patchesJson6902:
version: v1
kind: CustomResourceDefinition
name: clusterlogforwarders.logging.openshift.io
- path: crd-v1beta1-clusterloggings-patches.yaml
- path: crd-v1-clusterloggings-patches.yaml
target:
group: apiextensions.k8s.io
version: v1beta1
version: v1
kind: CustomResourceDefinition
name: clusterloggings.logging.openshift.io
3 changes: 3 additions & 0 deletions bundle/manifests/logforwardings.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ spec:
- logs.app
- logs.infra
- logs.audit
labels:
type: map
description: Pipeline labels in the key:value format
required:
- name
- source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,14 @@ spec:
url:
description: "URL to send log messages to. \n Must be an absolute
URL, with a scheme. Valid URL schemes depend on `type`. Special
schemes 'tcp', 'udp' and 'tls' are used for output types that
don't define their own URL scheme. Example: \n { type:
syslog, url: tls://syslog.example.com:1234 } \n TLS with server
authentication is enabled by the URL scheme, for example 'tls'
or 'https'. See `secret` for TLS client authentication. \n
This field is optional and can be empty if there is an output-type
field with alternative connection information."
schemes 'tcp', 'tls', 'udp' and 'udps are used for output
types that don't define their own URL scheme. Example: \n
\ { type: syslog, url: udps://syslog.example.com:1234 }
\n TLS with server authentication is enabled by the URL scheme,
for example 'tls' or 'https'. See `secret` for TLS client
authentication. \n This field is optional and can be empty
if there is an output-type field with alternative connection
information."
pattern: ^$|[a-zA-z]+:\/\/.*
type: string
required:
Expand All @@ -221,6 +222,11 @@ spec:
items:
type: string
type: array
labels:
additionalProperties:
type: string
description: Labels lists labels applied to this pipeline
type: object
name:
description: Name is optional, but must be unique in the `pipelines`
list if provided.
Expand Down
1,203 changes: 603 additions & 600 deletions bundle/manifests/logging.openshift.io_clusterloggings_crd.yaml

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions hack/generate-crd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ echo "Generate k8s golang code"
echo "--------------------------------------------------------------"
$OPERATOR_SDK generate k8s

echo "--------------------------------------------------------------"
echo "Generate CRDs for apiVersion v1beta1"
echo "--------------------------------------------------------------"
$OPERATOR_SDK generate crds --crd-version v1beta1
mv "deploy/crds/${CLO_CRD_FILE}" "${MANIFESTS_DIR}"

echo "--------------------------------------------------------------"
echo "Generate CRDs for apiVersion v1"
echo "--------------------------------------------------------------"
$OPERATOR_SDK generate crds --crd-version v1
mv "deploy/crds/${CLF_CRD_FILE}" "${MANIFESTS_DIR}"
mv "deploy/crds/${CLO_CRD_FILE}" "${MANIFESTS_DIR}"

echo "---------------------------------------------------------------"
echo "Kustomize: Patch CRDs for singeltons and backward-compatibility"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- op: replace
path: /spec/validation/openAPIV3Schema/properties/metadata
path: /spec/versions/0/schema/openAPIV3Schema/properties/metadata
value:
type: object
properties:
Expand All @@ -8,6 +8,6 @@
enum:
- "instance"
- op: replace
path: /spec/validation/openAPIV3Schema/properties/status
path: /spec/versions/0/schema/openAPIV3Schema/properties/status
value:
type: object
4 changes: 2 additions & 2 deletions manifests/4.6/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ patchesJson6902:
version: v1
kind: CustomResourceDefinition
name: clusterlogforwarders.logging.openshift.io
- path: crd-v1beta1-clusterloggings-patches.yaml
- path: crd-v1-clusterloggings-patches.yaml
target:
group: apiextensions.k8s.io
version: v1beta1
version: v1
kind: CustomResourceDefinition
name: clusterloggings.logging.openshift.io
Loading