Skip to content
Open
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 api/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2026 The kpt 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 apis contains the kpt API type definitions.
package apis

//go:generate go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.21.0 object:headerFile="../hack/boilerplate.go.txt",year=$YEAR_GEN applyconfiguration:headerFile="../hack/boilerplate.go.txt" paths=./...
// Drop generated helpers that pull in k8s.io/apimachinery; typed ACs are enough.
//go:generate rm -rf generated/applyconfigurations/utils.go generated/applyconfigurations/internal
6 changes: 4 additions & 2 deletions api/fnresult/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// limitations under the License.

// +kubebuilder:object:generate=true
// +kubebuilder:ac:generate=true
// +kubebuilder:ac:output:package=../../generated/applyconfigurations
// +groupName=kpt.dev
package v1

import (
Expand All @@ -25,8 +28,6 @@ import (
"sigs.k8s.io/kustomize/kyaml/yaml"
)

//go:generate go run sigs.k8s.io/controller-tools/cmd/controller-gen@v0.21.0 object:headerFile="../../../hack/boilerplate.go.txt",year=$YEAR_GEN

// Result contains the structured result from an individual function
type Result struct {
// Image is the full name of the image that generates this result
Expand Down Expand Up @@ -69,6 +70,7 @@ func ResultListGVK() schema.GroupVersionKind {
}

// ResultList contains aggregated results from multiple functions
// +kubebuilder:ac:generate=true
type ResultList struct {
yaml.ResourceMeta `yaml:",inline"`
// ExitCode is the exit code of kpt command
Expand Down
58 changes: 58 additions & 0 deletions api/generated/applyconfigurations/fnresult/v1/field.go

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

96 changes: 96 additions & 0 deletions api/generated/applyconfigurations/fnresult/v1/resultitem.go

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

68 changes: 68 additions & 0 deletions api/generated/applyconfigurations/kptfile/v1/condition.go

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

Loading