1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

Add ingress controller images to SystemImages

This commit is contained in:
moelsayed
2018-02-15 02:28:35 +02:00
parent 97c16857c8
commit 5cf4ef5f5f
3 changed files with 21 additions and 10 deletions

View File

@@ -17,9 +17,12 @@ const (
)
type ingressOptions struct {
RBACConfig string
Options map[string]string
NodeSelector map[string]string
RBACConfig string
Options map[string]string
NodeSelector map[string]string
AlpineImage string
IngressImage string
IngressBackend string
}
func (c *Cluster) deployK8sAddOns(ctx context.Context) error {
@@ -130,9 +133,12 @@ func (c *Cluster) deployIngress(ctx context.Context) error {
return nil
}
ingressConfig := ingressOptions{
RBACConfig: c.Authorization.Mode,
Options: c.Ingress.Options,
NodeSelector: c.Ingress.NodeSelector,
RBACConfig: c.Authorization.Mode,
Options: c.Ingress.Options,
NodeSelector: c.Ingress.NodeSelector,
AlpineImage: c.SystemImages.Alpine,
IngressImage: c.SystemImages.Ingress,
IngressBackend: c.SystemImages.IngressBackend,
}
// Currently only deploying nginx ingress controller
ingressYaml, err := addons.GetNginxIngressManifest(ingressConfig)