mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
fix breaking examples (#5024)
* fix examples?springboot with no kustomization.yaml * fix examples/loadHttp with legacy patch syntax
This commit is contained in:
@@ -4,12 +4,11 @@ resources:
|
||||
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/wordpress/deployment.yaml
|
||||
- https://github.com/knative/serving/releases/download/v0.12.0/serving.yaml # redirects to s3
|
||||
patches:
|
||||
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml
|
||||
patchesStrategicMerge:
|
||||
- |-
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: custom-metrics-auth-reader
|
||||
namespace: kube-system
|
||||
$patch: delete
|
||||
- path: https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml
|
||||
- patch: |-
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: custom-metrics-auth-reader
|
||||
namespace: kube-system
|
||||
$patch: delete
|
||||
|
||||
5
examples/springboot/base/application.properties
Normal file
5
examples/springboot/base/application.properties
Normal file
@@ -0,0 +1,5 @@
|
||||
app.name=Staging Kinflate Demo
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.datasource.url=jdbc:mysql://<production_db_ip>:3306/db_example
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=admin
|
||||
8
examples/springboot/base/kustomization.yaml
Normal file
8
examples/springboot/base/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
configMapGenerator:
|
||||
- name: demo-configmap
|
||||
# behavior: merge
|
||||
files:
|
||||
- application.properties
|
||||
@@ -1,7 +1,7 @@
|
||||
resources:
|
||||
- ../../base
|
||||
patchesStrategicMerge:
|
||||
- patch.yaml
|
||||
- healthcheck_patch.yaml
|
||||
- memorylimit_patch.yaml
|
||||
patches:
|
||||
- path: patch.yaml
|
||||
- path: healthcheck_patch.yaml
|
||||
- path: memorylimit_patch.yaml
|
||||
namePrefix: production-
|
||||
|
||||
Reference in New Issue
Block a user