Files
app-istio/helm-charts/upstream/istio-ingressgateway-helm/files/Makefile
Aman Pandae 8aa1135894 Deprecate Istio-Operator in StarlingX
Istio Operator mechanism has been deprecated
and is discouraged from Istio v1.23

As part of Istio App Maintenance, We are moving away from
Istio Operator dependency and handling all the required
charts using helm and fluxCD framework.

Following are the steps taken for migration -

***********************************************
3 Verticals -
helm/upstream
Python-k8s-istio
stx-istio-helm

helm/upstream ->
(debian/deb_folder and Makefile to be created for below Images)

istio-base (handles CRDS required for istio application)
istio-cni (Installs required CNI and sets iptable rules)
istio-pilot (Istio discovery service)
istio-proxyv2 - Ingress (Ingress Gateway)
istio-proxyv2 - Egress (Egress Gateway)

python-k8s-istio ->
1. python3-k8sapp-istio/k8sapp_istio/k8sapp_istio/helm/
The files below are to be created for handling Individual
Base Helm charts.

istio-base.py
istio-cni.py
istio-pilot.py
istio-proxyv2-Ingress.py
istio-proxyv2-Egress.py
and remove (python3-k8sapp-istio/k8sapp_istio/k8sapp_istio/helm/istio_operator.py)

2. lifecycle_istio.py changes -

post_apply (should apply all charts)
pre_remove (remove code related to istio-operator)
post_remove(remove code related to istio-operator)
_get_helm_user_overrides (Handled with istio-base chart)

stx-istio-helm ->
FluxCD Manifest update for below -
eg:- (helmrelease, istio-cni-static-overrides/system-overrides, kustomization.yaml)

istio-base
istio-cni
istio-pilot
istio-proxyv2 - Ingress
istio-proxyv2 - Egress
Istio-operator charts to be removed.
***********************************************

Test Plan:
PASSED: build-pkgs, results in proper helm charts with
        appropriate versions.
PASSED: build deb Image without any errors
PASSED: Istio App LifeCycle tests -
        (Upload, Apply, Update, Remove, Delete)
PASSED: Istio App crds, cni daemonset, and other services
        are deployed properly.
PASSED: App update from pre-operator-deprecation to
        post-operator-deprecation works seamlessly.
PASSED: Autoversioning of all separate Helm charts is
        handled.
PASSED: Lifecycle fetches necessary overrides from helm
        properly.

Story: 2011403
Task: 52501

Change-Id: If72774cf081821c72fe720cf35a7b6c20f2c1ab8
Signed-off-by: Aman Pandae <AmanPandae.Mothukuri@windriver.com>
2025-08-06 02:03:27 -04:00

42 lines
843 B
Makefile

#
# Copyright 2017 The Openstack-Helm Authors.
#
# Copyright (c) 2025 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# It's necessary to set this because some environments don't link sh -> bash.
SHELL := /bin/bash
TASK := build
EXCLUDES := doc tests tools logs tmp
CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
.PHONY: $(EXCLUDES) $(CHARTS)
all: $(CHARTS)
$(CHARTS):
@if [ -d $@ ]; then \
echo; \
echo "===== Processing [$@] chart ====="; \
make $(TASK)-$@; \
fi
init-%:
if [ -f $*/Makefile ]; then make -C $*; fi
lint-%: init-%
if [ -d $* ]; then helm lint $*; fi
build-%:
if [ -d $* ]; then helm package --version $(CHART_VERSION) $*; fi
clean:
@echo "Clean all build artifacts"
rm -f */templates/_partials.tpl */templates/_globals.tpl
rm -rf */charts */tmpcharts
%:
@: