Skip to content

Commit 92f9bd1

Browse files
Merge pull request #562 from stuggi/schema_check_fix_new_crds
crd-schema-check: allow new CRDs
2 parents 5fc45e1 + 098babb commit 92f9bd1

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

api/bases/telemetry.openstack.org_ceilometers.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ spec:
151151
type: object
152152
mysqldExporterDatabaseAccountPrefix:
153153
default: mysqld-exporter
154-
description: MysqldExporterDatabaseAccountPrefix - Database account
155-
prefix for the mysqld-exporter. A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera
156-
CR name>" for each galera instance needs to be either created by
157-
the user or if it's missing, it'll be created by the telemetry-operator
158-
automatically.
154+
description: |-
155+
MysqldExporterDatabaseAccountPrefix - Database account prefix for the mysqld-exporter.
156+
A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera CR name>" for each
157+
galera instance needs to be either created by the user or if it's missing, it'll be
158+
created by the telemetry-operator automatically.
159159
type: string
160160
mysqldExporterEnabled:
161161
description: Whether mysqld_exporter should be deployed

api/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ spec:
448448
type: object
449449
mysqldExporterDatabaseAccountPrefix:
450450
default: mysqld-exporter
451-
description: MysqldExporterDatabaseAccountPrefix - Database account
452-
prefix for the mysqld-exporter. A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera
453-
CR name>" for each galera instance needs to be either created
454-
by the user or if it's missing, it'll be created by the telemetry-operator
455-
automatically.
451+
description: |-
452+
MysqldExporterDatabaseAccountPrefix - Database account prefix for the mysqld-exporter.
453+
A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera CR name>" for each
454+
galera instance needs to be either created by the user or if it's missing, it'll be
455+
created by the telemetry-operator automatically.
456456
type: string
457457
mysqldExporterEnabled:
458458
description: Whether mysqld_exporter should be deployed

config/crd/bases/telemetry.openstack.org_ceilometers.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ spec:
151151
type: object
152152
mysqldExporterDatabaseAccountPrefix:
153153
default: mysqld-exporter
154-
description: MysqldExporterDatabaseAccountPrefix - Database account
155-
prefix for the mysqld-exporter. A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera
156-
CR name>" for each galera instance needs to be either created by
157-
the user or if it's missing, it'll be created by the telemetry-operator
158-
automatically.
154+
description: |-
155+
MysqldExporterDatabaseAccountPrefix - Database account prefix for the mysqld-exporter.
156+
A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera CR name>" for each
157+
galera instance needs to be either created by the user or if it's missing, it'll be
158+
created by the telemetry-operator automatically.
159159
type: string
160160
mysqldExporterEnabled:
161161
description: Whether mysqld_exporter should be deployed

config/crd/bases/telemetry.openstack.org_telemetries.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,11 @@ spec:
448448
type: object
449449
mysqldExporterDatabaseAccountPrefix:
450450
default: mysqld-exporter
451-
description: MysqldExporterDatabaseAccountPrefix - Database account
452-
prefix for the mysqld-exporter. A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera
453-
CR name>" for each galera instance needs to be either created
454-
by the user or if it's missing, it'll be created by the telemetry-operator
455-
automatically.
451+
description: |-
452+
MysqldExporterDatabaseAccountPrefix - Database account prefix for the mysqld-exporter.
453+
A mariadbaccount CR named "<mysqldExporterDatabaseAccountPrefix>-<galera CR name>" for each
454+
galera instance needs to be either created by the user or if it's missing, it'll be
455+
created by the telemetry-operator automatically.
456456
type: string
457457
mysqldExporterEnabled:
458458
description: Whether mysqld_exporter should be deployed

hack/crd-schema-checker.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ trap cleanup EXIT
1414

1515
for crd in config/crd/bases/*.yaml; do
1616
mkdir -p "$(dirname "$TMP_DIR/$crd")"
17-
git show "$BASE_REF:$crd" > "$TMP_DIR/$crd"
18-
$CHECKER check-manifests \
19-
--existing-crd-filename="$TMP_DIR/$crd" \
20-
--new-crd-filename="$crd"
17+
if git show "$BASE_REF:$crd" > "$TMP_DIR/$crd"; then
18+
$CHECKER check-manifests \
19+
--existing-crd-filename="$TMP_DIR/$crd" \
20+
--new-crd-filename="$crd"
21+
fi
2122
done

0 commit comments

Comments
 (0)