Skip to content

Commit

Permalink
Merge pull request #38 from slok/slok/selectable-fields
Browse files Browse the repository at this point in the history
Upgrade controller-tools
  • Loading branch information
slok authored Oct 10, 2024
2 parents 147331c + ef1fa52 commit 62bd176
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _example/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
IMAGE := ghcr.io/slok/kube-code-generator:v0.3.0-amd64
IMAGE := ghcr.io/slok/kube-code-generator:v0.3.1-amd64

DIRECTORY := $(PWD)
DEPS_CMD := go mod tidy
Expand Down
2 changes: 2 additions & 0 deletions _example/apis/comic/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const (
// +kubebuilder:printcolumn:name="KIND",type="string",JSONPath=".spec.kind"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:singular=hero,path=heroes,shortName=he;sh,scope=Namespaced,categories=heroes;superheroes
// +kubebuilder:selectablefield:JSONPath=`.spec.city`
// +kubebuilder:selectablefield:JSONPath=`.spec.kind`
type Hero struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ spec:
type: boolean
type: object
type: object
selectableFields:
- jsonPath: .spec.city
- jsonPath: .spec.kind
served: true
storage: true
subresources:
Expand Down
4 changes: 2 additions & 2 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ COPY . .
RUN ./scripts/build/bin/build-raw.sh

FROM golang:1.23
ARG CODEGEN_VERSION="1.31.0"
ARG CONTROLLER_GEN_VERSION="0.16.2"
ARG CODEGEN_VERSION="1.31.1"
ARG CONTROLLER_GEN_VERSION="0.16.4"


COPY --from=build-stage /src/bin/kube-code-generator /usr/local/bin/kube-code-generator
Expand Down

0 comments on commit 62bd176

Please sign in to comment.