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

update kustomization #99

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading