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

feat(lifecycle-operator): add helm chart for lifecycle operator #2200

Merged
merged 11 commits into from
Oct 2, 2023
18 changes: 9 additions & 9 deletions .github/actions/deploy-klt-on-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ runs:
run: |
echo "Installing Keptn using helm"
helm version
helm install -n keptn-lifecycle-toolkit-system --create-namespace toolkit ./helm/chart \
helm install -n keptn-lifecycle-toolkit-system --create-namespace lifecycle-operator ./lifecycle-operator/chart \
--set schedulingGatesEnabled=${{ inputs.scheduling-gates }} \
--set scheduler.scheduler.imagePullPolicy=Never \
--set scheduler.scheduler.image.tag=${{ inputs.runtime_tag }} \
--set scheduler.scheduler.image.repository="localhost:5000/keptn/scheduler" \
--set lifecycleOperator.manager.imagePullPolicy=Never \
--set lifecycleOperator.manager.image.tag=${{ inputs.runtime_tag }} \
--set lifecycleOperator.manager.image.repository="localhost:5000/keptn/lifecycle-operator" \
--set lifecycleOperator.manager.env.functionRunnerImage=localhost:5000/keptn/deno-runtime:${{ inputs.runtime_tag }} \
--set lifecycleOperator.manager.env.pythonRunnerImage=localhost:5000/keptn/python-runtime:${{ inputs.runtime_tag }} \
--set scheduler.imagePullPolicy=Never \
--set scheduler.image.tag=${{ inputs.runtime_tag }} \
--set scheduler.image.repository="localhost:5000/keptn/scheduler" \
--set lifecycleOperator.imagePullPolicy=Never \
--set lifecycleOperator.image.tag=${{ inputs.runtime_tag }} \
--set lifecycleOperator.image.repository="localhost:5000/keptn/lifecycle-operator" \
--set lifecycleOperator.env.functionRunnerImage=localhost:5000/keptn/deno-runtime:${{ inputs.runtime_tag }} \
--set lifecycleOperator.env.pythonRunnerImage=localhost:5000/keptn/python-runtime:${{ inputs.runtime_tag }} \

helm install -n keptn-lifecycle-toolkit-system --create-namespace cert-manager ./klt-cert-manager/chart \
--set imagePullPolicy=Never \
Expand Down
11 changes: 0 additions & 11 deletions .github/scripts/.helm-tests/default/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ lifecycleWebhookService:
protocol: TCP
targetPort: 9443
type: ClusterIP
metricsManagerConfig:
controllerManagerConfigYaml:
health:
healthProbeBindAddress: :8081
leaderElection:
leaderElect: true
resourceName: 3f8532ca.keptn.sh
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
scheduler:
nodeSelector: {}
replicas: 1
Expand Down
8 changes: 4 additions & 4 deletions .github/scripts/generate-helm-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ else
echo "Readme Generator is already installed, continuing..."
fi

echo "Generating global readme now..."
cat ./helm/chart/values.yaml ./helm/chart/doc.yaml > ./helm/chart/rendered.yaml
readme-generator --values=./helm/chart/rendered.yaml --readme=./helm/chart/README.md
rm ./helm/chart/rendered.yaml
echo "Generating lifecycle operator readme now..."
cat ./lifecycle-operator/chart/values.yaml ./lifecycle-operator/chart/doc.yaml > ./lifecycle-operator/chart/rendered.yaml
readme-generator --values=./lifecycle-operator/chart/rendered.yaml --readme=./lifecycle-operator/chart/README.md
rm ./lifecycle-operator/chart/rendered.yaml

echo "Generating keptn cert manager readme now..."
cat ./klt-cert-manager/chart/values.yaml ./klt-cert-manager/chart/doc.yaml > ./klt-cert-manager/chart/rendered.yaml
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/helm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ echo "running Helm tests"
for test in $tests
do
echo "Testing $test"
helm template --namespace helmtests -f $test/values.yaml ./helm/chart > $test/helm_tests_output.yaml
## TODO: test also other helm charts (metrics-operator, certificate-operator)
helm template --namespace helmtests -f $test/values.yaml ./lifecycle-operator/chart > $test/helm_tests_output.yaml
if [ $? -ne 0 ]
then
echo "Error: helm template failed for test in $test"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/validate-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
cd ..

- name: Check if Helm doc is up to date
## TODO: test also other helm docs (metrics-operator, certificate-operator)
run: |
cd ./helm/chart/
cd ./lifecycle-operator/chart/
cp ./README.md ./README-old.md
cat ./values.yaml ./doc.yaml > ./rendered.yaml
readme-generator --values=./rendered.yaml --readme=./README.md
Expand Down
1 change: 1 addition & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ignore: |
helm/chart
metrics-operator/chart
klt-cert-manager/chart
lifecycle-operator/chart
.github/scripts/.helm-tests

rules:
Expand Down
2 changes: 0 additions & 2 deletions helm/.gitignore

This file was deleted.

86 changes: 0 additions & 86 deletions helm/chart/README.md

This file was deleted.

Loading
Loading