Skip to content

Commit ca68854

Browse files
Update client-go to kubernetes-1.16.3 (#987)
* Update client-go to kubernetes-1.16.3 Signed-off-by: Tamal Saha <tamal@appscode.com> * Fix OwnerReference + Refactor auto-backup code Co-authored-by: Md. Emruz Hossain <hossainemruz@gmail.com>
1 parent e18f30d commit ca68854

File tree

1,602 files changed

+234179
-88583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,602 files changed

+234179
-88583
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
k8s: [v1.12.10, v1.14.6, v1.16.2]
17+
k8s: [v1.12.10, v1.14.6, v1.16.3, v1.17.0]
1818
steps:
1919

20+
- name: Set up Go 1.13
21+
uses: actions/setup-go@v1
22+
with:
23+
go-version: 1.13
24+
id: go
25+
2026
- name: Check out code into the Go module directory
2127
uses: actions/checkout@v1
2228

@@ -48,6 +54,7 @@ jobs:
4854
id: kind
4955
uses: engineerd/setup-kind@v0.1.0
5056
with:
57+
version: v0.6.0
5158
config: hack/kubernetes/kind.yaml
5259
image: kindest/node:${{ matrix.k8s }}
5360

@@ -58,8 +65,6 @@ jobs:
5865
USERNAME: 1gtm
5966
REGISTRY_SECRET: regcred
6067
run: |
61-
export KUBECONFIG="$(kind get kubeconfig-path)"
62-
echo
6368
echo "waiting for nodes to be ready ..."
6469
kubectl wait --for=condition=Ready nodes --all --timeout=5m
6570
kubectl get nodes
@@ -90,7 +95,6 @@ jobs:
9095
TEST_CREDENTIALS: ${{ secrets.TEST_CREDENTIALS }}
9196
GOOGLE_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON_KEY }}
9297
run: |
93-
export KUBECONFIG="$(kind get kubeconfig-path)"
9498
echo "preparing test credentials"
9599
mkdir -p hack/config
96100
echo -n "$TEST_CREDENTIALS" > hack/config/.env

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ BIN := stash
2121
COMPRESS ?=no
2222

2323
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
24-
CRD_OPTIONS ?= "crd:trivialVersions=true"
25-
CODE_GENERATOR_IMAGE ?= appscode/gengo:release-1.14
24+
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"
25+
CODE_GENERATOR_IMAGE ?= appscode/gengo:release-1.16
2626
API_GROUPS ?= repositories:v1alpha1 stash:v1alpha1 stash:v1beta1
2727

2828
# Where to push the docker image.
@@ -76,7 +76,7 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
7676
TAG_PROD := $(TAG)
7777
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)
7878

79-
GO_VERSION ?= 1.12.12
79+
GO_VERSION ?= 1.13.5
8080
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)
8181
TEST_IMAGE ?= appscode/golang-dev:$(GO_VERSION)-stash
8282

@@ -187,6 +187,8 @@ openapi: $(addprefix openapi-, $(subst :,_, $(API_GROUPS)))
187187
-w $(DOCKER_REPO_ROOT) \
188188
--env HTTP_PROXY=$(HTTP_PROXY) \
189189
--env HTTPS_PROXY=$(HTTPS_PROXY) \
190+
--env GO111MODULE=on \
191+
--env GOFLAGS="-mod=vendor" \
190192
$(BUILD_IMAGE) \
191193
go run hack/gencrd/main.go
192194

api/api-rules/violation_exceptions.list

Lines changed: 216 additions & 1 deletion
Large diffs are not rendered by default.

api/crds/bindata.go

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

api/crds/stash.appscode.com_backupbatches.yaml

Lines changed: 321 additions & 24 deletions
Large diffs are not rendered by default.

api/crds/stash.appscode.com_backupblueprints.yaml

Lines changed: 208 additions & 40 deletions
Large diffs are not rendered by default.

api/crds/stash.appscode.com_backupconfigurations.yaml

Lines changed: 182 additions & 14 deletions
Large diffs are not rendered by default.

api/crds/stash.appscode.com_backupsessions.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spec:
2929
listKind: BackupSessionList
3030
plural: backupsessions
3131
singular: backupsession
32+
preserveUnknownFields: false
3233
scope: Namespaced
3334
subresources:
3435
status: {}
@@ -38,12 +39,12 @@ spec:
3839
apiVersion:
3940
description: 'APIVersion defines the versioned schema of this representation
4041
of an object. Servers should convert recognized schemas to the latest
41-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
42+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
4243
type: string
4344
kind:
4445
description: 'Kind is a string value representing the REST resource this
4546
object represents. Servers may infer this from the endpoint the client
46-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
47+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
4748
type: string
4849
metadata:
4950
type: object

api/crds/stash.appscode.com_functions.yaml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
shortNames:
2222
- fn
2323
singular: function
24+
preserveUnknownFields: false
2425
scope: Cluster
2526
subresources: {}
2627
validation:
@@ -29,12 +30,12 @@ spec:
2930
apiVersion:
3031
description: 'APIVersion defines the versioned schema of this representation
3132
of an object. Servers should convert recognized schemas to the latest
32-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
33+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
3334
type: string
3435
kind:
3536
description: 'Kind is a string value representing the REST resource this
3637
object represents. Servers may infer this from the endpoint the client
37-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
38+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
3839
type: string
3940
metadata:
4041
type: object
@@ -150,7 +151,7 @@ spec:
150151
uid?'
151152
type: string
152153
optional:
153-
description: Specify whether the ConfigMap or it's
154+
description: Specify whether the ConfigMap or its
154155
key must be defined
155156
type: boolean
156157
required:
@@ -206,7 +207,7 @@ spec:
206207
uid?'
207208
type: string
208209
optional:
209-
description: Specify whether the Secret or it's key
210+
description: Specify whether the Secret or its key
210211
must be defined
211212
type: boolean
212213
required:
@@ -364,7 +365,7 @@ spec:
364365
preStop:
365366
description: 'PreStop is called immediately before a container
366367
is terminated due to an API request or management event such
367-
as liveness probe failure, preemption, resource contention,
368+
as liveness/startup probe failure, preemption, resource contention,
368369
etc. The handler is not called if the container crashes or
369370
exits. The reason for termination is passed to the handler.
370371
The Pod''s termination grace period countdown begins before
@@ -540,7 +541,7 @@ spec:
540541
successThreshold:
541542
description: Minimum consecutive successes for the probe to
542543
be considered successful after having failed. Defaults to
543-
1. Must be 1 for liveness. Minimum value is 1.
544+
1. Must be 1 for liveness and startup. Minimum value is 1.
544545
format: int32
545546
type: integer
546547
tcpSocket:
@@ -662,7 +663,7 @@ spec:
662663
successThreshold:
663664
description: Minimum consecutive successes for the probe to
664665
be considered successful after having failed. Defaults to
665-
1. Must be 1 for liveness. Minimum value is 1.
666+
1. Must be 1 for liveness and startup. Minimum value is 1.
666667
format: int32
667668
type: integer
668669
tcpSocket:
@@ -805,6 +806,36 @@ spec:
805806
the container.
806807
type: string
807808
type: object
809+
windowsOptions:
810+
description: The Windows specific settings applied to all containers.
811+
If unspecified, the options from the PodSecurityContext will
812+
be used. If set in both SecurityContext and PodSecurityContext,
813+
the value specified in SecurityContext takes precedence.
814+
properties:
815+
gmsaCredentialSpec:
816+
description: GMSACredentialSpec is where the GMSA admission
817+
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
818+
inlines the contents of the GMSA credential spec named
819+
by the GMSACredentialSpecName field. This field is alpha-level
820+
and is only honored by servers that enable the WindowsGMSA
821+
feature flag.
822+
type: string
823+
gmsaCredentialSpecName:
824+
description: GMSACredentialSpecName is the name of the GMSA
825+
credential spec to use. This field is alpha-level and
826+
is only honored by servers that enable the WindowsGMSA
827+
feature flag.
828+
type: string
829+
runAsUserName:
830+
description: The UserName in Windows to run the entrypoint
831+
of the container process. Defaults to the user specified
832+
in image metadata if unspecified. May also be set in PodSecurityContext.
833+
If set in both SecurityContext and PodSecurityContext,
834+
the value specified in SecurityContext takes precedence.
835+
This field is alpha-level and it is only honored by servers
836+
that enable the WindowsRunAsUserName feature flag.
837+
type: string
838+
type: object
808839
type: object
809840
type: object
810841
volumeDevices:
@@ -859,7 +890,7 @@ spec:
859890
volume should be mounted. Behaves similarly to SubPath but environment
860891
variable references $(VAR_NAME) are expanded using the container's
861892
environment. Defaults to "" (volume's root). SubPathExpr and
862-
SubPath are mutually exclusive. This field is alpha in 1.14.
893+
SubPath are mutually exclusive. This field is beta in 1.15.
863894
type: string
864895
required:
865896
- mountPath

0 commit comments

Comments
 (0)