Skip to content

Commit 4f51a5d

Browse files
authored
Merge pull request #101 from jchunkins/add_fields_csv
Add skips & relatedImages to CSV Spec
2 parents f572176 + de33696 commit 4f51a5d

File tree

4 files changed

+142
-8
lines changed

4 files changed

+142
-8
lines changed

crds/operators.coreos.com_clusterserviceversions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,6 +4527,19 @@ spec:
45274527
type: string
45284528
url:
45294529
type: string
4530+
relatedImages:
4531+
description: List any related images, or other container images that your Operator might require to perform their functions. This list should also include operand images as well. All image references should be specified by digest (SHA) and not by tag. This field is only used during catalog creation and plays no part in cluster runtime.
4532+
type: array
4533+
items:
4534+
type: object
4535+
required:
4536+
- image
4537+
- name
4538+
properties:
4539+
image:
4540+
type: string
4541+
name:
4542+
type: string
45304543
replaces:
45314544
description: The name of a CSV this one replaces. Should match the `metadata.Name` field of the old CSV.
45324545
type: string
@@ -4560,6 +4573,11 @@ spec:
45604573
type: object
45614574
additionalProperties:
45624575
type: string
4576+
skips:
4577+
description: The name(s) of one or more CSV(s) that should be skipped in the upgrade graph. Should match the `metadata.Name` field of the CSV that should be skipped. This field is only used during catalog creation and plays no part in cluster runtime.
4578+
type: array
4579+
items:
4580+
type: string
45634581
version:
45644582
description: OperatorVersion is a wrapper around semver.Version which supports correct marshaling to YAML and JSON.
45654583
type: string

crds/zz_defs.go

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

pkg/operators/v1alpha1/clusterserviceversion_types.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,18 @@ type ClusterServiceVersionSpec struct {
307307
// Cleanup specifies the cleanup behaviour when the CSV gets deleted
308308
// +optional
309309
Cleanup CleanupSpec `json:"cleanup,omitempty"`
310+
311+
// The name(s) of one or more CSV(s) that should be skipped in the upgrade graph.
312+
// Should match the `metadata.Name` field of the CSV that should be skipped.
313+
// This field is only used during catalog creation and plays no part in cluster runtime.
314+
// +optional
315+
Skips []string `json:"skips,omitempty"`
316+
317+
// List any related images, or other container images that your Operator might require to perform their functions.
318+
// This list should also include operand images as well. All image references should be specified by
319+
// digest (SHA) and not by tag. This field is only used during catalog creation and plays no part in cluster runtime.
320+
// +optional
321+
RelatedImages []RelatedImage `json:"relatedImages,omitempty"`
310322
}
311323

312324
type CleanupSpec struct {
@@ -328,6 +340,11 @@ type Icon struct {
328340
MediaType string `json:"mediatype"`
329341
}
330342

343+
type RelatedImage struct {
344+
Name string `json:"name"`
345+
Image string `json:"image"`
346+
}
347+
331348
// ClusterServiceVersionPhase is a label for the condition of a ClusterServiceVersion at the current time.
332349
type ClusterServiceVersionPhase string
333350

pkg/operators/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)