add boilerplate required license terms
This commit is contained in:
parent
5a51799e23
commit
8bb44ce813
16
Dockerfile
16
Dockerfile
|
|
@ -1,4 +1,18 @@
|
||||||
|
# Copyright 2017 The Kubernetes Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
FROM alpine:3.5
|
FROM alpine:3.5
|
||||||
RUN apk update --no-cache && apk add ca-certificates
|
RUN apk update --no-cache && apk add ca-certificates
|
||||||
COPY nfs-client-provisioner /nfs-client-provisioner
|
COPY nfs-client-provisioner /nfs-client-provisioner
|
||||||
ENTRYPOINT ["/nfs-client-provisioner"]
|
ENTRYPOINT ["/nfs-client-provisioner"]
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@
|
||||||
- check the folder and file "SUCCESS" created
|
- check the folder and file "SUCCESS" created
|
||||||
- `kubectl delete -f deploy/test-pod.yaml`
|
- `kubectl delete -f deploy/test-pod.yaml`
|
||||||
- `kubectl delete -f deploy/test-claim.yaml`
|
- `kubectl delete -f deploy/test-claim.yaml`
|
||||||
- check the folder renamed
|
- check the folder renamed to `archieve-???`
|
||||||
|
|
|
||||||
15
build.sh
15
build.sh
|
|
@ -1,3 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
CGO_ENABLED=0 go build ./cmd/nfs-client-provisioner #&& docker build -t quay.io/jackieli/nfs-client-provisioner .
|
# Copyright 2017 The Kubernetes Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
CGO_ENABLED=0 go build ./cmd/nfs-client-provisioner #&& docker build -t quay.io/jackieli/nfs-client-provisioner .
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,19 @@
|
||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -28,4 +28,4 @@ spec:
|
||||||
- name: nfs-client-root
|
- name: nfs-client-root
|
||||||
nfs:
|
nfs:
|
||||||
server: 10.10.10.60
|
server: 10.10.10.60
|
||||||
path: /ifs/kubernetes
|
path: /ifs/kubernetes
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ spec:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Mi
|
storage: 1Mi
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: nfs-pvc
|
- name: nfs-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: test-claim
|
claimName: test-claim
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue