capactio / website

Source for the capact.io website
https://capact.io
Apache License 2.0
6 stars 4 forks source link

Play with Capact #99

Closed mszostok closed 2 years ago

mszostok commented 2 years ago

Description

Preview URL:

Changes proposed in this pull request:

NOTE: The Argo UI, was was not described.

Blog related

Alternative titles:


Alternative scenario:

I spot that current examples don't show another important value of Capact: glue different tools and unify it usage via Capact CLI. Because of that, I thought about a different example.

Currently, in both Implementations we use echo to produce just a different string. Instead, we could use helm and kubectl CLIs to produce the ConfigMap manifest.

Implementations:

By default, Helm template is used, By using proper Policy, the kubectl kustomize is used instead.

rules:
  - interface:
      path: cap.interface.capactio.examples.manifest
    oneOf:
    - implementationConstraints:
        attributes:
          - path: cap.attribute.capactio.examples.kustomize
            revision: 0.1.0

Pros:

Cons:

You can download hello-world.zip and execute command describe above.

I discussed that with @pkosiec, but the outcome was that we should keep our example as simple as possible (KISS).

Testing

Populate Hub with manifests from https://github.com/capactio/hub-manifests/pull/53

Related issue(s)

Fix https://github.com/capactio/website/issues/63

mszostok commented 2 years ago

I added 👀 emoji to @pkosiec comments, which will be resolved after brainstorming/second review :)