Skip to content

Commit

Permalink
add: v1alpha4 add registry create proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jun 6, 2022
1 parent 5965fac commit 0e821a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 17 additions & 0 deletions pkg/config/v1alpha4/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,23 @@
"myregistry/registry:2"
],
"default": "docker.io/library/registry:2"
},
"proxy": {
"type": "object",
"properties": {
"remoteURL": {
"type": "string",
"examples": [
"https://registry-1.docker.io"
]
},
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
},
"additionalProperties": false
Expand Down
9 changes: 5 additions & 4 deletions pkg/config/v1alpha4/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ type K3sArgWithNodeFilters struct {
}

type SimpleConfigRegistryCreateConfig struct {
Name string `mapstructure:"name" yaml:"name,omitempty" json:"name,omitempty"`
Host string `mapstructure:"host" yaml:"host,omitempty" json:"host,omitempty"`
HostPort string `mapstructure:"hostPort" yaml:"hostPort,omitempty" json:"hostPort,omitempty"`
Image string `mapstructure:"image" yaml:"image,omitempty" json:"image,omitempty"`
Name string `mapstructure:"name" yaml:"name,omitempty" json:"name,omitempty"`
Host string `mapstructure:"host" yaml:"host,omitempty" json:"host,omitempty"`
HostPort string `mapstructure:"hostPort" yaml:"hostPort,omitempty" json:"hostPort,omitempty"`
Image string `mapstructure:"image" yaml:"image,omitempty" json:"image,omitempty"`
Proxy k3d.RegistryProxy `mapstructure:"proxy" yaml:"proxy,omitempty" json:"proxy,omitempty"`
}

// SimpleConfigOptionsKubeconfig describes the set of options referring to the kubeconfig during cluster creation.
Expand Down

0 comments on commit 0e821a4

Please sign in to comment.