Skip to content

Commit

Permalink
Add SslPolicy Field to FrontendConfig
Browse files Browse the repository at this point in the history
This is an optional field
  • Loading branch information
spencerhance committed Feb 10, 2020
1 parent 658bdc1 commit 372ad0c
Show file tree
Hide file tree
Showing 26 changed files with 59 additions and 36 deletions.
4 changes: 2 additions & 2 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -o pipefail

SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
OPENAPI_PKG=${GOPATH}/src/k8s.io/kube-openapi
OPENAPI_PKG=k8s.io/kube-openapi

echo "Generating composite types"
go run ${SCRIPT_ROOT}/pkg/composite/gen/main.go
Expand Down Expand Up @@ -52,7 +52,7 @@ echo "Performing code generation for FrontendConfig CRD"
${CODEGEN_PKG}/generate-groups.sh \
"deepcopy,client,informer,lister" \
k8s.io/ingress-gce/pkg/frontendconfig/client k8s.io/ingress-gce/pkg/apis \
frontendconfig:v1beta1 \
"frontendconfig:v1beta1" \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for FrontendConfig v1beta1"
Expand Down
7 changes: 3 additions & 4 deletions pkg/apis/frontendconfig/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ import (
type FrontendConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec FrontendConfigSpec `json:"spec"`
Status FrontendConfigStatus `json:"status"`
Spec FrontendConfigSpec `json:"spec"`
Status FrontendConfigStatus `json:"status"`
}

// FrontendConfigSpec is the spec for a FrontendConfig resource
// +k8s:openapi-gen=true
type FrontendConfigSpec struct {
// Add individual features here
SslPolicy *string `json:"sslPolicy,omitempty"`
}

// FrontendConfigStatus is the status for a FrontendConfig resource
Expand Down
11 changes: 8 additions & 3 deletions pkg/apis/frontendconfig/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion pkg/apis/frontendconfig/v1beta1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion pkg/frontendconfig/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/frontendconfig/client/clientset/versioned/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/frontendconfig/client/clientset/versioned/fake/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 372ad0c

Please sign in to comment.