Skip to content

Commit

Permalink
Merge pull request #91 from tiraboschi/webui_tag
Browse files Browse the repository at this point in the history
Separately handle WEBUI_TAG
  • Loading branch information
mareklibra authored Jul 10, 2019
2 parents 7598d11 + e5c3794 commit def2391
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func getBaseTag(tag string) string {
return tag[0:last]
}

func GetDeployment(namespace string, repository string, tag string, imagePullPolicy string) *appsv1.Deployment {
image := fmt.Sprintf("%s/%s:%s", repository, Name, tag)
func GetDeployment(namespace string, repository string, operator_tag string, webui_tag string, imagePullPolicy string) *appsv1.Deployment {
image := fmt.Sprintf("%s/%s:%s", repository, Name, operator_tag)
deployment := &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
APIVersion: "apps/v1",
Expand Down Expand Up @@ -83,11 +83,11 @@ func GetDeployment(namespace string, repository string, tag string, imagePullPol
},
{
Name: "OPERATOR_TAG",
Value: tag,
Value: operator_tag,
},
{
Name: "WEBUI_TAG",
Value: getBaseTag(tag),
Value: webui_tag,
},
{
Name: "BRANDING",
Expand Down

0 comments on commit def2391

Please sign in to comment.