capactio / hub-manifests

Holds Capact Hub manifests
Apache License 2.0
1 stars 8 forks source link

Use Helm storage in Mattermost installation manifests #64

Closed pkosiec closed 2 years ago

pkosiec commented 2 years ago

Description

Changes proposed in this pull request:

Testing

  1. Run cluster from the https://github.com/capactio/capact/pull/686 (DISABLE_MONITORING_INSTALLATION=true USE_TEST_SETUP=true make dev-cluster)
  2. Set manifests from my fork:
    kubectl set env deploy/capact-hub-public -n capact-system -c hub-public-populator MANIFESTS_SOURCES="github.com/pkosiec/hub-manifests?ref=use-helm-storage"
  3. Install Helm Storage Backends via Dashboard
  4. Update Global Policy:
HELM_TEMPLATE_STORAGE_ID="0406ffe8-5f2b-43ae-bdc5-56bb7e09d1b8"
HELM_RELEASE_STORAGE_ID="1147087a-e7d3-4d46-a653-8af8c07ef2bd"

cat > /tmp/helm-storage-policy.yaml << ENDOFFILE
interface:
  default: # properties applied to all rules above
     inject:
       requiredTypeInstances:
          - id: ${HELM_TEMPLATE_STORAGE_ID}
            description: "Helm template"
          - id: ${HELM_RELEASE_STORAGE_ID}
            description: "Helm release"
  rules:
      - interface:
          path: cap.*
        oneOf:
        - implementationConstraints:
            requires:
            - path: cap.core.type.platform.kubernetes
        - implementationConstraints: {}

ENDOFFILE
capact policy apply -f /tmp/helm-storage-policy.yaml
  1. Update Helm Storage Backend images to: ghcr.io/capactio/pr/helm-storage-backend:PR-685 - WARNING: Do it for both of the containers from the deployment!
  2. Run Mattermost installation

Related issue(s)

https://github.com/capactio/capact/issues/673