Skip to content

Commit

Permalink
ASC-402: Modify NSTemplateTierSpec to support SA token copy (#380)
Browse files Browse the repository at this point in the history
* modify NSTemplateTierSpec

Signed-off-by: Kartikey Mamgain <[email protected]>

* update nstemplatetier CRD

Signed-off-by: Kartikey Mamgain <[email protected]>

* update NSTemplateTierSpec

Signed-off-by: Kartikey Mamgain <[email protected]>

* modify test to use docker config

Signed-off-by: Kartikey Mamgain <[email protected]>

* update nstemplatetier spec

Signed-off-by: Kartikey Mamgain <[email protected]>

* Modify NSTemplateTierSpec to support SA token copy

Signed-off-by: Kartikey Mamgain <[email protected]>

* update NSTemplateTier CRD

Signed-off-by: Kartikey Mamgain <[email protected]>

* update NSTemplateTier CRD

Signed-off-by: Kartikey Mamgain <[email protected]>

---------

Signed-off-by: Kartikey Mamgain <[email protected]>
  • Loading branch information
Kartikey-star authored Oct 17, 2023
1 parent cced9c6 commit acdc61b
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
Binary file removed .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions api/v1alpha1/nstemplatetier_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ type NSTemplateTierSpec struct {
// +optional
// +mapType=atomic
SpaceRoles map[string]NSTemplateTierSpaceRole `json:"spaceRoles,omitempty"`

// SpaceRequestConfig stores all the configuration related to the Space Request feature
// +optional
SpaceRequestConfig *SpaceRequestConfig `json:"spaceRequestConfig,omitempty"`
}

// SpaceRequestConfig contains all the configuration related to the Space Request feature
// +k8s:openapi-gen=true
type SpaceRequestConfig struct {
// Provides the name of the Service Account whose token is to be copied
// +optional
ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

// NSTemplateTierNamespace the namespace definition in an NSTemplateTier resource
Expand Down
20 changes: 20 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit acdc61b

Please sign in to comment.