Skip to content

Commit

Permalink
exposing context
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh maheshwari committed Aug 29, 2023
1 parent 2931e04 commit 37c70ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/fixtures/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ func (factory *Factory) GetDefaultStorageClass() string {
return ""
}

// GetContext returns the Kubernetes context provided via command line.
func (factory *Factory) GetContext() string {
return factory.options.context
}

// GetStorageClasses returns all StorageClasses present in this Kubernetes cluster that have the label foundationdb.org/operator-testing=true.
func (factory *Factory) GetStorageClasses(labels map[string]string) *storagev1.StorageClassList {
storageClasses := &storagev1.StorageClassList{}
Expand Down

0 comments on commit 37c70ab

Please sign in to comment.