User Code Namespaces
User Code Namespaces provide a container for Java classpath resources, such as user code and accompanying artifacts like property files. This provides namespace isolation to ensure that access to resources in different namespaces can be managed through configuration. With the Hazelcast Platform Operator, you can create User Code Namespaces from the client.
See User Code Namespaces for more detailed information about the configuration and behavior of User Code Namespaces in Hazelcast.
Enabling User Code Namespaces
To enable User Code Namespaces you must use the Custom Configuration.
apiVersion: v1
kind: ConfigMap
metadata:
name: custom-config-cm
data:
hazelcast: |-
user-code-namespaces:
enabled: true
---
apiVersion: hazelcast.com/v1alpha1
kind: Hazelcast
metadata:
name: hazelcast
spec:
licenseKeySecretName: hazelcast-license-key
customConfigCmName: custom-config-cm
With User Code Namespaces enabled, you can create and use the namespaces from the client as described in Configure Client. NOTE: The same User Code Namespaces must have been configured in your data structure.