github.com/oam-dev/kubevela@v1.9.11/e2e/addon/mock/testdata/fluxcd/resources/crds/git-repo.yaml (about) 1 apiVersion: apiextensions.k8s.io/v1 2 kind: CustomResourceDefinition 3 metadata: 4 annotations: 5 controller-gen.kubebuilder.io/version: v0.5.0 6 labels: 7 app.kubernetes.io/instance: flux-system 8 name: gitrepositories.source.toolkit.fluxcd.io 9 spec: 10 group: source.toolkit.fluxcd.io 11 names: 12 kind: GitRepository 13 listKind: GitRepositoryList 14 plural: gitrepositories 15 shortNames: 16 - gitrepo 17 singular: gitrepository 18 scope: Namespaced 19 versions: 20 - additionalPrinterColumns: 21 - jsonPath: .spec.url 22 name: URL 23 type: string 24 - jsonPath: .status.conditions[?(@.type=="Ready")].status 25 name: Ready 26 type: string 27 - jsonPath: .status.conditions[?(@.type=="Ready")].message 28 name: Status 29 type: string 30 - jsonPath: .metadata.creationTimestamp 31 name: Age 32 type: date 33 name: v1beta1 34 schema: 35 openAPIV3Schema: 36 description: GitRepository is the Schema for the gitrepositories API 37 properties: 38 apiVersion: 39 description: 'APIVersion defines the versioned schema of this representation 40 of an object. Servers should convert recognized schemas to the latest 41 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' 42 type: string 43 kind: 44 description: 'Kind is a string value representing the REST resource this 45 object represents. Servers may infer this from the endpoint the client 46 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' 47 type: string 48 metadata: 49 type: object 50 spec: 51 description: GitRepositorySpec defines the desired state of a Git repository. 52 properties: 53 gitImplementation: 54 default: go-git 55 description: Determines which git client library to use. Defaults 56 to go-git, valid values are ('go-git', 'libgit2'). 57 enum: 58 - go-git 59 - libgit2 60 type: string 61 ignore: 62 description: Ignore overrides the set of excluded patterns in the 63 .sourceignore format (which is the same as .gitignore). If not provided, 64 a default will be used, consult the documentation for your version 65 to find out what those are. 66 type: string 67 include: 68 description: Extra git repositories to map into the repository 69 items: 70 description: GitRepositoryInclude defines a source with a from and 71 to path. 72 properties: 73 fromPath: 74 description: The path to copy contents from, defaults to the 75 root directory. 76 type: string 77 repository: 78 description: Reference to a GitRepository to include. 79 properties: 80 name: 81 description: Name of the referent 82 type: string 83 required: 84 - name 85 type: object 86 toPath: 87 description: The path to copy contents to, defaults to the name 88 of the source ref. 89 type: string 90 required: 91 - repository 92 type: object 93 type: array 94 interval: 95 description: The interval at which to check for repository updates. 96 type: string 97 recurseSubmodules: 98 description: When enabled, after the clone is created, initializes 99 all submodules within, using their default settings. This option 100 is available only when using the 'go-git' GitImplementation. 101 type: boolean 102 ref: 103 description: The Git reference to checkout and monitor for changes, 104 defaults to master branch. 105 properties: 106 branch: 107 default: master 108 description: The Git branch to checkout, defaults to master. 109 type: string 110 commit: 111 description: The Git commit SHA to checkout, if specified Tag 112 filters will be ignored. 113 type: string 114 semver: 115 description: The Git tag semver expression, takes precedence over 116 Tag. 117 type: string 118 tag: 119 description: The Git tag to checkout, takes precedence over Branch. 120 type: string 121 type: object 122 secretRef: 123 description: The secret name containing the Git credentials. For HTTPS 124 repositories the secret must contain username and password fields. 125 For SSH repositories the secret must contain identity, identity.pub 126 and known_hosts fields. 127 properties: 128 name: 129 description: Name of the referent 130 type: string 131 required: 132 - name 133 type: object 134 suspend: 135 description: This flag tells the controller to suspend the reconciliation 136 of this source. 137 type: boolean 138 timeout: 139 default: 20s 140 description: The timeout for remote Git operations like cloning, defaults 141 to 20s. 142 type: string 143 url: 144 description: The repository URL, can be a HTTP/S or SSH address. 145 pattern: ^(http|https|ssh):// 146 type: string 147 verify: 148 description: Verify OpenPGP signature for the Git commit HEAD points 149 to. 150 properties: 151 mode: 152 description: Mode describes what git object should be verified, 153 currently ('head'). 154 enum: 155 - head 156 type: string 157 secretRef: 158 description: The secret name containing the public keys of all 159 trusted Git authors. 160 properties: 161 name: 162 description: Name of the referent 163 type: string 164 required: 165 - name 166 type: object 167 required: 168 - mode 169 type: object 170 required: 171 - interval 172 - url 173 type: object 174 status: 175 description: GitRepositoryStatus defines the observed state of a Git repository. 176 properties: 177 artifact: 178 description: Artifact represents the output of the last successful 179 repository sync. 180 properties: 181 checksum: 182 description: Checksum is the SHA1 checksum of the artifact. 183 type: string 184 lastUpdateTime: 185 description: LastUpdateTime is the timestamp corresponding to 186 the last update of this artifact. 187 format: date-time 188 type: string 189 path: 190 description: Path is the relative file path of this artifact. 191 type: string 192 revision: 193 description: Revision is a human readable identifier traceable 194 in the origin source system. It can be a Git commit SHA, Git 195 tag, a Helm index timestamp, a Helm chart version, etc. 196 type: string 197 url: 198 description: URL is the HTTP address of this artifact. 199 type: string 200 required: 201 - path 202 - url 203 type: object 204 conditions: 205 description: Conditions holds the conditions for the GitRepository. 206 items: 207 description: "Condition contains details for one aspect of the current 208 state of this API Resource. --- This struct is intended for direct 209 use as an array at the field path .status.conditions. For example, 210 type FooStatus struct{ // Represents the observations of a 211 foo's current state. // Known .status.conditions.type are: 212 \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type 213 \ // +patchStrategy=merge // +listType=map // +listMapKey=type 214 \ Conditions []metav1.Condition `json:\"conditions,omitempty\" 215 patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` 216 \n // other fields }" 217 properties: 218 lastTransitionTime: 219 description: lastTransitionTime is the last time the condition 220 transitioned from one status to another. This should be when 221 the underlying condition changed. If that is not known, then 222 using the time when the API field changed is acceptable. 223 format: date-time 224 type: string 225 message: 226 description: message is a human readable message indicating 227 details about the transition. This may be an empty string. 228 maxLength: 32768 229 type: string 230 observedGeneration: 231 description: observedGeneration represents the .metadata.generation 232 that the condition was set based upon. For instance, if .metadata.generation 233 is currently 12, but the .status.conditions[x].observedGeneration 234 is 9, the condition is out of date with respect to the current 235 state of the instance. 236 format: int64 237 minimum: 0 238 type: integer 239 reason: 240 description: reason contains a programmatic identifier indicating 241 the reason for the condition's last transition. Producers 242 of specific condition types may define expected values and 243 meanings for this field, and whether the values are considered 244 a guaranteed API. The value should be a CamelCase string. 245 This field may not be empty. 246 maxLength: 1024 247 minLength: 1 248 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ 249 type: string 250 status: 251 description: status of the condition, one of True, False, Unknown. 252 enum: 253 - "True" 254 - "False" 255 - Unknown 256 type: string 257 type: 258 description: type of condition in CamelCase or in foo.example.com/CamelCase. 259 --- Many .condition.type values are consistent across resources 260 like Available, but because arbitrary conditions can be useful 261 (see .node.status.conditions), the ability to deconflict is 262 important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) 263 maxLength: 316 264 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ 265 type: string 266 required: 267 - lastTransitionTime 268 - message 269 - reason 270 - status 271 - type 272 type: object 273 type: array 274 includedArtifacts: 275 description: IncludedArtifacts represents the included artifacts from 276 the last successful repository sync. 277 items: 278 description: Artifact represents the output of a source synchronisation. 279 properties: 280 checksum: 281 description: Checksum is the SHA1 checksum of the artifact. 282 type: string 283 lastUpdateTime: 284 description: LastUpdateTime is the timestamp corresponding to 285 the last update of this artifact. 286 format: date-time 287 type: string 288 path: 289 description: Path is the relative file path of this artifact. 290 type: string 291 revision: 292 description: Revision is a human readable identifier traceable 293 in the origin source system. It can be a Git commit SHA, Git 294 tag, a Helm index timestamp, a Helm chart version, etc. 295 type: string 296 url: 297 description: URL is the HTTP address of this artifact. 298 type: string 299 required: 300 - path 301 - url 302 type: object 303 type: array 304 lastHandledReconcileAt: 305 description: LastHandledReconcileAt holds the value of the most recent 306 reconcile request value, so a change can be detected. 307 type: string 308 observedGeneration: 309 description: ObservedGeneration is the last observed generation. 310 format: int64 311 type: integer 312 url: 313 description: URL is the download link for the artifact output of the 314 last repository sync. 315 type: string 316 type: object 317 type: object 318 served: true 319 storage: true 320 subresources: 321 status: {}