Skip to content

Commit

Permalink
fix: adds GetVariableConfig function for packager (#2475)
Browse files Browse the repository at this point in the history
## Description

Makes Packager's variableConfig publicly accessible which in turns
allows access to VariableConfig's setVariableMap which is currently
being used by uds-cli for bundle deployment processing.

## Related Issue

Fixes #2472

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
  • Loading branch information
decleaver and AustinAbro321 authored May 6, 2024
1 parent 2b6ef0e commit 0fa2173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pkg/packager/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ func (p *Packager) ClearTempPaths() {
_ = os.RemoveAll(layout.SBOMDir)
}

// GetVariableConfig returns the variable configuration for the packager.
func (p *Packager) GetVariableConfig() *variables.VariableConfig {
return p.variableConfig
}

// connectToCluster attempts to connect to a cluster if a connection is not already established
func (p *Packager) connectToCluster(timeout time.Duration) (err error) {
if p.isConnectedToCluster() {
Expand Down

0 comments on commit 0fa2173

Please sign in to comment.