Skip to content

Commit

Permalink
Add RepositoryServer ObjectReference in Actionset (#1919)
Browse files Browse the repository at this point in the history
* Add RepositoryServer ObjectReference in crv1alpha1/types.go

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Update custom resource file for Actionset

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Add --repository-server flag in ActionSet

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Add --repository-server flag in ActionSet

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Add RepositoryServer in param.go in order to use with Blueprints

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Make sure Repository Server is in ServerReady state before creating ActionSet

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Fixes

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Fixes

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Reduce cognitive complexity of function verifyParams
- Earlier 38
- Now 26

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Formatted Imports

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Add Repository Server Address in Params

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Update pkg/kanctl/actionset.go

Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>

* Update

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Address Review

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Support to pass --repository-server flag in only --repository-server=namespace/name

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Support to pass --repository-server flag in only --repository-server=namespace/name

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Update pkg/kanctl/actionset.go

Co-authored-by: Akanksha kumari <akankshakumari393@gmail.com>

* fix spelling

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Add Warning if data mover flags are not provided.

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Update pkg/param/param.go

Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>

* Update Error Message

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

---------

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
Co-authored-by: Vivek Singh <vsingh.ggits.2010@gmail.com>
Co-authored-by: Akanksha kumari <akankshakumari393@gmail.com>
  • Loading branch information
3 people committed Mar 27, 2023
1 parent 643421b commit e42eac0
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 279 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/cr/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ type ActionSpec struct {
// Profile is use to specify the location where store artifacts and the
// credentials authorized to access them.
Profile *ObjectReference `json:"profile,omitempty"`
// RepositoryServer is used to specify the CR reference
// of the kopia repository server
RepositoryServer *ObjectReference `json:"repositoryServer,omitempty"`
// PodOverride is used to specify pod specs that will override the
// default pod specs
PodOverride JSONMap `json:"podOverride,omitempty"`
Expand Down
Loading

0 comments on commit e42eac0

Please sign in to comment.