Skip to content

Commit

Permalink
update kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdikhashan committed Feb 13, 2025
1 parent db48e58 commit cdda395
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 27 deletions.
16 changes: 10 additions & 6 deletions config/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ resources:

namespace: kserve

commonLabels:
kustomize.component: kserve-models-web-app
app.kubernetes.io/component: kserve-models-web-app

images:
- name: kserve/models-web-app
newName: kserve/models-web-app
newTag: v0.13.0
configMapGenerator:
- name: kserve-models-web-app-config
literals:
- APP_DISABLE_AUTH="True"
- literals:
- APP_DISABLE_AUTH="True"
name: kserve-models-web-app-config
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/component: kserve-models-web-app
kustomize.component: kserve-models-web-app
43 changes: 22 additions & 21 deletions config/overlays/kubeflow/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,9 @@ kind: Kustomization
namespace: kubeflow

# Labels to add to all resources and selectors.
commonLabels:
app: kserve
app.kubernetes.io/name: kserve

bases:
- ../../base
- web-app-authorization-policy.yaml

patchesStrategicMerge:
- patches/web-app-sidecar.yaml

patchesJson6902:
- target:
group: networking.istio.io
version: v1beta1
kind: VirtualService
name: kserve-models-web-app
namespace: kserve
path: patches/web-app-vsvc.yaml

generatorOptions:
disableNameSuffixHash: true
Expand All @@ -32,11 +16,28 @@ generatorOptions:
# variabalize ingress gateway, webhook service name and
# kserve namespace in webhook configurations
configMapGenerator:
- name: kserve-models-web-app-config
behavior: replace
literals:
- USERID_HEADER=kubeflow-userid
- APP_PREFIX=/kserve-endpoints
- behavior: replace
literals:
- USERID_HEADER=kubeflow-userid
- APP_PREFIX=/kserve-endpoints
name: kserve-models-web-app-config

configurations:
- params.yaml
resources:
- ../../base
- web-app-authorization-policy.yaml
labels:
- includeSelectors: true
pairs:
app: kserve
app.kubernetes.io/name: kserve
patches:
- path: patches/web-app-vsvc.yaml
target:
group: networking.istio.io
kind: VirtualService
name: kserve-models-web-app
namespace: kserve
version: v1beta1
- path: patches/web-app-sidecar.yaml

0 comments on commit cdda395

Please sign in to comment.