Skip to content

Commit 8595fa6

Browse files
authored
Properly mark options fields. (#36)
* Properly mark options fields. Signed-off-by: Tamal Saha <tamal@appscode.com> * Run check once in ci pipeline Signed-off-by: Tamal Saha <tamal@appscode.com> * Add license header Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 4c491b6 commit 8595fa6

36 files changed

+4712
-188
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
build:
1313
name: Build
1414
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
k8s: [v1.11.10, v1.12.10, v1.13.10, v1.14.6, v1.15.3, v1.16.3, v1.17.0]
1815
steps:
1916

2017
- name: Set up Go 1.13
@@ -32,10 +29,23 @@ jobs:
3229
sudo apt-get install -y bzr
3330
make ci
3431
32+
kubernetes:
33+
name: Kubernetes
34+
runs-on: ubuntu-latest
35+
needs: build
36+
strategy:
37+
matrix:
38+
k8s: [v1.11.10, v1.12.10, v1.13.10, v1.14.6, v1.15.3, v1.16.3, v1.17.0]
39+
steps:
40+
41+
- name: Check out code into the Go module directory
42+
uses: actions/checkout@v1
43+
3544
- name: Create Kubernetes ${{ matrix.k8s }} cluster
3645
id: kind
3746
uses: engineerd/setup-kind@v0.1.0
3847
with:
48+
version: v0.7.0
3949
config: hack/kubernetes/kind.yaml
4050
image: kindest/node:${{ matrix.k8s }}
4151

@@ -46,8 +56,6 @@ jobs:
4656
USERNAME: 1gtm
4757
REGISTRY_SECRET: regcred
4858
run: |
49-
export KUBECONFIG="$(kind get kubeconfig-path)"
50-
echo
5159
echo "waiting for nodes to be ready ..."
5260
kubectl wait --for=condition=Ready nodes --all --timeout=5m
5361
kubectl get nodes
@@ -56,7 +64,7 @@ jobs:
5664
echo
5765
echo "installing local-path provisioner ..."
5866
kubectl delete storageclass --all
59-
kubectl apply -f https://github.com/rancher/local-path-provisioner/raw/v0.0.11/deploy/local-path-storage.yaml
67+
kubectl apply -f https://github.com/rancher/local-path-provisioner/raw/v0.0.12/deploy/local-path-storage.yaml
6068
kubectl wait --for=condition=Ready pods -n local-path-storage --all --timeout=5m
6169
kubectl apply -f hack/kubernetes/storageclass/standard.yaml
6270
echo
@@ -65,6 +73,6 @@ jobs:
6573
6674
- name: Test charts
6775
run: |
68-
export KUBECONFIG="$(kind get kubeconfig-path)"
76+
export KUBECONFIG="${HOME}/.kube/config"
6977
make ct
7078
kubectl delete crd -l app=stash

api/crds/bindata.go

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

api/crds/installer.stash.appscode.com_stashoperators.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,7 @@ spec:
649649
serverKey:
650650
type: string
651651
required:
652-
- caCrt
653652
- generate
654-
- serverCrt
655-
- serverKey
656653
type: object
657654
useKubeapiserverFqdnForAks:
658655
type: boolean
@@ -707,17 +704,13 @@ spec:
707704
properties:
708705
namespace:
709706
type: string
710-
required:
711-
- namespace
712707
type: object
713708
serviceMonitor:
714709
properties:
715710
labels:
716711
additionalProperties:
717712
type: string
718713
type: object
719-
required:
720-
- labels
721714
type: object
722715
required:
723716
- agent
@@ -747,8 +740,6 @@ spec:
747740
properties:
748741
openshift:
749742
type: boolean
750-
required:
751-
- openshift
752743
type: object
753744
pushgateway:
754745
properties:
@@ -774,7 +765,6 @@ spec:
774765
type: string
775766
required:
776767
- create
777-
- name
778768
type: object
779769
tolerations:
780770
description: If specified, the pod's tolerations.
@@ -817,16 +807,12 @@ spec:
817807
type: object
818808
type: array
819809
required:
820-
- additionalPodSecurityPolicies
821810
- apiserver
822811
- cleaner
823812
- enableAnalytics
824-
- imagePullPolicy
825813
- imagePullSecrets
826-
- logLevel
827814
- monitoring
828815
- operator
829-
- platform
830816
- pushgateway
831817
- replicaCount
832818
- serviceAccount

api/openapi-spec/swagger.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,6 @@
922922
},
923923
"dev.appscode.stash.installer.apis.installer.v1alpha1.Platform": {
924924
"type": "object",
925-
"required": [
926-
"openshift"
927-
],
928925
"properties": {
929926
"openshift": {
930927
"type": "boolean"
@@ -933,9 +930,6 @@
933930
},
934931
"dev.appscode.stash.installer.apis.installer.v1alpha1.PrometheusSpec": {
935932
"type": "object",
936-
"required": [
937-
"namespace"
938-
],
939933
"properties": {
940934
"namespace": {
941935
"type": "string"
@@ -945,8 +939,7 @@
945939
"dev.appscode.stash.installer.apis.installer.v1alpha1.ServiceAccountSpec": {
946940
"type": "object",
947941
"required": [
948-
"create",
949-
"name"
942+
"create"
950943
],
951944
"properties": {
952945
"create": {
@@ -959,9 +952,6 @@
959952
},
960953
"dev.appscode.stash.installer.apis.installer.v1alpha1.ServiceMonitorLabels": {
961954
"type": "object",
962-
"required": [
963-
"labels"
964-
],
965955
"properties": {
966956
"labels": {
967957
"type": "object",
@@ -974,10 +964,7 @@
974964
"dev.appscode.stash.installer.apis.installer.v1alpha1.ServingCerts": {
975965
"type": "object",
976966
"required": [
977-
"generate",
978-
"caCrt",
979-
"serverCrt",
980-
"serverKey"
967+
"generate"
981968
],
982969
"properties": {
983970
"caCrt": {
@@ -1059,15 +1046,11 @@
10591046
"operator",
10601047
"pushgateway",
10611048
"cleaner",
1062-
"imagePullPolicy",
10631049
"imagePullSecrets",
1064-
"logLevel",
10651050
"serviceAccount",
10661051
"apiserver",
10671052
"enableAnalytics",
1068-
"monitoring",
1069-
"additionalPodSecurityPolicies",
1070-
"platform"
1053+
"monitoring"
10711054
],
10721055
"properties": {
10731056
"additionalPodSecurityPolicies": {

0 commit comments

Comments
 (0)