Skip to content

Commit

Permalink
expose sku on container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kruining committed Nov 25, 2024
1 parent 982b627 commit 4eb6e9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/base/container-registry/container-registry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@ func container_registry(context Context, sku Sku, options Options) object =>
)
)

@export()
func with_sku(sku Sku) object => {
sku: {
name: sku
}
}

@export()
type Sku = 'Basic' | 'Classic' | 'Premium' | 'Standard'
9 changes: 9 additions & 0 deletions src/recommended/container-registry/container-registry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ import * as base from '../../base/container-registry/container-registry.bicep'
@export()
func container_registry(context Context, options Options) object =>
base.container_registry(context, 'Standard', options)

@export()
func with_basic_sky() object => base.with_sku('Basic')

@export()
func with_classic_sky() object => base.with_sku('Classic')

@export()
func with_premium_sky() object => base.with_sku('Premium')

0 comments on commit 4eb6e9f

Please sign in to comment.