{
  "apiVersion" : "v1",
  "kind" : "List",
  "items" : [ {
    "apiVersion" : "v1",
    "kind" : "Secret",
    "metadata" : {
      "labels" : {
        "app" : "mattermost",
        "provider" : "fabric8",
        "version" : "4.0.192",
        "group" : "io.fabric8.platform.apps"
      },
      "name" : "mattermost"
    },
    "data" : {
      "mm-datasource" : "cG9zdGdyZXM6Ly9tbXVzZXI6bW11c2VyX3Bhc3N3b3JkQG1hdHRlcm1vc3QtZGI6NTQzMi9tYXR0ZXJtb3N0P3NzbG1vZGU9ZGlzYWJsZSZjb25uZWN0X3RpbWVvdXQ9MTA="
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "Service",
    "metadata" : {
      "annotations" : {
        "service.alpha.openshift.io/dependencies" : "[{\"name\":\"mattermost-db\",\"namespace\":\"\",\"kind\":\"Service\"}]",
        "fabric8.io/git-commit" : "5960d2db55495e5e227e48b972b96f4b068cd68e",
        "fabric8.io/git-branch" : "release-v4.0.192",
        "fabric8.io/scm-con-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
        "fabric8.io/scm-devcon-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
        "fabric8.io/scm-tag" : "app-console-2.0.1",
        "fabric8.io/scm-url" : "http://github.com/fabric8io/fabric8-platform/apps/mattermost"
      },
      "labels" : {
        "expose" : "true",
        "app" : "mattermost",
        "provider" : "fabric8",
        "version" : "4.0.192",
        "group" : "io.fabric8.platform.apps"
      },
      "name" : "mattermost"
    },
    "spec" : {
      "ports" : [ {
        "name" : "http",
        "port" : 80,
        "protocol" : "TCP",
        "targetPort" : 8065
      } ],
      "selector" : {
        "app" : "mattermost",
        "provider" : "fabric8",
        "group" : "io.fabric8.platform.apps"
      }
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "PersistentVolumeClaim",
    "metadata" : {
      "labels" : {
        "app" : "mattermost",
        "provider" : "fabric8",
        "version" : "4.0.192",
        "group" : "io.fabric8.platform.apps"
      },
      "name" : "mattermost-data"
    },
    "spec" : {
      "accessModes" : [ "ReadWriteOnce" ],
      "resources" : {
        "requests" : {
          "storage" : "1Gi"
        }
      }
    }
  }, {
    "apiVersion" : "v1",
    "kind" : "ConfigMap",
    "metadata" : {
      "labels" : {
        "app" : "mattermost",
        "provider" : "fabric8",
        "version" : "4.0.192",
        "group" : "io.fabric8.platform.apps"
      },
      "name" : "mattermost"
    },
    "data" : {
      "config.json" : "{\n    \"ServiceSettings\": {\n        \"SiteURL\": \"\",\n        \"LicenseFileLocation\": \"\",\n        \"ListenAddress\": \":8065\",\n        \"ConnectionSecurity\": \"\",\n        \"TLSCertFile\": \"\",\n        \"TLSKeyFile\": \"\",\n        \"UseLetsEncrypt\": false,\n        \"LetsEncryptCertificateCacheFile\": \"./config/letsencrypt.cache\",\n        \"Forward80To443\": false,\n        \"ReadTimeout\": 300,\n        \"WriteTimeout\": 300,\n        \"MaximumLoginAttempts\": 10,\n        \"GoroutineHealthThreshold\": -1,\n        \"GoogleDeveloperKey\": \"\",\n        \"EnableOAuthServiceProvider\": false,\n        \"EnableIncomingWebhooks\": true,\n        \"EnableOutgoingWebhooks\": true,\n        \"EnableCommands\": true,\n        \"EnableOnlyAdminIntegrations\": true,\n        \"EnablePostUsernameOverride\": false,\n        \"EnablePostIconOverride\": false,\n        \"EnableLinkPreviews\": false,\n        \"EnableTesting\": false,\n        \"EnableDeveloper\": false,\n        \"EnableSecurityFixAlert\": true,\n        \"EnableInsecureOutgoingConnections\": false,\n        \"EnableMultifactorAuthentication\": false,\n        \"EnforceMultifactorAuthentication\": false,\n        \"AllowCorsFrom\": \"\",\n        \"SessionLengthWebInDays\": 30,\n        \"SessionLengthMobileInDays\": 30,\n        \"SessionLengthSSOInDays\": 30,\n        \"SessionCacheInMinutes\": 10,\n        \"WebsocketSecurePort\": 443,\n        \"WebsocketPort\": 80,\n        \"WebserverMode\": \"gzip\",\n        \"EnableCustomEmoji\": false,\n        \"RestrictCustomEmojiCreation\": \"all\",\n        \"RestrictPostDelete\": \"all\",\n        \"AllowEditPost\": \"always\",\n        \"PostEditTimeLimit\": 300,\n        \"TimeBetweenUserTypingUpdatesMilliseconds\": 5000,\n        \"EnablePostSearch\": true,\n        \"EnableUserTypingMessages\": true,\n        \"EnableUserStatuses\": true,\n        \"ClusterLogTimeoutMilliseconds\": 2000\n    },\n    \"ElasticSearchSettings\": {\n        \"ConnectionUrl\": \"http://dockerhost:9200\",\n        \"Username\": \"elastic\",\n        \"Password\": \"changeme\",\n        \"EnableIndexing\": false,\n        \"EnableSearching\": false,\n        \"Sniff\": true\n    },\n    \"TeamSettings\": {\n        \"SiteName\": \"Mattermost\",\n        \"MaxUsersPerTeam\": 50,\n        \"EnableTeamCreation\": true,\n        \"EnableUserCreation\": true,\n        \"EnableOpenServer\": false,\n        \"RestrictCreationToDomains\": \"\",\n        \"EnableCustomBrand\": false,\n        \"CustomBrandText\": \"\",\n        \"CustomDescriptionText\": \"\",\n        \"RestrictDirectMessage\": \"any\",\n        \"RestrictTeamInvite\": \"all\",\n        \"RestrictPublicChannelManagement\": \"all\",\n        \"RestrictPrivateChannelManagement\": \"all\",\n        \"RestrictPublicChannelCreation\": \"all\",\n        \"RestrictPrivateChannelCreation\": \"all\",\n        \"RestrictPublicChannelDeletion\": \"all\",\n        \"RestrictPrivateChannelDeletion\": \"all\",\n        \"RestrictPrivateChannelManageMembers\": \"all\",\n        \"UserStatusAwayTimeout\": 300,\n        \"MaxChannelsPerTeam\": 2000,\n        \"MaxNotificationsPerChannel\": 1000\n    },\n    \"SqlSettings\": {\n        \"DriverName\": \"postgres\",\n        \"DataSource\": \"postgres://dummy:dummy@mattermost-db:5432/mattermost?sslmode=disable&connect_timeout=10\",\n        \"DataSourceReplicas\": [],\n        \"DataSourceSearchReplicas\": [],\n        \"MaxIdleConns\": 20,\n        \"MaxOpenConns\": 300,\n        \"Trace\": false,\n        \"AtRestEncryptKey\": \"\",\n        \"QueryTimeout\": 30\n    },\n    \"LogSettings\": {\n        \"EnableConsole\": true,\n        \"ConsoleLevel\": \"INFO\",\n        \"EnableFile\": true,\n        \"FileLevel\": \"INFO\",\n        \"FileFormat\": \"\",\n        \"FileLocation\": \"\",\n        \"EnableWebhookDebugging\": true,\n        \"EnableDiagnostics\": true\n    },\n    \"PasswordSettings\": {\n        \"MinimumLength\": 5,\n        \"Lowercase\": false,\n        \"Number\": false,\n        \"Uppercase\": false,\n        \"Symbol\": false\n    },\n    \"FileSettings\": {\n        \"EnableFileAttachments\": true,\n        \"MaxFileSize\": 52428800,\n        \"DriverName\": \"local\",\n        \"Directory\": \"./data/\",\n        \"EnablePublicLink\": false,\n        \"PublicLinkSalt\": \"\",\n        \"ThumbnailWidth\": 120,\n        \"ThumbnailHeight\": 100,\n        \"PreviewWidth\": 1024,\n        \"PreviewHeight\": 0,\n        \"ProfileWidth\": 128,\n        \"ProfileHeight\": 128,\n        \"InitialFont\": \"luximbi.ttf\",\n        \"AmazonS3AccessKeyId\": \"\",\n        \"AmazonS3SecretAccessKey\": \"\",\n        \"AmazonS3Bucket\": \"\",\n        \"AmazonS3Region\": \"us-east-1\",\n        \"AmazonS3Endpoint\": \"s3.amazonaws.com\",\n        \"AmazonS3SSL\": true,\n        \"AmazonS3SignV2\": false\n    },\n    \"EmailSettings\": {\n        \"EnableSignUpWithEmail\": true,\n        \"EnableSignInWithEmail\": true,\n        \"EnableSignInWithUsername\": true,\n        \"SendEmailNotifications\": false,\n        \"RequireEmailVerification\": false,\n        \"FeedbackName\": \"\",\n        \"FeedbackEmail\": \"\",\n        \"FeedbackOrganization\": \"\",\n        \"SMTPUsername\": \"\",\n        \"SMTPPassword\": \"\",\n        \"SMTPServer\": \"\",\n        \"SMTPPort\": \"\",\n        \"ConnectionSecurity\": \"\",\n        \"InviteSalt\": \"\",\n        \"SendPushNotifications\": false,\n        \"PushNotificationServer\": \"\",\n        \"PushNotificationContents\": \"generic\",\n        \"EnableEmailBatching\": false,\n        \"EmailBatchingBufferSize\": 256,\n        \"EmailBatchingInterval\": 30,\n        \"SkipServerCertificateVerification\": false\n    },\n    \"RateLimitSettings\": {\n        \"Enable\": false,\n        \"PerSec\": 10,\n        \"MaxBurst\": 100,\n        \"MemoryStoreSize\": 10000,\n        \"VaryByRemoteAddr\": true,\n        \"VaryByHeader\": \"\"\n    },\n    \"PrivacySettings\": {\n        \"ShowEmailAddress\": true,\n        \"ShowFullName\": true\n    },\n    \"SupportSettings\": {\n        \"TermsOfServiceLink\": \"https://about.mattermost.com/default-terms/\",\n        \"PrivacyPolicyLink\": \"https://about.mattermost.com/default-privacy-policy/\",\n        \"AboutLink\": \"https://about.mattermost.com/default-about/\",\n        \"HelpLink\": \"https://about.mattermost.com/default-help/\",\n        \"ReportAProblemLink\": \"https://about.mattermost.com/default-report-a-problem/\",\n        \"SupportEmail\": \"feedback@mattermost.com\"\n    },\n    \"AnnouncementSettings\": {\n        \"EnableBanner\": false,\n        \"BannerText\": \"\",\n        \"BannerColor\": \"#f2a93b\",\n        \"BannerTextColor\": \"#333333\",\n        \"AllowBannerDismissal\": true\n    },\n    \"GitLabSettings\": {\n        \"Enable\": false,\n        \"Secret\": \"\",\n        \"Id\": \"\",\n        \"Scope\": \"\",\n        \"AuthEndpoint\": \"\",\n        \"TokenEndpoint\": \"\",\n        \"UserApiEndpoint\": \"\"\n    },\n    \"GoogleSettings\": {\n        \"Enable\": false,\n        \"Secret\": \"\",\n        \"Id\": \"\",\n        \"Scope\": \"profile email\",\n        \"AuthEndpoint\": \"https://accounts.google.com/o/oauth2/v2/auth\",\n        \"TokenEndpoint\": \"https://www.googleapis.com/oauth2/v4/token\",\n        \"UserApiEndpoint\": \"https://www.googleapis.com/plus/v1/people/me\"\n    },\n    \"Office365Settings\": {\n        \"Enable\": false,\n        \"Secret\": \"\",\n        \"Id\": \"\",\n        \"Scope\": \"User.Read\",\n        \"AuthEndpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/authorize\",\n        \"TokenEndpoint\": \"https://login.microsoftonline.com/common/oauth2/v2.0/token\",\n        \"UserApiEndpoint\": \"https://graph.microsoft.com/v1.0/me\"\n    },\n    \"LdapSettings\": {\n        \"Enable\": false,\n        \"LdapServer\": \"\",\n        \"LdapPort\": 389,\n        \"ConnectionSecurity\": \"\",\n        \"BaseDN\": \"\",\n        \"BindUsername\": \"\",\n        \"BindPassword\": \"\",\n        \"UserFilter\": \"\",\n        \"FirstNameAttribute\": \"\",\n        \"LastNameAttribute\": \"\",\n        \"EmailAttribute\": \"\",\n        \"UsernameAttribute\": \"\",\n        \"NicknameAttribute\": \"\",\n        \"IdAttribute\": \"\",\n        \"PositionAttribute\": \"\",\n        \"SyncIntervalMinutes\": 60,\n        \"SkipCertificateVerification\": false,\n        \"QueryTimeout\": 60,\n        \"MaxPageSize\": 0,\n        \"LoginFieldName\": \"\"\n    },\n    \"ComplianceSettings\": {\n        \"Enable\": false,\n        \"Directory\": \"./data/\",\n        \"EnableDaily\": false\n    },\n    \"LocalizationSettings\": {\n        \"DefaultServerLocale\": \"en\",\n        \"DefaultClientLocale\": \"en\",\n        \"AvailableLocales\": \"\"\n    },\n    \"SamlSettings\": {\n        \"Enable\": false,\n        \"Verify\": true,\n        \"Encrypt\": true,\n        \"IdpUrl\": \"\",\n        \"IdpDescriptorUrl\": \"\",\n        \"AssertionConsumerServiceURL\": \"\",\n        \"IdpCertificateFile\": \"\",\n        \"PublicCertificateFile\": \"\",\n        \"PrivateKeyFile\": \"\",\n        \"FirstNameAttribute\": \"\",\n        \"LastNameAttribute\": \"\",\n        \"EmailAttribute\": \"\",\n        \"UsernameAttribute\": \"\",\n        \"NicknameAttribute\": \"\",\n        \"LocaleAttribute\": \"\",\n        \"PositionAttribute\": \"\",\n        \"LoginButtonText\": \"With SAML\"\n    },\n    \"NativeAppSettings\": {\n        \"AppDownloadLink\": \"https://about.mattermost.com/downloads/\",\n        \"AndroidAppDownloadLink\": \"https://about.mattermost.com/mattermost-android-app/\",\n        \"IosAppDownloadLink\": \"https://about.mattermost.com/mattermost-ios-app/\"\n    },\n    \"ClusterSettings\": {\n        \"Enable\": false,\n        \"InterNodeListenAddress\": \":8075\",\n        \"InterNodeUrls\": []\n    },\n    \"MetricsSettings\": {\n        \"Enable\": false,\n        \"BlockProfileRate\": 0,\n        \"ListenAddress\": \":8067\"\n    },\n    \"AnalyticsSettings\": {\n        \"MaxUsersForStatistics\": 2500\n    },\n    \"WebrtcSettings\": {\n        \"Enable\": false,\n        \"GatewayWebsocketUrl\": \"\",\n        \"GatewayAdminUrl\": \"\",\n        \"GatewayAdminSecret\": \"\",\n        \"StunURI\": \"\",\n        \"TurnURI\": \"\",\n        \"TurnUsername\": \"\",\n        \"TurnSharedKey\": \"\"\n    },\n    \"DataRetentionSettings\": {\n        \"Enable\": false\n    }\n}"
    }
  }, {
    "apiVersion" : "extensions/v1beta1",
    "kind" : "Deployment",
    "metadata" : {
      "annotations" : {
        "fabric8.io/git-commit" : "5960d2db55495e5e227e48b972b96f4b068cd68e",
        "fabric8.io/metrics-path" : "dashboard/file/kubernetes-pods.json/?var-project=mattermost&var-version=4.0.192",
        "fabric8.io/scm-con-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
        "fabric8.io/scm-url" : "http://github.com/fabric8io/fabric8-platform/apps/mattermost",
        "fabric8.io/git-branch" : "release-v4.0.192",
        "fabric8.io/scm-devcon-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
        "fabric8.io/scm-tag" : "app-console-2.0.1"
      },
      "labels" : {
        "app" : "mattermost",
        "provider" : "fabric8",
        "version" : "4.0.192",
        "group" : "io.fabric8.platform.apps"
      },
      "name" : "mattermost"
    },
    "spec" : {
      "replicas" : 1,
      "revisionHistoryLimit" : 2,
      "selector" : {
        "matchLabels" : {
          "app" : "mattermost",
          "provider" : "fabric8",
          "group" : "io.fabric8.platform.apps"
        }
      },
      "template" : {
        "metadata" : {
          "annotations" : {
            "fabric8.io/git-commit" : "5960d2db55495e5e227e48b972b96f4b068cd68e",
            "fabric8.io/metrics-path" : "dashboard/file/kubernetes-pods.json/?var-project=mattermost&var-version=4.0.192",
            "fabric8.io/scm-con-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
            "fabric8.io/scm-url" : "http://github.com/fabric8io/fabric8-platform/apps/mattermost",
            "fabric8.io/git-branch" : "release-v4.0.192",
            "fabric8.io/scm-devcon-url" : "scm:git:git@github.com:fabric8io/fabric8-platform.git/apps/mattermost",
            "fabric8.io/scm-tag" : "app-console-2.0.1",
            "pod.alpha.kubernetes.io/init-containers" : "[{\"image\":\"busybox\",\"imagePullPolicy\":\"IfNotPresent\",\"name\":\"fmp-volume-permission\",\"command\":[\"chmod\",\"777\",\"/mattermost/data/\"],\"volumeMounts\":[{\"mountPath\":\"/mattermost/data/\",\"name\":\"mattermost-data\"}]}]"
          },
          "labels" : {
            "app" : "mattermost",
            "tier" : "app",
            "provider" : "fabric8",
            "version" : "4.0.192",
            "group" : "io.fabric8.platform.apps"
          },
          "name" : "mattermost-app"
        },
        "spec" : {
          "containers" : [ {
            "env" : [ {
              "name" : "MM_SQLSETTINGS_DATASOURCE",
              "valueFrom" : {
                "secretKeyRef" : {
                  "key" : "mm-datasource",
                  "name" : "mattermost"
                }
              }
            } ],
            "image" : "fabric8/mattermost:vad68f0d",
            "livenessProbe" : {
              "httpGet" : {
                "path" : "/",
                "port" : 8065
              },
              "initialDelaySeconds" : 60,
              "timeoutSeconds" : 10
            },
            "name" : "mattermost-app",
            "readinessProbe" : {
              "httpGet" : {
                "path" : "/",
                "port" : 8065
              },
              "initialDelaySeconds" : 10,
              "timeoutSeconds" : 10
            },
            "volumeMounts" : [ {
              "mountPath" : "/mattermost/data/",
              "name" : "mattermost-data"
            }, {
              "mountPath" : "/mattermost/config/",
              "name" : "mattermost-config"
            } ]
          } ],
          "volumes" : [ {
            "name" : "mattermost-data",
            "persistentVolumeClaim" : {
              "claimName" : "mattermost-data"
            }
          }, {
            "configMap" : {
              "items" : [ {
                "key" : "config.json",
                "path" : "config.json"
              } ],
              "name" : "mattermost"
            },
            "name" : "mattermost-config"
          } ]
        }
      }
    }
  } ]
}