Skip to content

Commit

Permalink
allow to specify the ingress-gce image to use in the cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Feb 28, 2023
1 parent 9829a3f commit b87d3db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubetest2-gce/deployer/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ func (d *deployer) buildEnv() []string {
env = append(env, fmt.Sprintf("KUBE_GCE_NODE_SERVICE_ACCOUNT=%s", d.NodeServiceAccount))
}

if d.IngressGCEImage != "" {
env = append(env, fmt.Sprintf("GCE_GLBC_IMAGE=%s", d.IngressGCEImage))
}

return env
}

Expand Down
2 changes: 2 additions & 0 deletions kubetest2-gce/deployer/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ type deployer struct {

MasterSize string `desc:"Sets the MASTER_SIZE environment variable during deployment."`
NodeSize string `desc:"Sets the NODE_SIZE environment variable during deployment."`

IngressGCEImage string `desc:"Sets the ingress-gce image used for the Ingress and Loadbalancer controller."`
}

// pseudoUniqueSubstring returns a substring of a UUID
Expand Down

0 comments on commit b87d3db

Please sign in to comment.