Skip to content

Commit

Permalink
publish skeleton package
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall007 committed Jul 9, 2024
1 parent 16934e8 commit 8609f8f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 25 deletions.
19 changes: 19 additions & 0 deletions plugins/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json
kind: ZarfPackageConfig
metadata:
name: mattermost-plugins
description: "UDS Mattermost Plugins Package"
# x-release-please-start-version
version: "9.9.0-uds.0"
# x-release-please-end

components:
- name: mattermost-plugins
required: true
images:
- uds-package-mattermost/mattermost-extra-plugins:latest
actions:
onCreate:
before:
- cmd: |
docker build . -t uds-package-mattermost/mattermost-extra-plugins:latest
9 changes: 9 additions & 0 deletions tasks/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ tasks:
description: Build package
actions:
- task: create:package
- task: create:package
with:
path: ./plugins

- name: test-package
description: Test the package
Expand All @@ -31,3 +34,9 @@ tasks:
# x-release-please-start-version
version: "9.9.0-uds.0"
# x-release-please-end
- task: publish:package
with:
path: ./plugins
# x-release-please-start-version
version: "9.9.0-uds.0"
# x-release-please-end
30 changes: 15 additions & 15 deletions values/common-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ mattermostApp:
securityContext:
runAsUser: 2000
runAsGroup: 2000
extraInitContainers:
# Extra Container to install plugins
- name: mattermost-extra-plugins
image: uds-package-mattermost/mattermost-extra-plugins:latest
imagePullPolicy: Always
volumeMounts:
# Must match plugins volumes from chart
# extraInitContainers:
# # Extra Container to install plugins
# - name: mattermost-extra-plugins
# image: uds-package-mattermost/mattermost-extra-plugins:latest
# imagePullPolicy: Always
# volumeMounts:
# # Must match plugins volumes from chart

# In mattermost-team-edition chart, this is `/mattermost/$MM_PLUGINSETTINGS_CLIENTDIRECTORY`
# see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-team-edition/templates/deployment.yaml#L103-L104
# # In mattermost-team-edition chart, this is `/mattermost/$MM_PLUGINSETTINGS_CLIENTDIRECTORY`
# # see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-team-edition/templates/deployment.yaml#L103-L104

# In mattermost-enterprise-edition chart, it is hardcoded to `/mattermost/plugins/`
# see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-enterprise-edition/templates/deployment-mattermost-app.yaml#L174-L177
# # In mattermost-enterprise-edition chart, it is hardcoded to `/mattermost/plugins/`
# # see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-enterprise-edition/templates/deployment-mattermost-app.yaml#L174-L177

# TODO @marshall007: only mattermost-team-edition chart supports plugin persistence. `emptyDir` may cause problems on EE, will need to investigate
# see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-team-edition/templates/deployment.yaml#L123-L133
- name: mattermost-plugins
mountPath: /mattermost/plugins/
# # TODO @marshall007: only mattermost-team-edition chart supports plugin persistence. `emptyDir` may cause problems on EE, will need to investigate
# # see: https://github.com/mattermost/mattermost-helm/blob/master/charts/mattermost-team-edition/templates/deployment.yaml#L123-L133
# - name: mattermost-plugins
# mountPath: /mattermost/plugins/

serviceAccount:
create: true
Expand Down
14 changes: 4 additions & 10 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ variables:
description: "Database Password for Mattermost"

components:
- name: mattermost-plugins
required: true
images:
- uds-package-mattermost/mattermost-extra-plugins:latest
actions:
onCreate:
before:
- dir: plugins
cmd: |
docker build . -t uds-package-mattermost/mattermost-extra-plugins:latest
# - name: mattermost-plugins
# required: true
# import:
# path: plugins

- name: mattermost
required: true
Expand Down

0 comments on commit 8609f8f

Please sign in to comment.