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

added helm chart for aci operator and helm option to acc-provision #683

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

siva-muni
Copy link
Contributor

@siva-muni siva-muni commented Sep 6, 2022

this PR is for the task https://github.com/noironetworks/support/issues/1879.

  • tested the helm chart on rke cluster, able to bring up the aci-operator and py-tests also passed on the cluster.
  • Need to test on other cluster (k8s and openshift) mean while Requesting the PR for review.
  • during the review please ignore below files. these are the helm chart default files
    • aci-helm/LICENSE
    • aci-helm/README.md
    • aci-helm/templates/_helpers.tpl

@snaiksat
Copy link
Contributor

Could we use the acc-provision command to generate helm chart package itself rather than creating the directory structure in this repo? This package can be generated using a different argument from the one you are using for generating the values. The package can be generated and pushed to a helm repo any time acc-provision is released.

namespace: {{ default "aci-containers-system" (.Values.kubeConfig).system_namespace }}
---
apiVersion: {{ default "apps/v1" (.Values.kubeConfig).use_apps_api }}
kind: Deployment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could separate Deployment from RBAC objects?

@@ -2,7 +2,7 @@ usage: acc_provision.py [-h] [-v] [--release] [--debug] [--sample] [-c file]
[-o file] [-z file] [-r file] [-a] [-d] [-u name]
[-p pass] [-w timeout] [--list-flavors] [-f flavor]
[-t token] [--test-data-out file] [--skip-kafka-certs]
[--upgrade] [--disable-multus disable_multus]
[--upgrade] [--disable-multus disable_multus] [--helm]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have two flags here:

  1. [--helm-values file]
  2. [--helm-chart file] = a generated aci-helm.tar.gz chart (equivalent to output of helm package)

Or

  1. [--helm dir] which generates both files at the dir

To install
-----------

helm install <helm-rel-name> aci-helm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aci-helm -> aci-cni

@@ -0,0 +1,167 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy of: https://github.com/noironetworks/acc-provision/blob/master/provision/acc_provision/templates/acc-provision-crd.yaml
and I would suggest that we do not create manual copies of files like this.

To install
-----------

helm install <helm-rel-name> aci-helm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aci-helm -> aci-cni (here and everywhere else we have used)

@snaiksat
Copy link
Contributor

(didnt realize my inline comments had not gotten published)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants