Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ AWS_SDK_MODEL_OVERRIDE ?= "n"
# Move Gateway API CRDs from bases directory to gateway directory
MOVE_GATEWAY_CRDS = mv config/crd/bases/gateway.k8s.aws_* config/crd/gateway/

# Move AGA CRDs from bases directory to aga directory
MOVE_AGA_CRDS = mkdir -p config/crd/aga && mv config/crd/bases/aga.k8s.aws_* config/crd/aga/

# Copy combined Gateway API CRDs from bases directory to helm directory
COPY_GATEWAY_CRDS_TO_HELM = cp config/crd/gateway/gateway-crds.yaml helm/aws-load-balancer-controller/crds/gateway-crds.yaml

# Copy combined AGA CRDs from aga directory to helm directory
COPY_AGA_CRDS_TO_HELM = cp config/crd/aga/aga-crds.yaml helm/aws-load-balancer-controller/crds/aga-crds.yaml

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
Expand Down Expand Up @@ -68,11 +74,16 @@ manifests: controller-gen kustomize

crds: manifests
$(MOVE_GATEWAY_CRDS)
$(MOVE_AGA_CRDS)
$(KUSTOMIZE) build config/crd > helm/aws-load-balancer-controller/crds/crds.yaml
$(KUSTOMIZE) build config/crd/gateway > config/crd/gateway/gateway-crds.yaml
echo '---' > config/crd/gateway/gateway-crds.yaml
$(KUSTOMIZE) build config/crd/gateway >> config/crd/gateway/gateway-crds.yaml
$(COPY_GATEWAY_CRDS_TO_HELM)
$(KUSTOMIZE) build config/crd/aga > config/crd/aga/aga-crds.yaml
echo '---' > config/crd/aga/aga-crds.yaml
$(KUSTOMIZE) build config/crd/aga >> config/crd/aga/aga-crds.yaml
$(COPY_AGA_CRDS_TO_HELM)

# Run go fmt against code
fmt:
Expand Down Expand Up @@ -218,3 +229,12 @@ gw-api-ref-docs:
--config=crd-ref-docs.yaml \
--renderer=markdown \
--output-path=${PWD}/docs/guide/gateway/spec.md

# generate aga CRD spec doc
.PHONY: aga-ref-docs
aga-ref-docs:
crd-ref-docs \
--source-path=${PWD}/apis/aga/ \
--config=crd-ref-docs.yaml \
--renderer=markdown \
--output-path=${PWD}/docs/guide/globalaccelerator/spec.md
306 changes: 306 additions & 0 deletions apis/aga/v1beta1/globalaccelerator_types.go

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions apis/aga/v1beta1/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
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 v1beta1 contains API Schema definitions for the aga v1beta1 API group
// +kubebuilder:object:generate=true
// +groupName=aga.k8s.aws
package v1beta1

import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "aga.k8s.aws", Version: "v1beta1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)
Loading
Loading