mirror of
https://github.com/imjasonh/git-k8s
synced 2026-07-20 13:20:01 +00:00
Change API group from git.k8s.io to git-k8s.imjasonh.com
The *.k8s.io group is protected in Kubernetes and requires an api-approved.kubernetes.io annotation. Switch to a custom domain to avoid the restriction entirely. https://claude.ai/code/session_01QfFzqKQUsxxBsiZUhuJ3pG
This commit is contained in:
parent
2f694f6f1f
commit
cc391645e1
11 changed files with 30 additions and 38 deletions
77
config/crds/git-k8s.imjasonh.com_gitbranches.yaml
Normal file
77
config/crds/git-k8s.imjasonh.com_gitbranches.yaml
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: gitbranches.git-k8s.imjasonh.com
|
||||
spec:
|
||||
group: git-k8s.imjasonh.com
|
||||
names:
|
||||
kind: GitBranch
|
||||
listKind: GitBranchList
|
||||
plural: gitbranches
|
||||
singular: gitbranch
|
||||
shortNames:
|
||||
- gitbr
|
||||
categories:
|
||||
- git
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
type: object
|
||||
properties:
|
||||
spec:
|
||||
type: object
|
||||
required:
|
||||
- repositoryRef
|
||||
- branchName
|
||||
properties:
|
||||
repositoryRef:
|
||||
type: string
|
||||
description: Name of the parent GitRepository resource.
|
||||
branchName:
|
||||
type: string
|
||||
description: Name of the branch (e.g., "main", "feature/foo").
|
||||
status:
|
||||
type: object
|
||||
properties:
|
||||
conditions:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
type: string
|
||||
format: date-time
|
||||
reason:
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
headCommit:
|
||||
type: string
|
||||
description: SHA of the current HEAD commit.
|
||||
lastUpdated:
|
||||
type: string
|
||||
format: date-time
|
||||
additionalPrinterColumns:
|
||||
- name: Repository
|
||||
type: string
|
||||
jsonPath: .spec.repositoryRef
|
||||
- name: Branch
|
||||
type: string
|
||||
jsonPath: .spec.branchName
|
||||
- name: HEAD
|
||||
type: string
|
||||
jsonPath: .status.headCommit
|
||||
priority: 1
|
||||
- name: Age
|
||||
type: date
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
Loading…
Add table
Add a link
Reference in a new issue