Skip to content

Commit 2e6c90e

Browse files
Merge pull request #13 from replicatedhq/ricardomaraschini/sc-105498/add-lam-location-to-embedded-cluster-artifacts-struct
feat: add field for local artifact mirror image location
2 parents f4d441a + 8d3fa3a commit 2e6c90e

File tree

4 files changed

+62
-6
lines changed

4 files changed

+62
-6
lines changed

apis/kots/v1beta1/airgap_types.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,19 @@ type AirgapReleaseMeta struct {
4444

4545
// EmbeddedClusterArtifacts maps embedded cluster artifacts to their path
4646
type EmbeddedClusterArtifacts struct {
47-
Charts string `json:"charts,omitempty"`
48-
ImagesAmd64 string `json:"imagesAmd64,omitempty"`
49-
BinaryAmd64 string `json:"binaryAmd64,omitempty"`
50-
Metadata string `json:"metadata,omitempty"`
47+
Charts string `json:"charts,omitempty"`
48+
ImagesAmd64 string `json:"imagesAmd64,omitempty"`
49+
BinaryAmd64 string `json:"binaryAmd64,omitempty"`
50+
Metadata string `json:"metadata,omitempty"`
51+
Registry Registry `json:"registry,omitempty"`
52+
}
53+
54+
// Registry holds a directory from where a images can be read and later pushed
55+
// to the registry. Format inside the directory is the same as the registry
56+
// storage format.
57+
type Registry struct {
58+
Dir string `json:"dir,omitempty"`
59+
SavedImages []string `json:"savedImages,omitempty"`
5160
}
5261

5362
// AirgapStatus defines the observed state of Airgap

apis/kots/v1beta1/zz_generated.deepcopy.go

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

config/crds/kots.io_airgaps.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ spec:
5757
type: string
5858
metadata:
5959
type: string
60+
registry:
61+
description: |-
62+
Registry holds a directory from where a images can be read and later pushed
63+
to the registry. Format inside the directory is the same as the registry
64+
storage format.
65+
properties:
66+
dir:
67+
type: string
68+
savedImages:
69+
items:
70+
type: string
71+
type: array
72+
type: object
6073
type: object
6174
format:
6275
type: string

config/crds/kots.io_installations.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ spec:
5555
type: string
5656
metadata:
5757
type: string
58+
registry:
59+
description: |-
60+
Registry holds a directory from where a images can be read and later pushed
61+
to the registry. Format inside the directory is the same as the registry
62+
storage format.
63+
properties:
64+
dir:
65+
type: string
66+
savedImages:
67+
items:
68+
type: string
69+
type: array
70+
type: object
5871
type: object
5972
encryptionKey:
6073
type: string

0 commit comments

Comments
 (0)