Skip to content

Commit

Permalink
[ACM-10005] Added template override annotations (#598)
Browse files Browse the repository at this point in the history
* added template override annotations

Signed-off-by: Disaiah Bennett <[email protected]>

* updated rbac gen

Signed-off-by: Disaiah Bennett <[email protected]>

* updated rbac

Signed-off-by: Disaiah Bennett <[email protected]>

---------

Signed-off-by: Disaiah Bennett <[email protected]>
  • Loading branch information
dislbenn authored Feb 20, 2024
1 parent f4f06ed commit 22e5f27
Show file tree
Hide file tree
Showing 15 changed files with 1,172 additions and 555 deletions.
271 changes: 198 additions & 73 deletions controllers/backplaneconfig_controller.go

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions controllers/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) 2024 Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project

package controllers

// CacheSpec ...
type CacheSpec struct {
ImageOverrides map[string]string
ImageOverridesCM string
ImageRepository string
TemplateOverrides map[string]string
TemplateOverridesCM string
}
231 changes: 172 additions & 59 deletions controllers/hosted.go

Large diffs are not rendered by default.

300 changes: 181 additions & 119 deletions controllers/toggle_components.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func main() {
if err = (&controllers.MultiClusterEngineReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
UncachedClient: uncachedClient,
StatusManager: &status.StatusTracker{Client: mgr.GetClient()},
UpgradeableCond: upgradeableCondition,
}).SetupWithManager(mgr); err != nil {
Expand Down
126 changes: 0 additions & 126 deletions pkg/images/images.go

This file was deleted.

149 changes: 0 additions & 149 deletions pkg/images/images_test.go

This file was deleted.

23 changes: 23 additions & 0 deletions pkg/manifest/manifest.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) 2024 Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project

package manifest

// ManifestImage contains details for a specific image version
type ManifestImage struct {
ImageKey string `json:"image-key"`
ImageName string `json:"image-name"`
ImageVersion string `json:"image-version"`

// remote registry where image is stored
ImageRemote string `json:"image-remote"`

// immutable sha version identifier
ImageDigest string `json:"image-digest"`

ImageTag string `json:"image-tag"`
}

type ManifestTemplate struct {
TemplateOverrides map[string]interface{} `json:"templateOverrides" yaml:"templateOverrides"`
}
4 changes: 4 additions & 0 deletions pkg/manifest/manifest_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright (c) 2024 Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project

package manifest
Loading

0 comments on commit 22e5f27

Please sign in to comment.