-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When deploying CRDs to kubernetes properties aren't replaced in deployment yaml files #515
Comments
Hmm, I can reproduce this. Right now, Custom Resource fragments are not part of the enrichment phase and are applied as it is during We would probably need to read file as string and replace properties with their respective values. We're doing something similar for |
… fragments Refactor ApplyService.applyCustomResource to process CustomResource fragment and interpolate it with project properties before applying to Kubernetes.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
… fragments CustomResource fragments are now processed during resource phase and copied to target/classes/META-INF/jkube/custom-resource directory. They will be picked and applied during apply phase.
#534 review meeting notes This are some of the bullet points and actions after reviewing the approach followed in #534
I managed to implement a GenericResource that can be used to deserialize any What we're basically doing here is creating a very simple/basic implementation of HasMetadata that deserializes any extra fields and properties into the In order to allow the use of this GenericResource in a In order to implement the current functionality following steps should be performed:
I'm not sure if we can add a list in the src/main/jkube directory, IIRC we can't. But if we can, then some additional tasks should be performed for deserialization of the CRs. |
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
… fragments CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
CustomResource fragments are now deserialized/serialized into GenericCustomResource so that they are processed with standard kubernetes types
Info
mvn -v
) :Kubernetes / Red Hat OpenShift setup and version : minikube latest version ( kubernetes version 1.19.4 ) and EKS cluster kubernetes v1.17.4
If it's a bug, how to reproduce : Use my sampleKerberosProject, first apply test_resource.yaml custom resource definition, then mvn k8s:resource && mvn k8s:apply
You will get error, which will be solved if you in src/main/jkube/test-cr.yml replace ${app_namespace} with any namespace.
I was looking into your code, and quick fix is to replace resourceDir with OutputDirectory. But probably better solution is to replace properties in getCustomResourcesFileToNameMap function.
The text was updated successfully, but these errors were encountered: