Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generation of updateService.yaml (#746)
- Loading branch information
Showing
27 changed files
with
736 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package clusterresources | ||
|
||
const ( | ||
clusterResourcesDir string = "cluster-resources" | ||
updateServiceFilename string = "updateService" | ||
updateServiceResourceName string = "update-service-oc-mirror" | ||
updateServiceResourceKind string = "UpdateService" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package clusterresources | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/openshift/oc-mirror/v2/pkg/api/v1alpha3" | ||
"github.com/openshift/oc-mirror/v2/pkg/mirror" | ||
) | ||
|
||
type GeneratorInterface interface { | ||
IDMSGenerator(ctx context.Context, allRelatedImages []v1alpha3.CopyImageSchema, opts mirror.CopyOptions) error | ||
IDMSGenerator(allRelatedImages []v1alpha3.CopyImageSchema) error | ||
UpdateServiceGenerator(graphImage, releaseImage string) error | ||
} |
13 changes: 13 additions & 0 deletions
13
v2/pkg/clusterresources/updateservice/v1/groupversion_info.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copied from https://github.com/openshift/cincinnati-operator/tree/master/api/v1 | ||
// The last release v1.0.3 doesn't even contain the API | ||
// Commit : 425be2fc0ec501bfcf9bdb15f75df9d8a7b5ba6c | ||
package v1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
) | ||
|
||
var ( | ||
// GroupVersion is group version used to register these objects | ||
GroupVersion = schema.GroupVersion{Group: "updateservice.operator.openshift.io", Version: "v1"} | ||
) |
Oops, something went wrong.