Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation for the State Management MVP #213

Closed
Kshatrix opened this issue Aug 19, 2024 · 1 comment · Fixed by #226
Closed

Initial implementation for the State Management MVP #213

Kshatrix opened this issue Aug 19, 2024 · 1 comment · Fixed by #226
Assignees

Comments

@Kshatrix
Copy link
Collaborator

No description provided.

@wahabmk
Copy link
Contributor

wahabmk commented Aug 20, 2024

As defined in #203, the ability to deploy a Helm chart across multiple templates is out of scope. For now, what we need is for the ability to include Helm charts (via Flux HelmRelease CAPI capability) within a template. Therefore, it looks like we do not need to extend the https://github.com/Mirantis/hmc/tree/main/api/v1alpha1 API at the moment to satisfy #203.

As an example, we could add the following YAML to aws-standalone-cp under templates/aws-standalone-cp/templates to deploy nginx:

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
  name: nginx
  # namespace: default
spec:
  interval: 10m
  url: oci://registry-1.docker.io/bitnamicharts/nginx
  ref:
    semver: "18.1.0"
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: my-nginx
  # namespace: default
spec:
  kubeConfig:
    secretRef:
      name: wali-aws-dev-kubeconfig # Cluster API creates this for the matching Cluster
  interval: 10m
  chartRef:
    kind: OCIRepository
    name: nginx
    # namespace: default
  # values:
  #   replicaCount: 2
  install:
    remediation:
      retries: -1

@DinaBelova DinaBelova changed the title API design for the State Management MVP Initial implementation for the State Management MVP Aug 20, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Project 2A Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants