Skip to content

Commit 3a253ee

Browse files
stevekuznetsovci-robot
authored andcommitted
CatalogSource: require fields when extracting FBC (#295)
Signed-off-by: Steve Kuznetsov <[email protected]> Upstream-repository: api Upstream-commit: 28c6773d2b746559369035cfa3d211360706a247
1 parent 471c3e2 commit 3a253ee

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

manifests/0000_50_olm_00-catalogsources.crd.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ spec:
537537
extractContent:
538538
description: ExtractContent configures the gRPC catalog Pod to extract catalog metadata from the provided index image and use a well-known version of the `opm` server to expose it. The catalog index image that this CatalogSource is configured to use *must* be using the file-based catalogs in order to utilize this feature.
539539
type: object
540+
required:
541+
- cacheDir
542+
- catalogDir
540543
properties:
541544
cacheDir:
542545
description: CacheDir is the directory storing the pre-calculated API cache.

staging/api/crds/operators.coreos.com_catalogsources.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,9 @@ spec:
535535
extractContent:
536536
description: ExtractContent configures the gRPC catalog Pod to extract catalog metadata from the provided index image and use a well-known version of the `opm` server to expose it. The catalog index image that this CatalogSource is configured to use *must* be using the file-based catalogs in order to utilize this feature.
537537
type: object
538+
required:
539+
- cacheDir
540+
- catalogDir
538541
properties:
539542
cacheDir:
540543
description: CacheDir is the directory storing the pre-calculated API cache.

staging/api/crds/zz_defs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/api/pkg/operators/v1alpha1/catalogsource_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ type GrpcPodConfig struct {
172172
// ExtractContentConfig configures context extraction from a file-based catalog index image.
173173
type ExtractContentConfig struct {
174174
// CacheDir is the directory storing the pre-calculated API cache.
175-
CacheDir string `json:"cacheDir,omitempty"`
175+
CacheDir string `json:"cacheDir"`
176176
// CatalogDir is the directory storing the file-based catalog contents.
177-
CatalogDir string `json:"catalogDir,omitempty"`
177+
CatalogDir string `json:"catalogDir"`
178178
}
179179

180180
// UpdateStrategy holds all the different types of catalog source update strategies

vendor/github.com/operator-framework/api/crds/operators.coreos.com_catalogsources.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/operator-framework/api/crds/zz_defs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/catalogsource_types.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)