Closed zelig81 closed 1 year ago
Hi @zelig81. Resource names for k8s objects are always in lower case as well as they don't have to contain certain characters. See RFC1123. Could you please also post the AtlasProject
resource that was generated?
Sorry, you are right:
My fault - I did not check the result of kubectl apply -k ...
and there I had the following error:
The AtlasProject "poc_project" is invalid: metadata.name: Invalid value: "poc_project": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
I'll do the changes manually - this issue should be opened in mongodb-atlas-cli :(
I got a next error (I'll add it to cli repo as well):
{"level":"INFO","time":"2023-01-26T08:26:59.370Z","msg":"Status update","atlasdeployment":"atlas/cluster0","lastCondition":{"type":"DeploymentReady","status":"False","lastTransitionTime":null,"reason":"InternalError","message":"groupId is invalid because must be set"}}
Hi @zelig81. This is fixed by this PR: https://github.com/mongodb/mongodb-atlas-cli/pull/1631. We'll let you know when it is released
Hi @zelig81. This is fixed by this PR: mongodb/mongodb-atlas-cli#1631. We'll let you know when it is released
Thank you!!!!
The fix is released with atlas-cli 1.5.0: https://github.com/mongodb/mongodb-atlas-cli/releases/tag/atlascli%2Fv1.5.0.
Closing this one as fixed with AtlasCLI v1.5.0
What did you do to encounter the bug? Steps to reproduce the behavior:
atlas kubernetes config generate --targetNamespace atlas --projectId <id> --clusterName <cluster-name>
What did you expect? A clear and concise description of what you expected to happen.
What happened instead? A clear and concise description of what happened instead
Operator Information
Kubernetes Cluster Information
Additional context Add any other context about the problem here.
DB manifest
```yaml apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: creationTimestamp: null name: cluster0 namespace: atlas spec: advancedDeploymentSpec: backupEnabled: true biConnector: enabled: false readPreference: secondary clusterType: REPLICASET encryptionAtRestProvider: NONE name: cluster0 paused: false pitEnabled: true replicationSpecs: - numShards: 1 regionConfigs: - analyticsSpecs: instanceSize: M10 nodeCount: 0 autoScaling: compute: enabled: true maxInstanceSize: M30 minInstanceSize: M10 scaleDownEnabled: true diskGB: enabled: true electableSpecs: instanceSize: M10 nodeCount: 3 priority: 7 providerName: GCP readOnlySpecs: instanceSize: M10 nodeCount: 0 regionName: EASTERN_US zoneName: Zone 1 rootCertType: ISRGROOTX1 versionReleaseSystem: LTS backupRef: name: "" namespace: "" processArgs: javascriptEnabled: true minimumEnabledTlsProtocol: TLS1_2 noTableScan: false projectRef: name: poc_project namespace: atlas status: conditions: [] ```operator error
`{"level":"INFO","time":"2023-01-25T14:32:58.877Z","msg":"Status update","atlasdeployment":"atlas/cluster0","lastCondition":{"type":"DeploymentReady","status":"False","lastTransitionTime":null,"reason":"InternalError","message":"AtlasProject.atlas.mongodb.com \"poc_project\" not found"}}`