mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+kustomize
This commit is contained in:
parent
c313f2683b
commit
e24aaabf64
4
projects/kubernetes.io/kustomize/kustomization.yaml
Normal file
4
projects/kubernetes.io/kustomize/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
resources:
|
||||
- service.yaml
|
||||
patches:
|
||||
- path: patch.yaml
|
34
projects/kubernetes.io/kustomize/package.yml
Normal file
34
projects/kubernetes.io/kustomize/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
distributable:
|
||||
url: https://github.com/kubernetes-sigs/kustomize/archive/refs/tags/kustomize/v{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: kubernetes-sigs/kustomize
|
||||
strip: /kustomize\/v/
|
||||
|
||||
provides:
|
||||
- bin/kustomize
|
||||
|
||||
dependencies:
|
||||
kubernetes.io/kubectl: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.18
|
||||
env:
|
||||
GO111MODULE: on
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X=sigs.k8s.io/kustomize/api/provenance.version=kustomize/v{{version}}
|
||||
linux:
|
||||
# https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
script: |
|
||||
GOBIN={{prefix}}/bin go install -v -ldflags="$LDFLAGS" ./kustomize
|
||||
|
||||
test:
|
||||
script: |
|
||||
test "$(kustomize version) = {{ version }}"
|
||||
kustomize build .
|
7
projects/kubernetes.io/kustomize/patch.yaml
Normal file
7
projects/kubernetes.io/kustomize/patch.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tea-test
|
||||
spec:
|
||||
selector:
|
||||
app: foo
|
6
projects/kubernetes.io/kustomize/service.yaml
Normal file
6
projects/kubernetes.io/kustomize/service.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tea-test
|
||||
spec:
|
||||
type: LoadBalancer
|
Loading…
Reference in a new issue