-
Notifications
You must be signed in to change notification settings - Fork 207
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
Feature: Support to reference Configmaps and Secrets #3710
Comments
This sounds like something we'd likely want to land for our next release of ASO v2. Which APIM properties in particular do you want exposed? You give the APIM reference id as an example, what else? We don't have a mechanism to do a blanket export of everything - and that wouldn't make sense for most properties anyway. Instead, we will individually export specific properties. |
Thanks for the response. Indeed we also do not expect a blanket export of all.
And for other attributes we would like to have the ability to reference are below
These are a few scenarios i was able to come up with. There could be more with time. |
The example you gave above shows pulling an Does that help solve your problem?
Most other Kubernetes objects actually dont allow references to ConfigMaps, it's primarily used as a mechanism to drive configuration to Pods/Deployments. AFAIK things like Services, etc in Kuberentes don't have configMap integration. I'm not sure that I'm entirely following the examples you gave above where you show how you'd like to use this - could you share the full CRD specification (with secrets redacted, if needed) and which bits you want to source from a configmap and why? |
We do not plan to have the APIM service provisioned via the ASO hence cannot use the owner.name attribute. Indeed services ,etc do not support but most kubernetes workloads(Deployments,stateful set .etc) allow this hence it would really help configure our APIM resource deployments in this manner. I can explain the examples in any other way if you have a suggestion, i had explained this to the APIM PG team in MSFT and they had seen the value of this feature and they suggested us to raise this issue on the repo for ASO team to take it further. But at this moment i can say atleast the armId reference is a feature which will help us a lot in automation and set up and a robust CI/CD process for out APIM component deployments. |
For configuration management details, where the values are statically known prior to deployment, we strongly recommend people using existing tools such as Helm, Kustomize, or <insert-favorite-tool-here>. The secret and config map features in ASO are generally intended for dynamic values that aren't known prior to deployment - such as service endpoints and API keys generated by Azure. You can also import the resource into ASO without ASO actively managing it via the reconcile-policy: skip annotation. So instead of creating a configmap and flowing the ARMID through there you can import the resource and let it be visible in the cluster too. IDs feel special initially but we think that really they're not different than other fields. For example, you may have a requirement that service teams deploy their resources into a particular region, or define a particular set of environments (dev, test, prod, etc). Since all of these constraints are known upfront, tools like Kustomize or Helm, with the appropriate overlays (Kustomize) or charts + values (Helm) is a more generic solution that allows you to customize more than just what owner a resource has. |
Thanks for the update matt, seems logical enough. Will try to work with it in this manner as you suggested and will get back if we still think that feature will be helpful. |
Going to go ahead and close this for now. Once you've tried some of the above we can reopen this if it's still needed |
I am currently primarly interested and working with the APIM CRDs.
I am in contact with the product group of APIM and ASO via backbase for this .
One feature disucssed was the requirement to have ability to refer configmaps and secrets for inputs to out CRD attributes for example the APIM reference id can be referred from a ConfigMap or a API spec required by the API spec can also be referred from a configmap.
We were suggested to raise a issue on this repo for the ASO developers to add this feature into the operator.
Can we get some advise on this or if this is planned ?
The text was updated successfully, but these errors were encountered: