Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

update(branding): Logo for product updated #93

Merged
merged 1 commit into from
Sep 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generator/03-syndesis-ui.yml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@
"branding": {
"logoWhiteBg": "",
"logoDarkBg": "",
"iconWhiteBg": "assets/images/product-logo.svg",
"iconDarkBg": "assets/images/product-logo.svg",
"iconWhiteBg": "assets/images/FuseIgniteLogo_Black.svg",
"iconDarkBg": "assets/images/FuseIgniteLogo_White.svg",
"appName": "Fuse Ignite",
"favicon32": "/favicon-32x32.png",
"favicon16": "/favicon-16x16.png",
Expand Down
5 changes: 2 additions & 3 deletions generator/syndesis-template.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ var productContext = Context{
}

var context = syndesisContext
var isProduct bool

func init() {
flags := installCommand.PersistentFlags()
Expand All @@ -138,14 +137,14 @@ func init() {
flags.BoolVar(&context.Probeless, "probeless", false, "Without probes")
flags.StringVar(&context.Tags.Syndesis, "syndesis", "latest", "Syndesis Image tag to use")
flags.StringVar(&context.Tags.Atlasmap, "atlasmap", "latest", "Atlasmap image to use")
flags.BoolVar(&isProduct, "product", false, "Generate product templates?")
flags.BoolVar(&context.Productized, "product", false, "Generate product templates?")
flags.StringVar(&context.Registry, "registry", "docker.io", "Registry to use for imagestreams")
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
}

func install(cmd *cobra.Command, args []string) {

if isProduct {
if context.Productized {
if err := mergo.MergeWithOverwrite(&context, productContext); err != nil {
log.Fatal("Cannot merge in product image names")
}
Expand Down