kubecon-2024-na
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe
Entrypoint
Return Type
Kubecon2024Na
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
func (m *myModule) example() *Kubecon2024Na {
return dag.
Kubecon2024Na()
}
@function
def example() -> dag.Kubecon2024Na:
return (
dag.kubecon_2024_na()
)
@func()
example(): Kubecon2024Na {
return dag
.kubecon2024Na()
}
Types
Kubecon2024Na 🔗
producer() 🔗
producer app operations
Return Type
Kubecon2024NaProducer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
daprComponents | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
producer
func (m *myModule) example() *Kubecon2024NaProducer {
return dag.
Kubecon2024Na().
Producer()
}
@function
def example() -> dag.Kubecon2024NaProducer:
return (
dag.kubecon_2024_na()
.producer()
)
@func()
example(): Kubecon2024NaProducer {
return dag
.kubecon2024Na()
.producer()
}
consumer() 🔗
consumer app operations
Return Type
Kubecon2024NaConsumer !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
daprComponents | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
consumer
func (m *myModule) example() *Kubecon2024NaConsumer {
return dag.
Kubecon2024Na().
Consumer()
}
@function
def example() -> dag.Kubecon2024NaConsumer:
return (
dag.kubecon_2024_na()
.consumer()
)
@func()
example(): Kubecon2024NaConsumer {
return dag
.kubecon2024Na()
.consumer()
}
app() 🔗
Starts both consumer and producer services
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
app
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
App()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.app()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.app()
}
kube() 🔗
Kubernetes operations
Return Type
Kubecon2024NaKube !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube
func (m *myModule) example() *Kubecon2024NaKube {
return dag.
Kubecon2024Na().
Kube()
}
@function
def example() -> dag.Kubecon2024NaKube:
return (
dag.kubecon_2024_na()
.kube()
)
@func()
example(): Kubecon2024NaKube {
return dag
.kubecon2024Na()
.kube()
}
Kubecon2024NaProducer 🔗
build() 🔗
builds the application and returns a jar file
Return Type
File !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
producer \
build
func (m *myModule) example() *File {
return dag.
Kubecon2024Na().
Producer().
Build()
}
@function
def example() -> dagger.File:
return (
dag.kubecon_2024_na()
.producer()
.build()
)
@func()
example(): File {
return dag
.kubecon2024Na()
.producer()
.build()
}
test() 🔗
runs the tests
Return Type
Service !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
producer \
test
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Producer().
Test()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.producer()
.test()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.producer()
.test()
}
container() 🔗
returns the application container
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
producer \
container
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Producer().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.producer()
.container()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.producer()
.container()
}
service() 🔗
returns the application service
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
rabbit | Service | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
producer \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Producer().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.producer()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.producer()
.service()
}
Kubecon2024NaConsumer 🔗
build() 🔗
Return Type
File !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
consumer \
build
func (m *myModule) example() *File {
return dag.
Kubecon2024Na().
Consumer().
Build()
}
@function
def example() -> dagger.File:
return (
dag.kubecon_2024_na()
.consumer()
.build()
)
@func()
example(): File {
return dag
.kubecon2024Na()
.consumer()
.build()
}
container() 🔗
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
consumer \
container
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Consumer().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.consumer()
.container()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.consumer()
.container()
}
test() 🔗
Return Type
Service !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
consumer \
test
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Consumer().
Test()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.consumer()
.test()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.consumer()
.test()
}
service() 🔗
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
rabbit | Service | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
consumer \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Consumer().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.consumer()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.consumer()
.service()
}
Kubecon2024NaKube 🔗
service() 🔗
a kubernetes service with all the applications deployed
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
manifests | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube \
service
func (m *myModule) example() *Service {
return dag.
Kubecon2024Na().
Kube().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.kubecon_2024_na()
.kube()
.service()
)
@func()
example(): Service {
return dag
.kubecon2024Na()
.kube()
.service()
}
deploy() 🔗
deploys the apps to the target k8s cluster
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
kubeCfg | File ! | - | No description provided |
contextName | String | - | No description provided |
manifests | Directory | - | No description provided |
gcloudConfig | Directory | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube \
deploy --kube-cfg file:path
func (m *myModule) example(ctx context.Context, kubeCfg *File) {
return dag.
Kubecon2024Na().
Kube().
Deploy(ctx, kubeCfg)
}
@function
async def example(kube_cfg: dagger.File) -> None:
return await (
dag.kubecon_2024_na()
.kube()
.deploy(kube_cfg)
)
@func()
async example(kubeCfg: File): Promise<void> {
return dag
.kubecon2024Na()
.kube()
.deploy(kubeCfg)
}
config() 🔗
return the kube config for the running cluster
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
local | Boolean ! | "false" | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube \
config --local boolean
func (m *myModule) example(local bool) *File {
return dag.
Kubecon2024Na().
Kube().
Config(local)
}
@function
def example(local: bool) -> dagger.File:
return (
dag.kubecon_2024_na()
.kube()
.config(local)
)
@func()
example(local: boolean): File {
return dag
.kubecon2024Na()
.kube()
.config(local)
}
kubectl() 🔗
returns a container with kubectl configured and installed
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
args | String | - | No description provided |
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube \
kubectl
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Kube().
Kubectl()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.kube()
.kubectl()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.kube()
.kubectl()
}
kns() 🔗
returns a container with kns installed
Return Type
Container !
Example
dagger -m github.com/salaboy/kubecon-2024-na@341edf34233324cae06d622bce5f08ba76ef48fe call \
kube \
kns
func (m *myModule) example() *Container {
return dag.
Kubecon2024Na().
Kube().
Kns()
}
@function
def example() -> dagger.Container:
return (
dag.kubecon_2024_na()
.kube()
.kns()
)
@func()
example(): Container {
return dag
.kubecon2024Na()
.kube()
.kns()
}