|
| 1 | +apiVersion: apiextensions.k8s.io/v1 |
| 2 | +kind: CustomResourceDefinition |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + controller-gen.kubebuilder.io/version: v0.14.0 |
| 6 | + name: lightrunjavaagents.agents.lightrun.com |
| 7 | +spec: |
| 8 | + group: agents.lightrun.com |
| 9 | + names: |
| 10 | + kind: LightrunJavaAgent |
| 11 | + listKind: LightrunJavaAgentList |
| 12 | + plural: lightrunjavaagents |
| 13 | + shortNames: |
| 14 | + - lrja |
| 15 | + singular: lightrunjavaagent |
| 16 | + scope: Namespaced |
| 17 | + versions: |
| 18 | + - additionalPrinterColumns: |
| 19 | + - description: Deployment name |
| 20 | + jsonPath: .spec.deploymentName |
| 21 | + name: Deployment |
| 22 | + type: string |
| 23 | + - description: Status of Deployment Reconciliation |
| 24 | + jsonPath: .status.deploymentStatus |
| 25 | + name: Status |
| 26 | + type: string |
| 27 | + - jsonPath: .metadata.creationTimestamp |
| 28 | + name: Age |
| 29 | + type: date |
| 30 | + name: v1beta |
| 31 | + schema: |
| 32 | + openAPIV3Schema: |
| 33 | + description: LightrunJavaAgent is the Schema for the lightrunjavaagents API |
| 34 | + properties: |
| 35 | + apiVersion: |
| 36 | + description: |- |
| 37 | + APIVersion defines the versioned schema of this representation of an object. |
| 38 | + Servers should convert recognized schemas to the latest internal value, and |
| 39 | + may reject unrecognized values. |
| 40 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 41 | + type: string |
| 42 | + kind: |
| 43 | + description: |- |
| 44 | + Kind is a string value representing the REST resource this object represents. |
| 45 | + Servers may infer this from the endpoint the client submits requests to. |
| 46 | + Cannot be updated. |
| 47 | + In CamelCase. |
| 48 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 49 | + type: string |
| 50 | + metadata: |
| 51 | + type: object |
| 52 | + spec: |
| 53 | + description: LightrunJavaAgentSpec defines the desired state of LightrunJavaAgent |
| 54 | + properties: |
| 55 | + agentCliFlags: |
| 56 | + description: |- |
| 57 | + Add cli flags to the agent "-agentpath:/lightrun/agent/lightrun_agent.so=<AgentCliFlags>" |
| 58 | + https://docs.lightrun.com/jvm/agent-configuration/#additional-command-line-flags |
| 59 | + type: string |
| 60 | + agentConfig: |
| 61 | + additionalProperties: |
| 62 | + type: string |
| 63 | + description: |- |
| 64 | + Agent configuration to be changed from default values |
| 65 | + https://docs.lightrun.com/jvm/agent-configuration/#setting-agent-properties-from-the-agentconfig-file |
| 66 | + type: object |
| 67 | + agentEnvVarName: |
| 68 | + description: |- |
| 69 | + Env variable that will be patched with the -agentpath |
| 70 | + Common choice is JAVA_TOOL_OPTIONS |
| 71 | + Depending on the tool used it may vary from JAVA_OPTS to MAVEN_OPTS and CATALINA_OPTS |
| 72 | + More info can be found here https://docs.lightrun.com/jvm/build-tools/ |
| 73 | + type: string |
| 74 | + agentName: |
| 75 | + description: Agent name for registration to the server |
| 76 | + type: string |
| 77 | + agentTags: |
| 78 | + description: Agent tags that will be shown in the portal / IDE plugin |
| 79 | + items: |
| 80 | + type: string |
| 81 | + type: array |
| 82 | + containerSelector: |
| 83 | + description: List of containers that should be patched in the Pod |
| 84 | + items: |
| 85 | + type: string |
| 86 | + type: array |
| 87 | + deploymentName: |
| 88 | + description: Name of the Deployment that will be patched |
| 89 | + type: string |
| 90 | + initContainer: |
| 91 | + properties: |
| 92 | + image: |
| 93 | + description: Image of the init container. Image name and tag will |
| 94 | + define platform and version of the agent |
| 95 | + type: string |
| 96 | + sharedVolumeMountPath: |
| 97 | + description: Path in the app container where volume with agent |
| 98 | + will be mounted |
| 99 | + type: string |
| 100 | + sharedVolumeName: |
| 101 | + description: Name of the volume that will be added to pod |
| 102 | + type: string |
| 103 | + required: |
| 104 | + - image |
| 105 | + - sharedVolumeMountPath |
| 106 | + - sharedVolumeName |
| 107 | + type: object |
| 108 | + secretName: |
| 109 | + description: Name of the Secret in the same namespace contains lightrun |
| 110 | + key and conmpany id |
| 111 | + type: string |
| 112 | + serverHostname: |
| 113 | + description: |- |
| 114 | + Lightrun server hostname that will be used for downloading an agent |
| 115 | + Key and company id in the secret has to be taken from this server as well |
| 116 | + type: string |
| 117 | + required: |
| 118 | + - agentEnvVarName |
| 119 | + - agentTags |
| 120 | + - containerSelector |
| 121 | + - deploymentName |
| 122 | + - initContainer |
| 123 | + - secretName |
| 124 | + - serverHostname |
| 125 | + type: object |
| 126 | + status: |
| 127 | + description: LightrunJavaAgentStatus defines the observed state of LightrunJavaAgent |
| 128 | + properties: |
| 129 | + conditions: |
| 130 | + items: |
| 131 | + description: "Condition contains details for one aspect of the current |
| 132 | + state of this API Resource.\n---\nThis struct is intended for |
| 133 | + direct use as an array at the field path .status.conditions. For |
| 134 | + example,\n\n\n\ttype FooStatus struct{\n\t // Represents the |
| 135 | + observations of a foo's current state.\n\t // Known .status.conditions.type |
| 136 | + are: \"Available\", \"Progressing\", and \"Degraded\"\n\t // |
| 137 | + +patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t |
| 138 | + \ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\" |
| 139 | + patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t |
| 140 | + \ // other fields\n\t}" |
| 141 | + properties: |
| 142 | + lastTransitionTime: |
| 143 | + description: |- |
| 144 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 145 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 146 | + format: date-time |
| 147 | + type: string |
| 148 | + message: |
| 149 | + description: |- |
| 150 | + message is a human readable message indicating details about the transition. |
| 151 | + This may be an empty string. |
| 152 | + maxLength: 32768 |
| 153 | + type: string |
| 154 | + observedGeneration: |
| 155 | + description: |- |
| 156 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 157 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 158 | + with respect to the current state of the instance. |
| 159 | + format: int64 |
| 160 | + minimum: 0 |
| 161 | + type: integer |
| 162 | + reason: |
| 163 | + description: |- |
| 164 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 165 | + Producers of specific condition types may define expected values and meanings for this field, |
| 166 | + and whether the values are considered a guaranteed API. |
| 167 | + The value should be a CamelCase string. |
| 168 | + This field may not be empty. |
| 169 | + maxLength: 1024 |
| 170 | + minLength: 1 |
| 171 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 172 | + type: string |
| 173 | + status: |
| 174 | + description: status of the condition, one of True, False, Unknown. |
| 175 | + enum: |
| 176 | + - "True" |
| 177 | + - "False" |
| 178 | + - Unknown |
| 179 | + type: string |
| 180 | + type: |
| 181 | + description: |- |
| 182 | + type of condition in CamelCase or in foo.example.com/CamelCase. |
| 183 | + --- |
| 184 | + Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be |
| 185 | + useful (see .node.status.conditions), the ability to deconflict is important. |
| 186 | + The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) |
| 187 | + maxLength: 316 |
| 188 | + 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])$ |
| 189 | + type: string |
| 190 | + required: |
| 191 | + - lastTransitionTime |
| 192 | + - message |
| 193 | + - reason |
| 194 | + - status |
| 195 | + - type |
| 196 | + type: object |
| 197 | + type: array |
| 198 | + deploymentStatus: |
| 199 | + type: string |
| 200 | + lastScheduleTime: |
| 201 | + format: date-time |
| 202 | + type: string |
| 203 | + type: object |
| 204 | + type: object |
| 205 | + served: true |
| 206 | + storage: true |
| 207 | + subresources: |
| 208 | + status: {} |
0 commit comments