You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing a stack that install a new CRD and afterwards tries to create an object of that new kind (such as stackabletech/demos#35) we fail with the following error message
DEBUG Installing YAML manifest from stacks/observability/opentelemetry-collector-sidecar.yaml
at src/platform/manifests.rs:125
in install_manifests
in prepare_manifests
in install with install_parameters: StackInstallParameters { demo_name: None, stack_name: "observability", operator_namespace: "stackable-operators", product_namespace: "default", parameters: [], skip_release: false, labels: Labels(KeyValuePairs({KeyValuePair { key: Key { prefix: Some(KeyPrefix("stackable.tech")), name: KeyName("managed-by") }, value: LabelValue("stackablectl") }, KeyValuePair { key: Key { prefix: Some(KeyPrefix("stackable.tech")), name: KeyName("stack") }, value: LabelValue("observability") }, KeyValuePair { key: Key { prefix: Some(KeyPrefix("stackable.tech")), name: KeyName("vendor") }, value: LabelValue("Stackable") }})) }
in install_cmd with args: StackInstallArgs { stack_name: "observability", skip_release: false, stack_parameters: [], parameters: [], local_cluster: CommonClusterArgs { cluster_type: None, cluster_name: "stackable-data-platform", cluster_nodes: 2, cluster_cp_nodes: 1 }, namespaces: CommonNamespaceArgs { operator_namespace: "stackable-operators", product_namespace: "default" } }
in run with self: Cli { log_level: Some(Level(Debug)), no_cache: false, offline: false, files: CommonFileArgs { demo_files: [], stack_files: ["stacks/stacks-v2.yaml"], release_files: [] }, repos: CommonRepoArgs { helm_repo_stable: "https://repo.stackable.tech/repository/helm-stable/", helm_repo_test: "https://repo.stackable.tech/repository/helm-test/", helm_repo_dev: "https://repo.stackable.tech/repository/helm-dev/" }, subcommand: Stack(StackArgs { subcommand: Install(StackInstallArgs { stack_name: "observability", skip_release: false, stack_parameters: [], parameters: [], local_cluster: CommonClusterArgs { cluster_type: None, cluster_name: "stackable-data-platform", cluster_nodes: 2, cluster_cp_nodes: 1 }, namespaces: CommonNamespaceArgs { operator_namespace: "stackable-operators", product_namespace: "default" } }) }) }
An unrecoverable error occured: failed to execute stack (sub)command
Caused by these errors (recent errors listed first):
1: failed to install stack "observability"
2: failed to install stack manifests
3: failed to deploy manifests using the kube client
4: failed to deploy manifest because GVK GroupVersionKind { group
Affected version
main
Current and expected behavior
When installing a stack that install a new CRD and afterwards tries to create an object of that new kind (such as stackabletech/demos#35) we fail with the following error message
This is proably because we cache GVK here
stackable-cockpit/rust/stackable-cockpit/src/utils/k8s/client.rs
Lines 80 to 83 in 3de66fc
Possible solution
Once we run into an GVK error we should run
Discovery::run
and give it another try.However I'm 100% confident, this needs to be tested
Additional context
No response
Environment
No response
Would you like to work on fixing this bug?
None
The text was updated successfully, but these errors were encountered: